// Go boom\r
//RadiusDamage (self,self, min(self.ammo,50),min(self.ammo,50) * 0.25,250,world,min(self.ammo,50)*5,DEATH_TURRET,world);\r
\r
+ sound(self, CHAN_TRIGGER, "turrets/turret_exp.wav", VOL_BASE, ATTN_NORM);\r
+\r
if(self.damage_flags & TFL_DMG_DEATH_NORESPAWN)\r
{\r
if (self.turret_diehook)\r
\r
self.health = self.health - damage;\r
\r
+ //sound on every hit\r
+ if (random() < 0.5)\r
+ sound(self, CHAN_TRIGGER, "turrets/turret_hit1.wav", VOL_BASE, ATTN_NORM);\r
+ else\r
+ sound(self, CHAN_TRIGGER, "turrets/turret_hit2.wav", VOL_BASE, ATTN_NORM);\r
+\r
// thorw head slightly off aim when hit?\r
if (self.damage_flags & TFL_DMG_HEADSHAKE)\r
{\r
//precache_model ("models/turrets/tesla_head.md3");\r
//precache_model ("models/turrets/tesla_base.md3");\r
//turrets_precache_debug_models();\r
+\r
+ precache_sound("turrets/turret_hit1.wav");\r
+ precache_sound("turrets/turret_hit2.wav");\r
+ precache_sound("turrets/turret_exp.wav");\r
}\r