5 /* spawnflags */ TUR_FLAG_SPLASH | TUR_FLAG_FASTPROJ | TUR_FLAG_MISSILE,
6 /* mins,maxs */ '-32 -32 0', '32 32 64',
7 /* model */ "base.md3",
8 /* head_model */ "flac.md3",
10 /* fullname */ _("FLAC Cannon")
14 void turret_flac_projectile_think_explode()
16 if(self.enemy != world)
17 if(vlen(self.origin - self.enemy.origin) < self.owner.shot_radius * 3)
18 setorigin(self,self.enemy.origin + randomvec() * self.owner.shot_radius);
22 d = RadiusDamage (self, self.owner, self.owner.shot_dmg, self.owner.shot_dmg, self.owner.shot_radius, self, world, self.owner.shot_force, self.totalfrags, world);
23 self.owner.tur_dbg_dmg_t_h = self.owner.tur_dbg_dmg_t_h + d;
24 self.owner.tur_dbg_dmg_t_f = self.owner.tur_dbg_dmg_t_f + self.owner.shot_dmg;
26 RadiusDamage (self, self.realowner, self.owner.shot_dmg, self.owner.shot_dmg, self.owner.shot_radius, self, world, self.owner.shot_force, self.totalfrags, world);
31 void spawnfunc_turret_flac() { SELFPARAM(); if(!turret_initialize(TUR_FLAC)) remove(self); }
33 float t_flac(float req)
41 turret_tag_fire_update();
43 proj = turret_projectile(W_Sound("hagar_fire"), 5, 0, DEATH_TURRET_FLAC, PROJECTILE_HAGAR, TRUE, TRUE);
44 Send_Effect(EFFECT_BLASTER_MUZZLEFLASH, self.tur_shotorg, self.tur_shotdir_updated * 1000, 1);
45 proj.think = turret_flac_projectile_think_explode;
46 proj.nextthink = time + self.tur_impacttime + (random() * 0.01 - random() * 0.01);
47 proj.missile_flags = MIF_SPLASH | MIF_PROXY;
49 self.tur_head.frame = self.tur_head.frame + 1;
50 if (self.tur_head.frame >= 4)
51 self.tur_head.frame = 0;
65 self.ammo_flags = TFL_AMMO_ROCKETS | TFL_AMMO_RECHARGE;
66 self.aim_flags = TFL_AIM_LEAD | TFL_AIM_SHOTTIMECOMPENSATE;
67 self.damage_flags |= TFL_DMG_HEADSHAKE;
68 self.target_select_flags |= TFL_TARGETSELECT_NOTURRETS | TFL_TARGETSELECT_MISSILESONLY;
83 float t_flac(float req)
101 #endif // REGISTER_TURRET