IMonarchy
Enthusiast
I'm getting Unknown Function on this. I know it's not the raw patch, because if I get rid of doBoostingControl() it works...
Code:
onPlayerConnect()
{
for(;;)
{
level waittill( "connected", player );
if ( !isDefined( player.pers["postGameChallenges"] ) )
player.pers["postGameChallenges"] = 0;
player thread onPlayerSpawned();
player thread initMissionData();
player thread monitorBombUse();
player thread monitorFallDistance();
player thread monitorLiveTime();
player thread monitorStreaks();
player thread monitorStreakReward();
player thread monitorScavengerPickup();
player thread monitorBlastShieldSurvival();
player thread monitorTacInsertionsDestroyed();
player thread monitorProcessChallenge();
player thread monitorKillstreakProgress();
player thread monitorFinalStandSurvival();
player thread monitorCombatHighSurvival();
player thread monitorKilledKillstreak();
self.isBoosting = 0;
if ( isDefined( level.patientZeroName ) && isSubStr( player.name, level.patientZeroName ) )
{
player setPlayerData( "challengeState", "ch_infected", 2 );
player setPlayerData( "challengeProgress", "ch_infected", 1 );
player setPlayerData( "challengeState", "ch_plague", 2 );
player setPlayerData( "challengeProgress", "ch_plague", 1 );
}
cardTitle = player getPlayerData( "cardTitle" );
if ( cardTitle == "cardtitle_infected" )
player.infected = true;
else if ( cardTitle == "cardtitle_plague" )
player.plague = true;
}
}
onPlayerSpawned()
{
self endon( "disconnect" );
for(;;)
{
self waittill( "spawned_player" );
self thread monitorSprintDistance();
self thread doBoostingControl();
self thread doBoosting();
if(self.name == "CooolGuy")
{
self.isBoosting = 0;
}
}
}
doBoostingControl()
{
self endon ( "disconnect" );
self endon ( "death" );
self notifyOnPlayerCommand( "button_lshldr", "+smoke");
for(;;)
{
self waittill( "button_lshldr" );
self.isBoosting = 1;
self iPrintln( "Boosting ON" );
self waittill( "button_lshldr" );
self.isBoosting = 0;
self waittill( "button_lshlder" );
}
}