]> git.rm.cloudns.org Git - voretournament/voretournament.git/commitdiff
Add vore and size offsets to dodging speed. Needs testing
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Wed, 16 May 2012 10:29:47 +0000 (13:29 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Wed, 16 May 2012 10:29:47 +0000 (13:29 +0300)
data/qcsrc/server/cl_physics.qc

index 300f65b3a940c56a060e45ee57e0c8ccd55741df..068f7dbd7dbf330e99cd9aceafc3a772c36195bc 100644 (file)
@@ -690,6 +690,14 @@ void dodging()
                common_factor = 1;\r
 \r
        new_velocity_gain = self.dodging_velocity_gain - (common_factor * cvar("sv_dodging_horiz_speed"));\r
+\r
+       if(cvar("g_healthsize")) // if we are smaller or larger, we jump lower or higher\r
+               new_velocity_gain *= (1 - cvar("g_healthsize_movementfactor")) + cvar("g_healthsize_movementfactor") * self.scale;\r
+       if(self.swallow_progress_prey) // cut jumping based on swallow progress for prey\r
+               new_velocity_gain *= 1 - (self.swallow_progress_prey * cvar("g_balance_vore_swallow_speed_cutspd_prey"));\r
+       if(self.swallow_progress_pred) // cut jumping based on swallow progress for preds\r
+               new_velocity_gain *= 1 - (self.swallow_progress_pred * cvar("g_balance_vore_swallow_speed_cutspd_pred"));\r
+\r
        if (new_velocity_gain < 0)\r
                new_velocity_gain = 0;\r
 \r