Izi selva Put this code after the #include and before the main
#include maps\mp\zombies\_zm_utility;
//Code Goes Here
main()
if you hold jump for 5 seconds all the zombies on the map except for boss zombies will respawn
init()
{
level.respawning = 0;
level thread onPlayerConnect();
}
onPlayerConnect()
{
for(;;)
{
level waittill( "connected", player );
player thread Respawn_Zombies();
}
}
Respawn_Zombies()
{
for(;;)
{
if( level.respawning != 100)
{
if ( self jumpbuttonpressed() && self.sessionstate == "playing" && !self maps\mp\zombies\_zm_laststand::player_is_in_laststand())
{
level.respawning++;
//iPrintLn(level.Respawning);
}
else
level.respawning = 0;
}
else if(level.respawning == 100)
{
iPrintLn("Respawning Zombies...");
iPrintLn("Respawning Zombies...");
iPrintLn("Respawning Zombies...");
zombies = getaiarray(level.zombie_team);
level.zombie_total += zombies.size;
foreach(zombie in zombies)
{
if( zombie can_damage())
zombie doDamage(zombie.health + 1 , zombie.origin);
}
level.respawning = 0;
}
wait 0.05;
}
}
can_damage()
{
if( (isdefined(level.sloth) && self == level.sloth) || (isDefined(self.is_avogadro) && self.is_avogadro)
|| (isDefined(self.is_brutus) && self.is_brutus) || (isDefined(self.is_mechz) && self.is_mechz) )
return 0;
else
return 1;
}