Multiplayer: Clear server and client decals upon round end.

This commit is contained in:
Marco Cawthorne 2022-08-27 22:07:29 -07:00
parent f436d17ee5
commit e744c22f40
Signed by: eukara
GPG Key ID: CE2032F0A2882A22
1 changed files with 10 additions and 0 deletions

View File

@ -454,6 +454,16 @@ CSMultiplayerRules::RestartRound(int iWipe)
for (entity eFind = world; (eFind = find(eFind, ::classname, "remove_me"));) {
remove(eFind);
}
for (entity eFind = world; (eFind = find(eFind, ::classname, "tempdecal"));) {
decal dec = (decal)eFind;
dec.m_strTexture = "";
dec.SendFlags = -1;
}
WriteByte(MSG_MULTICAST, SVC_CGAMEPACKET);
WriteByte(MSG_MULTICAST, EV_CLEARDECALS);
msg_entity = world;
multicast([0,0,0], MULTICAST_ALL);
// Select a random Terrorist for the bomb, if needed
if (g_cs_bombzones > 0) {