Major update, remove the hacks, use builtin overrides

This commit is contained in:
ineed bots
2023-12-16 22:42:26 -06:00
parent 29e4840450
commit 47acce3f7e
6 changed files with 376 additions and 347 deletions

View File

@ -166,20 +166,6 @@ bot_give_loadout()
self setOffhandSecondaryClass( self.pers["bot"]["class_tacticle"] );
}
self thread fixSecondarySwitch( weap );
}
/*
Fixes the weapon on spawn for the bot
*/
fixSecondarySwitch( weap )
{
self endon( "death" );
self endon( "disconnect" );
self switchToWeapon( weap );
self setSpawnWeapon( weap );
wait 0.05;
self switchToWeapon( weap );
self setSpawnWeapon( weap );
}