From: MirceaKitsune Date: Wed, 16 May 2012 10:29:47 +0000 (+0300) Subject: Add vore and size offsets to dodging speed. Needs testing X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=07def64d25ad104db6e57724041b7fcfd90f429c;p=voretournament%2Fvoretournament.git Add vore and size offsets to dodging speed. Needs testing --- diff --git a/data/qcsrc/server/cl_physics.qc b/data/qcsrc/server/cl_physics.qc index 300f65b3..068f7dbd 100644 --- a/data/qcsrc/server/cl_physics.qc +++ b/data/qcsrc/server/cl_physics.qc @@ -690,6 +690,14 @@ void dodging() common_factor = 1; new_velocity_gain = self.dodging_velocity_gain - (common_factor * cvar("sv_dodging_horiz_speed")); + + if(cvar("g_healthsize")) // if we are smaller or larger, we jump lower or higher + new_velocity_gain *= (1 - cvar("g_healthsize_movementfactor")) + cvar("g_healthsize_movementfactor") * self.scale; + if(self.swallow_progress_prey) // cut jumping based on swallow progress for prey + new_velocity_gain *= 1 - (self.swallow_progress_prey * cvar("g_balance_vore_swallow_speed_cutspd_prey")); + if(self.swallow_progress_pred) // cut jumping based on swallow progress for preds + new_velocity_gain *= 1 - (self.swallow_progress_pred * cvar("g_balance_vore_swallow_speed_cutspd_pred")); + if (new_velocity_gain < 0) new_velocity_gain = 0;