Balance the swallow progress movement cutting factor, and do some small tweaks
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 9 Jul 2011 15:42:07 +0000 (18:42 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 9 Jul 2011 15:42:07 +0000 (18:42 +0300)
data/balanceVT.cfg
data/qcsrc/server/cl_physics.qc
data/qcsrc/server/vore.qc

index 8522aed..e2e1a22 100644 (file)
@@ -188,8 +188,8 @@ set g_balance_grabber_reload_time 2
 set g_balance_vore_swallow_range 100 "distance below which you can swallow another player when facing them"\r
 set g_balance_vore_swallow_limit 3 "how many players can fit in the stomach at a time, may range between 1 and 9"\r
 set g_balance_vore_swallow_speed_fill 2 "how long it takes to swallow a player, 0 is instant"\r
-set g_balance_vore_swallow_speed_decrease 0.5 "how fast the swallow progress decreases, when the predator is no longer swallowing"\r
-set g_balance_vore_swallow_speed_cutspd 1 "if enabled, prey walks slower the closer they are to being swallowed"\r
+set g_balance_vore_swallow_speed_decrease 0.25 "how fast the swallow progress decreases, when the predator is no longer swallowing"\r
+set g_balance_vore_swallow_speed_cutspd 0.5 "prey movement slows down by this amount the closer they are to being swallowed"\r
 set g_balance_vore_swallow_speed 1 "how long it takes to swallow a player"\r
 set g_balance_vore_swallow_stealprey 0.7 "probability of stealing someone's prey when eating them (when true their prey joins your stomach rather than popping out). 0 = never, 1 = always"\r
 set g_balance_vore_swallow_dropweapon 0.6 "probability of dropping your weapon when swallowed. 0 = never and 1 = always, does not apply to team mates"\r
index 3118cdb..36c5f0b 100644 (file)
@@ -825,7 +825,7 @@ void SV_PlayerPhysics()
        if(cvar("g_balance_vore_weight_gravity") > 0)\r
                maxspd_mod *= 1 - bound(0, self.stomach_load * cvar("g_balance_vore_weight_speed"), 1); // apply stomach weight\r
        if(self.swallow_progress_prey && cvar("g_balance_vore_swallow_speed_cutspd"))\r
-               maxspd_mod *= 1 - self.swallow_progress_prey; // cut speed based on swallow progress\r
+               maxspd_mod *= 1 - (self.swallow_progress_prey * cvar("g_balance_vore_swallow_speed_cutspd")); // cut speed based on swallow progress\r
        swampspd_mod = 1;\r
 \r
        // if dead, behave differently\r
index 6c787ca..d0abeb6 100644 (file)
@@ -637,17 +637,20 @@ void Vore()
        }\r
 \r
        // the swallow progress of prey and preds idly decrease by this amount\r
-       if(self.swallow_progress_pred)\r
+       if(cvar("g_balance_vore_swallow_speed_decrease"))\r
        {\r
-               self.swallow_progress_pred -= cvar("g_balance_vore_swallow_speed_decrease") * frametime;\r
-               if(self.swallow_progress_pred < 0)\r
-                       self.swallow_progress_pred = 0;\r
-       }\r
-       if(self.swallow_progress_prey)\r
-       {\r
-               self.swallow_progress_prey -= cvar("g_balance_vore_swallow_speed_decrease") * frametime;\r
-               if(self.swallow_progress_prey < 0)\r
-                       self.swallow_progress_prey = 0;\r
+               if(self.swallow_progress_pred)\r
+               {\r
+                       self.swallow_progress_pred -= cvar("g_balance_vore_swallow_speed_decrease") * frametime;\r
+                       if(self.swallow_progress_pred < 0)\r
+                               self.swallow_progress_pred = 0;\r
+               }\r
+               if(self.swallow_progress_prey)\r
+               {\r
+                       self.swallow_progress_prey -= cvar("g_balance_vore_swallow_speed_decrease") * frametime;\r
+                       if(self.swallow_progress_prey < 0)\r
+                               self.swallow_progress_prey = 0;\r
+               }\r
        }\r
 \r
        // apply delays and skip the vore system under some circumstances\r