set g_healthsize_weapon_scalefactor_pos 10 "Amount by which the view model is moved vertically based on player size"\r
\r
set g_power 5 "when armor is below this level, the HUD, crosshair and helper will not work"\r
-set g_power_reboot 3 "amount of time it takes to boot a player's subsystems once he has enough armor"\r
+set g_power_reboot 2 "amount of time it takes to boot a player's subsystems once he has enough armor"\r
+set g_power_reboot_spawn 1 "when enabled, a player's subsystems must boot whenever he spawns"\r
\r
// part of an ugly hack for the menu audio sliders to work with the cutsound feature\r
seta menu_volume 1\r
}\r
\r
float apply_idlescale;\r
- if(cvar("cl_vore_vieweffects_idlescale_prey"))\r
+ if(cvar("cl_vore_vieweffects_idlescale_prey") && frametime)\r
{\r
apply_idlescale += getstatf(STAT_VORE_PROGRESS_PREY) * cvar("cl_vore_vieweffects_idlescale_prey");\r
if(cvar("v_idlescale") != apply_idlescale)\r
cvar_clientsettemp("v_idlescale", ftos(apply_idlescale));\r
}\r
- if(cvar("cl_vore_vieweffects_idlescale_predator"))\r
+ if(cvar("cl_vore_vieweffects_idlescale_predator") && frametime)\r
{\r
apply_idlescale += getstatf(STAT_VORE_PROGRESS_PRED) * cvar("cl_vore_vieweffects_idlescale_predator");\r
if(cvar("v_idlescale") != apply_idlescale)\r
cvar_clientsettemp("v_idlescale", ftos(apply_idlescale));\r
}\r
- if(cvar("cl_vore_vieweffects_idlescale_stomach"))\r
+ if(cvar("cl_vore_vieweffects_idlescale_stomach") && frametime)\r
{\r
apply_idlescale += getstati(STAT_VORE_EATEN) * cvar("cl_vore_vieweffects_idlescale_stomach");\r
if(cvar("v_idlescale") != apply_idlescale)\r
fov *= spawnfov_current;\r
}\r
\r
+ if(respawned)\r
+ {\r
+ if(g_power_reboot_spawn)\r
+ power_boot = time + g_power_reboot;\r
+ else\r
+ power_boot = time;\r
+ }\r
+\r
R_SetView(VF_FOV, GetCurrentFov(fov));\r
\r
// Camera for demo playback\r
float g_healthsize_center, g_healthsize_min, g_healthsize_max;\r
float armor_max;\r
float teamheal_max;\r
-float g_power, g_power_reboot;\r
+float g_power, g_power_reboot, g_power_reboot_spawn;\r
\r
//hooks\r
float calledhooks;\r
\r
WriteShort(MSG_ENTITY, cvar("g_power"));\r
WriteShort(MSG_ENTITY, cvar("g_power_reboot"));\r
+ WriteByte(MSG_ENTITY, cvar("g_power_reboot_spawn"));\r
\r
return TRUE;\r
}\r