Skip to content

Commit

Permalink
allow skin switching if person is dead
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamTadeusz committed Sep 20, 2024
1 parent b8f30d3 commit 1eb2118
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions mp/src/game/server/neo/neo_player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -162,18 +162,15 @@ void CNEO_Player::RequestSetClass(int newClass)
void CNEO_Player::RequestSetSkin(int newSkin)
{
const NeoRoundStatus roundStatus = NEORules()->GetRoundStatus();
bool canChangeImmediately = ((roundStatus != NeoRoundStatus::RoundLive) && (roundStatus != NeoRoundStatus::PostRound));
bool canChangeImmediately = ((roundStatus != NeoRoundStatus::RoundLive) && (roundStatus != NeoRoundStatus::PostRound)) || !IsAlive();

if (canChangeImmediately)
{
m_iNeoSkin = newSkin;

SetPlayerTeamModel();
}
else
{
// TODO set for next spawn
}
//else NEOTODO Set for next spawn
}

static bool IsNeoPrimary(CNEOBaseCombatWeapon *pNeoWep)
Expand Down

0 comments on commit 1eb2118

Please sign in to comment.