From 42a94e6f1fd5c1ff5ff609f47200e63f363ec41c Mon Sep 17 00:00:00 2001 From: Mario Date: Mon, 30 Dec 2019 17:03:15 +1000 Subject: [PATCH] Move the falldamage velocity comment to a more appropriate location --- qcsrc/server/sv_main.qc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcsrc/server/sv_main.qc b/qcsrc/server/sv_main.qc index 80622f3878..74678487ca 100644 --- a/qcsrc/server/sv_main.qc +++ b/qcsrc/server/sv_main.qc @@ -113,11 +113,11 @@ void CreatureFrame_FallDamage(entity this) } if(!have_hook) { - float dm; + float dm; // dm is the velocity DECREASE. Velocity INCREASE should never cause a sound or any damage. if(autocvar_g_balance_falldamage_onlyvertical) dm = fabs(this.oldvelocity.z) - fabs(this.velocity.z); else - dm = vlen(this.oldvelocity) - vlen(this.velocity); // dm is now the velocity DECREASE. Velocity INCREASE should never cause a sound or any damage. + dm = vlen(this.oldvelocity) - vlen(this.velocity); if (IS_DEAD(this)) dm = (dm - autocvar_g_balance_falldamage_deadminspeed) * autocvar_g_balance_falldamage_factor; else -- 2.39.2