X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fserver%2Fw_nex.qc;h=87d0c88ab53fae69c7e3a9151c9ed31c2eccbccf;hp=8acf9f4c6b12c90727bf1d357f3e06eb8f873e93;hb=580c768d0f2e32d2b545fa80c08c515aeb0ca67a;hpb=e541c43dde9dd0a36b51c9ce70b7a6bff6a8d382 diff --git a/qcsrc/server/w_nex.qc b/qcsrc/server/w_nex.qc index 8acf9f4c6b..87d0c88ab5 100644 --- a/qcsrc/server/w_nex.qc +++ b/qcsrc/server/w_nex.qc @@ -43,7 +43,7 @@ void W_Nex_Attack (float issecondary) float flying; flying = IsFlying(self); // do this BEFORE to make the trace values from FireRailgunBullet last - f = ExponentialFalloff(cvar("g_balance_nex_velocitydependent_minspeed"), cvar("g_balance_nex_velocitydependent_maxspeed"), cvar("g_balance_nex_velocitydependent_halflife"), vlen('1 0 0' * self.velocity_x + '0 1 0' * self.velocity_y)); + f = ExponentialFalloff(cvar("g_balance_nex_velocitydependent_minspeed"), cvar("g_balance_nex_velocitydependent_maxspeed"), cvar("g_balance_nex_velocitydependent_halflife"), self.nexspeed); // TODO: make it more obvious (through effects, indicator on weapon) that damage increases when speed increases mydmg *= f;