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
velocity_difference = self.dodging_velocity_gain - new_velocity_gain;\r
+ if(cvar("g_healthsize")) // if we are smaller or larger, we jump lower or higher\r
+ velocity_difference *= (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
+ velocity_difference *= 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
+ velocity_difference *= 1 - (self.swallow_progress_pred * cvar("g_balance_vore_swallow_speed_cutspd_pred"));\r
\r
// ramp up dodging speed by adding some velocity each frame.. TODO: do it! :D\r
if (self.dodging_action == 1) {\r
\r
- 0.8: View blur while being swallowed (same one as damage blur), as well as the screen darkening perhaps\r
\r
-- 0.8: Make crosshair size change based on distance of what you're looking at?\r
-\r
-- 0.8: Add dodging from Xonotic
\ No newline at end of file
+- 0.8: Make crosshair size change based on distance of what you're looking at?
\ No newline at end of file