seta cl_vore_cutvolume_sound 0.75 "sound volume is reduced to this amount when you are in a stomach"\r
seta cl_vore_cutvolume_music 0.5 "music volume is reduced to this amount when you are in a stomach"\r
seta cl_vore_cutvolume_fade 0.1 "fading speed of the volume change"\r
+seta cl_vore_autodigest 0 "when enabled, the player will automatically begin digesting enemy prey after eating them, as long as no team mates are inside"\r
set g_vore 1 "enables the vore system, you want this on!"\r
set g_vore_digestion 1 "enables digestion system, you want this on!"\r
set g_vore_kick 1 "enables stomach kick system, you want this on!"\r
.float cvar_cl_vore_stomachmodel;\r
.float cvar_cl_vore_cameraspeed;\r
.float cvar_cl_vore_punchangle;\r
+.float cvar_cl_vore_autodigest;\r
.float cvar_chase_active;\r
\r
void Announce(string snd);\r
GetCvars_handleFloat(s, f, cvar_cl_vore_stomachmodel, "cl_vore_stomachmodel");\r
GetCvars_handleFloat(s, f, cvar_cl_vore_cameraspeed, "cl_vore_cameraspeed");\r
GetCvars_handleFloat(s, f, cvar_cl_vore_punchangle, "cl_vore_punchangle");\r
+ GetCvars_handleFloat(s, f, cvar_cl_vore_autodigest, "cl_vore_autodigest");\r
\r
self.cvar_cl_accuracy_data_share = boolean(self.cvar_cl_accuracy_data_share);\r
self.cvar_cl_accuracy_data_receive = boolean(self.cvar_cl_accuracy_data_receive);\r
e.vore_oldstomachload = e.stomach_load;\r
}\r
\r
+void Vore_AutoDigest(entity e)\r
+{\r
+ // if the predator has the autodigest preference enabled, begin digesting new prey automatically\r
+\r
+ if not(e.cvar_cl_vore_autodigest)\r
+ return;\r
+ if not(cvar("g_vore_digestion"))\r
+ return;\r
+\r
+ entity head;\r
+ if(teams_matter)\r
+ {\r
+ FOR_EACH_PLAYER(head)\r
+ {\r
+ // never begin automatic digestion if we've swallowed a team mate\r
+ if(head.team == e.team)\r
+ return;\r
+ }\r
+ }\r
+\r
+ e.digesting = TRUE;\r
+}\r
+\r
.entity pusher;\r
.float pushltime;\r
void Vore_Swallow(entity e)\r
e.predator.regurgitate_prepare = 0;\r
e.predator.spawnshieldtime = 0; // lose spawn shield when we vore\r
Vore_WeightApply(e.predator);\r
+ Vore_AutoDigest(e.predator);\r
\r
// block firing for a small amount of time, or we'll be firing the next frame after we swallow\r
e.predator.weapon_delay = time + button_delay_time;\r