seta g_ghost_items_color "-1 -1 -1" "color of ghosted items, 0 0 0 leaves the color unchanged"\r
\r
set cl_vore_stomachmodel 1 "when enabled, we see the stomach model around us when eaten. -1 = disabled, 1 = enabled, anything between 0 and 1 = alpha"\r
+set cl_vore_cameraspeed 1.5 "speed at which you see yourself sliding down when getting swallowed, 0 disables"\r
set g_vore_regurgitatecolor_released "0.75 1 0.5" "the color players will have when released from the stomach alive"\r
set g_vore_regurgitatecolor_digested "-0.125 0.25 0" "the color players will have when released from the stomach digested"\r
set g_vore_gurglesound 1 "predators make an ambient gurgling sound"\r
#endif\r
.float cvar_cl_gunalign;\r
.float cvar_cl_noantilag;\r
-.float cvar_chase_active;\r
.float cvar_cl_vore_stomachmodel;\r
+.float cvar_cl_vore_cameraspeed;\r
+.float cvar_chase_active;\r
\r
void Announce(string snd);\r
void AnnounceTo(entity e, string snd);\r
GetCvars_handleFloat(s, f, cvar_cl_accuracy_data_receive, "cl_accuracy_data_receive");\r
GetCvars_handleFloat(s, f, cvar_chase_active, "chase_active");\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
\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
if(self.eater.classname != "player")\r
return;\r
\r
- local float step;\r
- step = 2 * frametime; // CVAR!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\r
+ if(self.cvar_cl_vore_cameraspeed)\r
+ {\r
+ local float step;\r
+ step = self.cvar_cl_vore_cameraspeed * frametime;\r
\r
- if(self.cameraeffect_current >= self.cameraeffect_target + step)\r
- self.cameraeffect_current -= step;\r
- else if(self.cameraeffect_current <= self.cameraeffect_target - step)\r
- self.cameraeffect_current += step;\r
+ if(self.cameraeffect_current >= self.cameraeffect_target + step)\r
+ self.cameraeffect_current -= step;\r
+ else if(self.cameraeffect_current <= self.cameraeffect_target - step)\r
+ self.cameraeffect_current += step;\r
+ }\r
+ else\r
+ self.cameraeffect_current = self.cameraeffect_target;\r
\r
-bprint(strcat(ftos(self.cameraeffect_current), "<<-----------\n"));\r
self.view_ofs_z = self.vore_oldview_ofs_z / self.cameraeffect_current;\r
}\r
\r