From d2c5bc85f0b5fcb03c3bf91c14e12017820e1f54 Mon Sep 17 00:00:00 2001 From: Saint Wish <6036821+SaintWish@users.noreply.github.com> Date: Tue, 29 Sep 2026 20:04:21 -0500 Subject: [PATCH 1/2] fix possible crash with logging --- src/game/shared/ms/script.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/shared/ms/script.cpp b/src/game/shared/ms/script.cpp index ca5f4b30..573f7616 100644 --- a/src/game/shared/ms/script.cpp +++ b/src/game/shared/ms/script.cpp @@ -356,7 +356,7 @@ const char* CScript::GetConst(const char* Text) return ReturnString; } else - MS_ERROR("%s: Script: %s, \"%s\" - Mismatched Parenthesis!", m.ScriptFile.c_str(), Text); + MS_ERROR("%s: Script: %s, - Mismatched Parenthesis!", m.ScriptFile.c_str()); } else for (unsigned int i = 0; i < m_Constants.size(); i++) From f89a4c2fcd39a4126fdebbfcb7c187825c83812e Mon Sep 17 00:00:00 2001 From: therenderman1337 Date: Tue, 29 Sep 2026 21:33:10 -0400 Subject: [PATCH 2/2] Possible fix for invisible armor/floating head bug --- src/game/server/player/player.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/game/server/player/player.cpp b/src/game/server/player/player.cpp index 737a8e9e..9fd7aba9 100644 --- a/src/game/server/player/player.cpp +++ b/src/game/server/player/player.cpp @@ -6459,6 +6459,25 @@ bool CBasePlayer::RestoreAllServer(void *pData, ulong Size) //Send music data + //Server saves player as dead on death+disconnect so Spawn() wouldn't trigger a refresh on gear due to them being read as dead to the server causing invisible armor/floating head, should be fixed now - Dravus 9/29/26 + if (pev->deadflag > DEAD_NO) + { + for (unsigned int i = 0; i < Gear.size(); i++) + { + CGenericItem *cur_item = Gear[i]; + + if (cur_item->IsWorn()) + { + static msstringlist Params; + Params.clearitems(); + Params.add(m_Race); + Params.add((m_Gender == 0) ? "male" : "female"); + Params.add("game_show"); + cur_item->CallScriptEvent("game_show", &Params); + } + } + } + Spawn(); return true;