mirror of
https://github.com/nzp-team/quakec.git
synced 2024-12-01 08:21:48 +00:00
SERVER: Prevent Zombie sounds from triggering during spawn
This commit is contained in:
parent
368e8e7409
commit
b3c25885ef
1 changed files with 6 additions and 0 deletions
|
@ -1962,6 +1962,12 @@ void(entity where) spawn_a_zombieB =
|
|||
|
||||
// set up timer for next spawn
|
||||
zombie_spawn_timer = zombie_spawn_delay + time;
|
||||
|
||||
// Depending on how fast AI processes, sometimes Zombie_AI() will execute
|
||||
// while we are still at the world origin temporarily. This can cause us
|
||||
// to play a sound at the origin, so add a small delay to prevent this.
|
||||
// (and randomize it a bit).
|
||||
szombie.sound_time = time + (random() * 2) + 3;
|
||||
};
|
||||
|
||||
void() zombie_dummy =
|
||||
|
|
Loading…
Reference in a new issue