Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/game/shared/swarm/asw_util_shared.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,8 @@ void UTIL_RD_HitConfirm( CBaseEntity *pTarget, int iHealthBefore, const CTakeDam
bool bDamageOverTime = info.GetDamageType() & DMG_DIRECT;
bool bBlastDamage = info.GetDamageType() & DMG_BLAST;
Disposition_t iDisposition = pInhabitableAttacker && pTarget ? pInhabitableAttacker->IRelationType( pTarget ) : D_HT;
float flDamage = MIN( info.GetDamage(), iHealthBefore );
int iHealth = pTarget ? pTarget->GetHealth() : 0;
float flDamage = MIN( iHealthBefore - iHealth, iHealthBefore );

UserMessageBegin( filter, "RDHitConfirm" );
WRITE_ENTITY( pAttacker ? pAttacker->entindex() : -1 );
Expand Down