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:
Marco Cawthorne 2022-05-02 10:50:10 -07:00
parent 66e982b901
commit 978cf8e1fc
Signed by: eukara
GPG Key ID: C196CD8BA993248A
1 changed files with 1 additions and 1 deletions

View File

@ -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 {