mirror of
https://github.com/nzp-team/quakec.git
synced 2024-11-10 22:51:36 +00:00
SERVER: Fix teddy_spawn not having support for noise
This commit is contained in:
parent
1d48d374d9
commit
5df73e8431
2 changed files with 7 additions and 1 deletions
|
@ -662,6 +662,9 @@ void() teddy_spawn =
|
|||
self.takedamage = DAMAGE_YES;
|
||||
self.health = 0;
|
||||
self.th_die = teddy_react;
|
||||
|
||||
if (self.noise)
|
||||
precache_sound (self.noise);
|
||||
};
|
||||
|
||||
/* ==================
|
||||
|
|
|
@ -304,7 +304,10 @@ void() teddy_react =
|
|||
remove(t);
|
||||
}
|
||||
|
||||
remove(self); //this was present in the patch, i like it.
|
||||
if (self.noise)
|
||||
sound (self, CHAN_ITEM, self.noise, 1, ATTN_NORM);
|
||||
|
||||
remove(self);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue