Skip to content

Commit

Permalink
CInfClassInfected: Refactor GiveClassAttributes()
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaffeine committed Jul 26, 2024
1 parent ec17a2c commit 5081d08
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/game/server/infclass/classes/infected/infected.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -653,8 +653,13 @@ void CInfClassInfected::GiveClassAttributes()
return;
}

m_pCharacter->GiveWeapon(WEAPON_HAMMER, -1);
m_pCharacter->SetActiveWeapon(WEAPON_HAMMER);
switch(GetPlayerClass())
{
default:
m_pCharacter->GiveWeapon(WEAPON_HAMMER, -1);
m_pCharacter->SetActiveWeapon(WEAPON_HAMMER);
break;
}

m_VoodooAboutToDie = false;
m_VoodooTimeAlive = Server()->TickSpeed()*Config()->m_InfVoodooAliveTime;
Expand Down

0 comments on commit 5081d08

Please sign in to comment.