We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4683b77 commit 69b0dd4Copy full SHA for 69b0dd4
src/cs2fixes.cpp
@@ -1119,7 +1119,11 @@ bool CS2Fixes::Hook_OnTakeDamage_Alive(CTakeDamageResult* pDamageResult)
1119
CCSPlayerPawn* pPawn = META_IFACEPTR(CCSPlayerPawn);
1120
1121
if (g_cvarEnableZR.Get() && ZR_Hook_OnTakeDamage_Alive(pDamageResult->m_pOriginatingInfo, pPawn))
1122
+ {
1123
+ pDamageResult->m_bWasDamageSuppressed = true;
1124
+ pDamageResult->m_nDamageDealt = 0;
1125
RETURN_META_VALUE(MRES_SUPERCEDE, false);
1126
+ }
1127
1128
// This is a shit place to be doing this, but player_death event is too late and there is no pre-hook alternative
1129
// Check if this is going to kill the player
0 commit comments