diff --git a/datasrc/network.py b/datasrc/network.py index 24700a7dd..6971cc991 100644 --- a/datasrc/network.py +++ b/datasrc/network.py @@ -234,8 +234,8 @@ Objects = [ NetEvent("Damage:Common", [ # Unused yet NetIntRange("m_ClientID", 0, 'MAX_CLIENTS-1'), NetIntAny("m_Angle"), - NetIntRange("m_HealthAmount", 1, 9), - NetIntRange("m_ArmorAmount", 1, 9), + NetIntRange("m_HealthAmount", 0, 9), + NetIntRange("m_ArmorAmount", 0, 9), NetBool("m_Self"), ]), ] diff --git a/src/game/client/components/effects.cpp b/src/game/client/components/effects.cpp index d98a1b93b..b6a452c48 100644 --- a/src/game/client/components/effects.cpp +++ b/src/game/client/components/effects.cpp @@ -51,6 +51,10 @@ void CEffects::AirJump(vec2 Pos) void CEffects::DamageIndicator(vec2 Pos, int Amount) { + // ignore if there is no damage + if(Amount == 0) + return; + m_DamageTaken++; int Angle; // create healthmod indicator