From: Mario Date: Mon, 30 Dec 2019 07:03:15 +0000 (+1000) Subject: Move the falldamage velocity comment to a more appropriate location X-Git-Tag: xonotic-v0.8.5~1105^2~65^2 X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=commitdiff_plain;h=42a94e6f1fd5c1ff5ff609f47200e63f363ec41c;ds=sidebyside Move the falldamage velocity comment to a more appropriate location --- 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