set g_vore_regurgitatecolor_digest "0.15 0.25 0" "the color players will have when digested, only works when g_vore_keepdeadprey is disabled"\r
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
seta menu_bgmvolume 1\r
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
+}\r
+\r
void ObserverThink()\r
{\r
if (self.flags & FL_JUMPRELEASED) {\r
// core code for the vore system\r
Vore();\r
\r
+ // health based player size\r
+ ApplyHealthSize();\r
+\r
// version nagging\r
if(self.version_nagtime)\r
if(self.cvar_g_voretournamentversion)\r