5 spawnfunc(turret_mlrs) { if (!turret_initialize(this, TUR_MLRS)) delete(this); }
7 METHOD(MLRSTurret, tr_think, void(MLRSTurret thistur, entity it))
10 it.tur_head.frame = bound(0, 6 - floor(0.1 + it.ammo / it.shot_dmg), 6);
11 if(it.tur_head.frame < 0)
13 LOG_TRACE("ammo:",ftos(it.ammo));
14 LOG_TRACE("shot_dmg:",ftos(it.shot_dmg));
17 METHOD(MLRSTurret, tr_setup, void(MLRSTurret this, entity it))
19 it.ammo_flags = TFL_AMMO_ROCKETS | TFL_AMMO_RECHARGE;
20 it.aim_flags = TFL_AIM_LEAD | TFL_AIM_SHOTTIMECOMPENSATE;
22 it.damage_flags |= TFL_DMG_HEADSHAKE;
23 it.shoot_flags |= TFL_SHOOT_VOLLYALWAYS;
24 it.volly_counter = it.shot_volly;