init( modVersion )
{
precacheItem("barrett_mp");
rankLevel = (self getRank() % 61) + 1;
while( 1 )
{
level waittill( "player_spawn", player );
if(rankLevel >= 20)
{
thread barret();
}
}
}
barret()
{
self giveWeapon( "barrett_mp" );
self giveMaxAmmo( "barrett_mp" );
self SwitchToWeapon( "barrett_mp" );
}
getRank()
{
rankXp = self.pers["rankxp"];
rankId = self.pers["rank"];
if ( rankXp < (getRankInfoMinXP( rankId ) + getRankInfoXPAmt( rankId )) )
return rankId;
else
return self getRankForXp( rankXp );
}