mirror of
https://github.com/nzp-team/quakec.git
synced 2025-01-31 13:40:52 +00:00
SERVER: Create dummy entity for playing sound from teddy entity.
This commit is contained in:
parent
19e119945c
commit
4ce1beb29e
1 changed files with 7 additions and 1 deletions
|
@ -304,8 +304,14 @@ void() teddy_react =
|
|||
remove(t);
|
||||
}
|
||||
|
||||
entity dummy = spawn();
|
||||
setorigin(dummy, self.origin);
|
||||
dummy.think = SUB_Remove;
|
||||
dummy.nextthink = time + 10;
|
||||
|
||||
|
||||
if (self.noise)
|
||||
sound (self, CHAN_ITEM, self.noise, 1, ATTN_NORM);
|
||||
sound (dummy, CHAN_ITEM, self.noise, 1, ATTN_NORM);
|
||||
|
||||
remove(self);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue