Hello
How do I stop the bots from occupying a certain weapon?
Thanks and regards!!!
Hello
How do I stop the bots from occupying a certain weapon?
Thanks and regards!!!
That depends on how well you know about scripts and where to put them and how to initiate them.
If you don’t then forget about it
If you do then we can talk
i know how to modify gsc’s.
I tried to do something in _bot_internal.gsc. onWeaponChange() method, with no result
you are in the right area
What weapon are you wanting to disable?
for example:
after self changeToWeap( newWeapon );
type
if(newWeapon == “m40a3_mp”)
self takeWeapon( “m40a3_mp” );
self giveWeapon( “mp5_mp” );
wait 0.1;
self SwitchToWeapon(“mp5_mp”);
else
return;
this will change it for something else
I have not tested it but give it a go and see
thanks MAD_MAD!!! i want to disable rpd (rpd_reflex_mp, rpd_acog_mp,rpd_grip_mp and rpd_mp)
the script that you tell me, will always give the bot the mp5?
yes or you can change it for something else
if(newWeapon == "rpd_reflex_mp" || newWeapon == "rpd_acog_mp" || newWeapon == "rpd_grip_mp" || newWeapon == "rpd_mp")
{
self takeWeapon( "rpd_reflex_mp" );
self giveWeapon( "mp5_mp" );
self takeWeapon( "rpd_acog_mp" );
self giveWeapon( "mp5_mp" );
self takeWeapon( "rpd_grip_mp" );
self giveWeapon( "mp5_mp" );
self takeWeapon( "rpd_mp" );
self giveWeapon( "mp5_mp" );
wait 0.1;
self givemaxammo("mp5_mp");
self SetSpawnWeapon("mp5_mp");
self SwitchToWeapon("mp5_mp");
}
thanks a lot!
regards!!!
if you want the bots to use just one type of weapon then use this:
self takeallWeapons();
self giveWeapon("ak47_mp");
self givemaxammo("ak47_mp");
self SetSpawnWeapon("ak47_mp");
self switchtoweapon("ak47_mp");
can change ak47_mp to anything you want
forgot to do it in code box… now edited because without code box the forum changes the " which will cause errors
made some alterations
and I have removed the
else
return;
Tested the altered code and it works fine, I can see from my test server logs that the bots change the rpd for the mp5