env_message: When spawnflags EMF_ALLPLAYERS isn't set and our activator is NOT a client then broadcast to all players anyway.
This is a hack to make the credits in c0a0 etc. work. Hack.
This commit is contained in:
parent
66e982b901
commit
978cf8e1fc
1 changed files with 1 additions and 1 deletions
|
@ -63,7 +63,7 @@ env_message::Play(entity act, int state)
|
|||
WriteFloat(MSG_MULTICAST, m_flVolume);
|
||||
WriteByte(MSG_MULTICAST, m_iAttenuation);
|
||||
|
||||
if (HasSpawnFlags(EMF_ALLPLAYERS)) {
|
||||
if (!(act.flags & FL_CLIENT) || HasSpawnFlags(EMF_ALLPLAYERS)) {
|
||||
msg_entity = this;
|
||||
multicast(origin, MULTICAST_ALL);
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue