Skip to content

Commit

Permalink
[HL25] Backport changes to Gauss
Browse files Browse the repository at this point in the history
The code which santizes the recharge sound is not in here since multiplay does not have smooth changelevels.

Co-Authored-By: Joël Troch <[email protected]>
  • Loading branch information
sabianroberts and JoelTroch committed Oct 28, 2024
1 parent 7257d30 commit 0763b72
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions binary/dlls/gauss.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,13 @@ void CGauss::Fire(Vector vecOrigSrc, Vector vecDir, float flDamage)
if (pEntity->pev->takedamage)
{
ClearMultiDamage();

// if you hurt yourself clear the headshot bit
if (m_pPlayer->pev == pEntity->pev)
{
tr.iHitgroup = 0;
}

pEntity->TraceAttack(m_pPlayer->pev, flDamage, vecDir, &tr, DMG_BULLET);
ApplyMultiDamage(m_pPlayer->pev, m_pPlayer->pev);
}
Expand Down

0 comments on commit 0763b72

Please sign in to comment.