diff --git a/src/game/shared/swarm/asw_util_shared.cpp b/src/game/shared/swarm/asw_util_shared.cpp index 626236fcd..cc7483dd2 100644 --- a/src/game/shared/swarm/asw_util_shared.cpp +++ b/src/game/shared/swarm/asw_util_shared.cpp @@ -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 );