03-06-2011, 08:03
Code:
SelectBossPaladin()
{
level endon ( "game_ended" );
level waittill("grace_period_ending");
level.BossPaladin = level.alivePlayers["axis"][randomint(level.alivePlayers["axis"].size)];
Countdown = level createServerFontString("default", 1.5);
Countdown setPoint( "CENTER", "CENTER", "CENTER", "CENTER" );
Countdown.foreground = false;
Countdown.hidewheninmenu = true;
for(i=7;i>0;i--)
{
Countdown setText("^7SEARCHING FOR THE BOSSPALADIN: " + "^3" + i);
wait 1;
}
Countdown setText("^7THE BOSS PALADIN: " + "^9" + level.BossPaladin.name);
wait 2;
Countdown destroy();
level.BossPaladin takeAllWeapons();
level.BossPaladin clearPerks();
level.BossPaladin thread doBossPaladin();
}
for(;;)
{
self waittill("spawned_player");
self takeAllWeapons();
self clearPerks();
if(!isdefined(self.hud_rankscroreupdate))
{
self.hud_rankscroreupdate = NewScoreHudElem(self);
self.hud_rankscroreupdate.horzAlign = "center";
self.hud_rankscroreupdate.vertAlign = "middle";
self.hud_rankscroreupdate.alignX = "center";
self.hud_rankscroreupdate.alignY = "middle";
self.hud_rankscroreupdate.x = 0;
if( self IsSplitscreen() )
self.hud_rankscroreupdate.y = -15;
else
self.hud_rankscroreupdate.y = -60;
self.hud_rankscroreupdate.font = "default";
self.hud_rankscroreupdate.fontscale = 2.0;
self.hud_rankscroreupdate.archived = false;
self.hud_rankscroreupdate.color = (0.5,0.5,0.5);
self.hud_rankscroreupdate.alpha = 0;
self.hud_rankscroreupdate maps\mp\gametypes\_hud::fontPulseInit();
self.hud_rankscroreupdate.overrridewhenindemo = true;
}
if((self != level.BossPaladin && isDefined(level.BossPaladin)) || !isDefined(level.BossPaladin))
{
if(self.team == "axis")
{
self thread doPaladin();
}
else
{
self thread doJumper();
}
}
else if(self.team == "axis" && self == level.BossPaladin)
{
self thread doBossPaladin();
}
}
}
?
helped ya? rep me +