seta cl_helper_pause 2 "number of seconds that must pass before the helper system can be triggered again"\r
seta cl_helper_health_value 25 "the helper will warn you when going below this amount of health"\r
seta cl_helper_armor_value 25 "the helper will warn you when going below this amount of armor"\r
+seta cl_helper_ammo_fuel 25 "the helper will warn you when going below this amount of ammo"\r
\r
seta cl_eventchase_death 1 "camera goes into 3rd person mode when the player is dead"\r
seta cl_eventchase_distance 140 "final camera distance"\r
sound(self, CHAN_VOICE, strcat("helper/", cvar_string("cl_helper_voice"), "/health_low.wav"), VOL_BASEVOICE, ATTN_NONE);\r
helper_health = TRUE;\r
helper_pause = time + cvar("cl_helper_pause");\r
+ helper_ammo = time + cvar("cl_helper_pause");\r
}\r
}\r
else if(helper_health)\r
}\r
else if(helper_armor)\r
helper_armor = FALSE;\r
+\r
+ // ammo helper\r
+ if(getstati(STAT_FUEL) <= cvar("cl_helper_ammo_fuel"))\r
+ {\r
+ if(!helper_ammo)\r
+ {\r
+ sound(self, CHAN_VOICE, strcat("helper/", cvar_string("cl_helper_voice"), "/ammo_low.wav"), VOL_BASEVOICE, ATTN_NONE);\r
+ helper_ammo = TRUE;\r
+ helper_pause = time + cvar("cl_helper_pause");\r
+ }\r
+ }\r
+ else if(helper_ammo)\r
+ helper_ammo = FALSE;\r
}\r
}\r
\r
\r
precache_sound (strcat("helper/", cvar_string("cl_helper_voice"), "/health_low.wav"));\r
precache_sound (strcat("helper/", cvar_string("cl_helper_voice"), "/armor_low.wav"));\r
+ precache_sound (strcat("helper/", cvar_string("cl_helper_voice"), "/ammo_low.wav"));\r
}\r
\r
void AuditLists()\r