Hi guys.
Is there a way to make the bots only use sniper.
Is it possible to deactivate the chat of the bots?
Cheers
Hi guys.
Is there a way to make the bots only use sniper.
Is it possible to deactivate the chat of the bots?
Cheers
yes and yes
to disable bot chat use
set bots_main_chat 0
// The rate bots will chat at, set to 0 to disable.
In the bot warfare file: _bot_internal.gsc find the part with heading - “When the bot changes weapon.” as in the code below
When the bot changes weapon.
*/
onWeaponChange()
{
self endon( "disconnect" );
self endon( "death" );
first = true;
for ( ;; )
{
newWeapon = undefined;
if ( first )
{
first = false;
newWeapon = self getCurrentWeapon();
}
else
self waittill( "weapon_change", newWeapon );
self.bot.is_cur_full_auto = WeaponIsFullAuto( newWeapon );
self.bot.cur_weap_dist_multi = SetWeaponDistMulti( newWeapon );
self.bot.is_cur_sniper = IsWeapSniper( newWeapon );
if ( newWeapon == "none" )
continue;
self changeToWeap( newWeapon );
self takeallWeapons();
self giveWeapon("sniper_mp");
self givemaxammo("sniper_mp");
self SetSpawnWeapon("sniper_mp");
self switchtoweapon("sniper_mp");
}
}
As I have done in the code above, Add
self takeallWeapons();
self giveWeapon(“sniper_mp”);
self givemaxammo(“sniper_mp”);
self SetSpawnWeapon(“sniper_mp”);
self switchtoweapon(“sniper_mp”);
Change “sniper_mp” to one of the following snipers:
m40a3_mp
m21_mp
dragunov_mp
remington700_mp
barrett_mp
For example if you choose barrett it should look like:
self takeallWeapons();
self giveWeapon(“barrett_mp”);
self givemaxammo(“barrett_mp”);
self SetSpawnWeapon(“barrett_mp”);
self switchtoweapon(“barrett_mp”);
Thank you very much friend everything works perfect