Don't smoothly scale players, but let the amount of health decide.
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 2 May 2011 00:51:58 +0000 (03:51 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 2 May 2011 00:51:58 +0000 (03:51 +0300)
data/defaultVT.cfg
data/qcsrc/server/cl_client.qc

index dbb2de0c624f20e62567bb32ac9a5962710fb02c..9a549b34cff662cd4a66f81e4f0e5945c5f286cd 100644 (file)
@@ -1548,7 +1548,6 @@ set g_vore_regurgitatecolor_digest "0.15 0.25 0" "the color players will have wh
 set g_vore_keepdeadprey 1 "If enabled, prey remains in the stomach after dying, else the predator throws up their dead body. 0 = disabled, 1 = enabled, anything between = probability"\r
 \r
 set g_healthsize 1 "Players who are low on health shrink and become smaller"\r
-set g_healthsize_speed 0.1 "Players who are low on health shrink and become smaller"\r
 \r
 // part of an ugly hack for the menu audio sliders to work with the cutsound feature\r
 seta menu_volume 0.5\r
index 4f08c2253c48b60bfad9c49eeced08ac9531d834..569769df9d361f47cec88b0e0e3cabf834a66e10 100644 (file)
@@ -2246,21 +2246,12 @@ float vercmp(string v1, string v2)
        return vercmp_recursive(v1, v2);\r
 }\r
 \r
-.float current_scale;\r
 void ApplyHealthSize()\r
 {\r
        if not(cvar("g_healthsize"))\r
                return;\r
 \r
-       self.current_scale = self.health / 100; // range between 0 and 100\r
-       self.current_scale = bound(0, self.current_scale, 100);\r
-\r
-       if(self.scale < self.current_scale - self.scale)\r
-               self.scale += cvar("g_healthsize_speed") * sys_frametime;\r
-       else if(self.scale > self.current_scale + self.scale)\r
-               self.scale -= cvar("g_healthsize_speed") * sys_frametime;\r
-       else\r
-               self.scale = self.current_scale;\r
+       self.scale = self.health / 100; // ranges between 0 and 100\r
 \r
        // The following code sets the bounding box to match the player's size.\r
        // It is currently disabled because of issues with engine movement prediction (cl_movement).\r