1
0
mirror of https://github.com/ineedbots/iw5_bot_warfare.git synced 2025-06-28 15:11:49 +00:00

fix errors

This commit is contained in:
ineedbots
2021-10-24 02:42:28 -06:00
parent 6f479dd6cf
commit afbf583e3b
3 changed files with 13 additions and 3 deletions

View File

@ -1226,6 +1226,9 @@ anyMatchRuleDefaultClass( team )
*/
chooseRandomClass( )
{
if ( self.team != "axis" && self.team != "allies" )
return "";
reasonable = getDvarInt( "bots_loadout_reasonable" );
class = "";
rank = self maps\mp\gametypes\_rank::getRankForXp( self getPlayerData( "experience" ) ) + 1;