1 #include "plasma_dual.qh"
7 spawnfunc(turret_plasma_dual) { if (!turret_initialize(this, TUR_PLASMA_DUAL)) delete(this); }
9 METHOD(DualPlasmaTurret, tr_attack, void(DualPlasmaTurret thistur, entity it))
12 FireRailgunBullet (it, it.tur_shotorg, it.tur_shotorg + it.tur_shotdir_updated * MAX_SHOT_DISTANCE, 10000000000,
13 800, 0, 0, 0, 0, DEATH_TURRET_PLASMA.m_id);
16 Send_Effect(EFFECT_VORTEX_MUZZLEFLASH, it.tur_shotorg, it.tur_shotdir_updated * 1000, 1);
18 // teamcolor / hit beam effect
19 vector v = WarpZone_UnTransformOrigin(WarpZone_trace_transform, trace_endpos);
20 WarpZone_TrailParticles(NULL, particleeffectnum(EFFECT_VAPORIZER(it.team)), it.tur_shotorg, v);
22 SUPER(PlasmaTurret).tr_attack(thistur, it);
24 it.tur_head.frame += 1;
26 METHOD(DualPlasmaTurret, tr_think, void(DualPlasmaTurret thistur, entity it))
28 if ((it.tur_head.frame != 0) && (it.tur_head.frame != 3))
29 it.tur_head.frame = it.tur_head.frame + 1;
31 if (it.tur_head.frame > 6)
32 it.tur_head.frame = 0;