From 934e4bacce9d73f4928583c793d312518bf1f4c1 Mon Sep 17 00:00:00 2001 From: Steam Deck User Date: Sun, 15 Jan 2023 22:44:54 -0500 Subject: [PATCH] SERVER: Buff self-inflicted explosion damage. Now more accurately reflects World at War damage results (Ray Gun, Nades, etc). --- source/server/damage.qc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source/server/damage.qc b/source/server/damage.qc index 3968549..1f605c7 100644 --- a/source/server/damage.qc +++ b/source/server/damage.qc @@ -558,7 +558,7 @@ void(entity inflictor, entity attacker, float damage2, float mindamage, float ra final_damage = 0; else { - final_damage = radius - vlen(inflictor.origin - ent.origin); + final_damage = (radius - vlen(inflictor.origin - ent.origin))*1.5; if(final_damage < 0) { @@ -566,7 +566,7 @@ void(entity inflictor, entity attacker, float damage2, float mindamage, float ra continue; } - if (final_damage > radius * 0.6) + if (final_damage > radius * 0.75) final_damage = 100; if (final_damage < other.health) @@ -582,6 +582,7 @@ void(entity inflictor, entity attacker, float damage2, float mindamage, float ra final_damage /= radius; final_damage *= 60; } + centerprint(ent, strcat("doing damage: ", ftos(final_damage))); DamageHandler (ent, ent, final_damage, S_EXPLOSIVE); } } @@ -646,4 +647,4 @@ void(entity inflictor, entity attacker, float damage2, float mindamage, float ra } ent = ent.chain; } -}; \ No newline at end of file +};