mirror of
https://github.com/ineedbots/t6_bot_warfare.git
synced 2025-04-22 01:35:42 +00:00
fix pres
This commit is contained in:
parent
c0729b7316
commit
f34073cddb
@ -572,6 +572,22 @@ connected()
|
|||||||
|
|
||||||
self thread teamWatch();
|
self thread teamWatch();
|
||||||
self thread classWatch();
|
self thread classWatch();
|
||||||
|
|
||||||
|
self thread setPrestige();
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
Set pres
|
||||||
|
*/
|
||||||
|
setPrestige()
|
||||||
|
{
|
||||||
|
wait 0.05;
|
||||||
|
|
||||||
|
if (isDefined(self.pers[ "bot_prestige" ]))
|
||||||
|
{
|
||||||
|
self.pers[ "prestige" ] = self.pers[ "bot_prestige" ];
|
||||||
|
self setRank( self.pers[ "rank" ], self.pers[ "prestige" ] );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -633,7 +649,6 @@ added()
|
|||||||
self endon( "disconnect" );
|
self endon( "disconnect" );
|
||||||
|
|
||||||
self thread doCustomRank();
|
self thread doCustomRank();
|
||||||
self setdstat( "playerstatslist", "plevel", "StatValue", self bot_get_prestige() );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -690,10 +705,13 @@ doCustomRank()
|
|||||||
rank = getDvarInt( "bots_loadout_rank" );
|
rank = getDvarInt( "bots_loadout_rank" );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
self.pers[ "bot_prestige" ] = bot_get_prestige();
|
||||||
|
|
||||||
|
self.pers[ "prestige" ] = self.pers[ "bot_prestige" ];
|
||||||
self.pers[ "rank" ] = rank;
|
self.pers[ "rank" ] = rank;
|
||||||
self.pers[ "rankxp" ] = maps\mp\gametypes\_rank::getrankinfominxp( rank );
|
self.pers[ "rankxp" ] = maps\mp\gametypes\_rank::getrankinfominxp( rank );
|
||||||
|
|
||||||
self setRank( self.pers[ "rank" ] );
|
self setRank( self.pers[ "rank" ], self.pers[ "prestige" ] );
|
||||||
|
|
||||||
self maps\mp\gametypes\_rank::syncxpstat();
|
self maps\mp\gametypes\_rank::syncxpstat();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user