mirror of
https://github.com/FWGS/hlsdk-xash3d
synced 2024-11-22 09:57:21 +01:00
Clear hitgroup for reflected gauss shots.
This commit is contained in:
parent
c949e02e4e
commit
d5a8a0d3a3
@ -430,6 +430,8 @@ void CGauss::Fire( Vector vecOrigSrc, Vector vecDir, float flDamage )
|
|||||||
if( pEntity->pev->takedamage )
|
if( pEntity->pev->takedamage )
|
||||||
{
|
{
|
||||||
ClearMultiDamage();
|
ClearMultiDamage();
|
||||||
|
if( pEntity->pev == m_pPlayer->pev )
|
||||||
|
tr.iHitgroup = 0;
|
||||||
pEntity->TraceAttack( m_pPlayer->pev, flDamage, vecDir, &tr, DMG_BULLET );
|
pEntity->TraceAttack( m_pPlayer->pev, flDamage, vecDir, &tr, DMG_BULLET );
|
||||||
ApplyMultiDamage( m_pPlayer->pev, m_pPlayer->pev );
|
ApplyMultiDamage( m_pPlayer->pev, m_pPlayer->pev );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user