Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions src/game/server/player/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/game/shared/ms/script.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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++)
Expand Down
Loading