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://git.rm.cloudns.org/?a=commitdiff_plain;h=refs%2Fmerge-requests%2F745%2Fhead;p=xonotic%2Fxonotic-data.pk3dir.git 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 80622f387..74678487c 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