1 #include "plasma_dual.qh"
5 spawnfunc(turret_plasma_dual) { if (!turret_initialize(this, TUR_PLASMA_DUAL)) delete(this); }
7 METHOD(DualPlasmaTurret, tr_attack, void(DualPlasmaTurret thistur, entity it))
9 if (MUTATOR_IS_ENABLED(mutator_instagib)) {
10 .entity weaponentity = weaponentities[0]; // TODO: unhardcode
11 FireRailgunBullet (it, weaponentity, it.tur_shotorg, it.tur_shotorg + it.tur_shotdir_updated * max_shot_distance, 10000000000,
12 800, 0, 0, 0, 0, DEATH_TURRET_PLASMA.m_id);
15 Send_Effect(EFFECT_VORTEX_MUZZLEFLASH, it.tur_shotorg, it.tur_shotdir_updated * 1000, 1);
17 // teamcolor / hit beam effect
18 vector v = WarpZone_UnTransformOrigin(WarpZone_trace_transform, trace_endpos);
19 WarpZone_TrailParticles(NULL, particleeffectnum(EFFECT_VAPORIZER(it.team)), it.tur_shotorg, v);
21 SUPER(PlasmaTurret).tr_attack(thistur, it);
23 it.tur_head.frame += 1;
25 METHOD(DualPlasmaTurret, tr_think, void(DualPlasmaTurret thistur, entity it))
27 if ((it.tur_head.frame != 0) && (it.tur_head.frame != 3))
28 it.tur_head.frame = it.tur_head.frame + 1;
30 if (it.tur_head.frame > 6)
31 it.tur_head.frame = 0;