5 /* spawnflags */ TUR_FLAG_SPLASH | TUR_FLAG_MEDPROJ | TUR_FLAG_PLAYER,
6 /* mins,maxs */ '-32 -32 0', '32 32 64',
7 /* model */ "base.md3",
8 /* head_model */ "mlrs.md3",
10 /* fullname */ _("MLRS Turret")
14 void spawnfunc_turret_mlrs() { if(!turret_initialize(TUR_MLRS)) remove(self); }
16 float t_mlrs(float req)
24 turret_tag_fire_update();
25 missile = turret_projectile(W_Sound("rocket_fire"), 6, 10, DEATH_TURRET_MLRS, PROJECTILE_ROCKET, TRUE, TRUE);
26 missile.nextthink = time + max(self.tur_impacttime,(self.shot_radius * 2) / self.shot_speed);
27 missile.missile_flags = MIF_SPLASH;
28 te_explosion (missile.origin);
34 // 0 = full, 6 = empty
35 self.tur_head.frame = bound(0, 6 - floor(0.1 + self.ammo / self.shot_dmg), 6);
36 if(self.tur_head.frame < 0)
38 dprint("ammo:",ftos(self.ammo),"\n");
39 dprint("shot_dmg:",ftos(self.shot_dmg),"\n");
50 self.ammo_flags = TFL_AMMO_ROCKETS | TFL_AMMO_RECHARGE;
51 self.aim_flags = TFL_AIM_LEAD | TFL_AIM_SHOTTIMECOMPENSATE;
53 self.damage_flags |= TFL_DMG_HEADSHAKE;
54 self.shoot_flags |= TFL_SHOOT_VOLLYALWAYS;
55 self.volly_counter = self.shot_volly;
61 precache_model ("models/turrets/base.md3");
62 precache_model ("models/turrets/mlrs.md3");
72 float t_mlrs(float req)
90 #endif // REGISTER_TURRET