Skip to content

Commit

Permalink
fixed shotgun hit indicator
Browse files Browse the repository at this point in the history
  • Loading branch information
JSaurusRex committed Jun 12, 2024
1 parent e525f5f commit 5fd32ce
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/game/server/gamemodes/ctf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ bool CGameControllerCTF::OnCharacterTakeDamage(vec2 &Force, int &Dmg, int &From,
Character.m_Health -= damage;
}

Character.m_DamageTakenTick = Server()->Tick();

if(From >= 0 && From != Character.GetPlayer()->GetCid() && GameServer()->m_apPlayers[From])
{
// do damage Hit sound
Expand Down Expand Up @@ -179,7 +181,9 @@ int CGameControllerCTF::OnCharacterDeath(class CCharacter *pVictim, class CPlaye
int HadFlag = 0;

if(WeaponId == WEAPON_SELF)
{
pVictim->GetPlayer()->m_RespawnTick = Server()->Tick() + Server()->TickSpeed() * 3.0f;
}
else
pVictim->GetPlayer()->m_RespawnTick = Server()->Tick() + Server()->TickSpeed() * 0.5f;

Expand Down

0 comments on commit 5fd32ce

Please sign in to comment.