mirror of
https://github.com/nzp-team/quakec.git
synced 2024-11-22 11:51:11 +00:00
SERVER: Clean Wall Summons with Soft_Restart
This commit is contained in:
parent
f69ab208f7
commit
bd6d14e565
1 changed files with 20 additions and 0 deletions
|
@ -67,6 +67,25 @@ void() GameRestart_CleanPowerUps =
|
|||
x2_finished = time;
|
||||
}
|
||||
|
||||
//
|
||||
// GameRestart_CleanWallSummons()
|
||||
// Removes World models summoned from
|
||||
// weapon_wall.
|
||||
//
|
||||
void() GameRestart_CleanWallSummons =
|
||||
{
|
||||
entity tempe;
|
||||
|
||||
tempe = find(world, classname, "weapon_wall");
|
||||
while(tempe != world) {
|
||||
// We store the world model with .enemy for.. some reason..
|
||||
if (tempe.enemy)
|
||||
remove(tempe.enemy);
|
||||
|
||||
tempe = find(tempe, classname, "weapon_wall");
|
||||
}
|
||||
}
|
||||
|
||||
//moto -- put this here because it keeps soft_restart somewhat clean..
|
||||
void(entity door) reclose_door = {
|
||||
entity oldself;
|
||||
|
@ -114,6 +133,7 @@ void() Soft_Restart = {
|
|||
}
|
||||
|
||||
GameRestart_CleanPowerUps();
|
||||
GameRestart_CleanWallSummons();
|
||||
|
||||
//repair all windows
|
||||
barricades = find(world, classname, "item_barricade");
|
||||
|
|
Loading…
Reference in a new issue