void() ctf_setstatus;\r
.float items_added;\r
.vector avg_vel;\r
+.float power_sounded;\r
void PlayerPreThink (void)\r
{\r
self.stat_game_starttime = game_starttime;\r
// core code for the vore system\r
Vore();\r
\r
+ // play power fail sound\r
+ if(self.armorvalue < cvar("g_power"))\r
+ {\r
+ if(!self.power_sounded)\r
+ {\r
+ sound(self, CHAN_TRIGGER, "sound/misc/power_fail.ogg", VOL_BASE, ATTN_NONE);\r
+ self.power_sounded = TRUE;\r
+ }\r
+ }\r
+ else\r
+ self.power_sounded = FALSE;\r
+\r
// version nagging\r
if(self.version_nagtime)\r
if(self.cvar_g_voretournamentversion)\r