3 /* TUR_##id */ PLASMA_DUAL,
4 /* function */ t_plasma_dual,
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 */ "plasmad.md3",
9 /* netname */ "plasma_dual",
10 /* fullname */ _("Dual Plasma Cannon")
13 #define PLASMA_DUAL_SETTINGS(turret)
17 PLASMA_DUAL_SETTINGS(plasma_dual)
22 void spawnfunc_turret_plasma_dual() { if not(turret_initialize(TUR_PLASMA_DUAL)) remove(self); }
24 float t_plasma_dual(float req)
33 flying = IsFlying(self); // do this BEFORE to make the trace values from FireRailgunBullet last
35 FireRailgunBullet (self.tur_shotorg, self.tur_shotorg + self.tur_shotdir_updated * MAX_SHOT_DISTANCE, 10000000000,
36 800, 0, 0, 0, 0, DEATH_TURRET_PLASMA);
39 pointparticles(particleeffectnum("nex_muzzleflash"), self.tur_shotorg, self.tur_shotdir_updated * 1000, 1);
41 // teamcolor / hit beam effect
43 v = WarpZone_UnTransformOrigin(WarpZone_trace_transform, trace_endpos);
48 case NUM_TEAM_1: // Red
49 WarpZone_TrailParticles(world, particleeffectnum("TE_TEI_G3RED"), self.tur_shotorg, v);
51 case NUM_TEAM_2: // Blue
52 WarpZone_TrailParticles(world, particleeffectnum("TE_TEI_G3BLUE"), self.tur_shotorg, v);
54 case NUM_TEAM_3: // Yellow
55 WarpZone_TrailParticles(world, particleeffectnum("TE_TEI_G3YELLOW"), self.tur_shotorg, v);
57 case NUM_TEAM_4: // Pink
58 WarpZone_TrailParticles(world, particleeffectnum("TE_TEI_G3PINK"), self.tur_shotorg, v);
63 WarpZone_TrailParticles(world, particleeffectnum("TE_TEI_G3"), self.tur_shotorg, v);
65 self.tur_head.frame += 1;
69 entity missile = turret_projectile("weapons/hagar_fire.wav", 1, 0, DEATH_TURRET_PLASMA, PROJECTILE_ELECTRO_BEAM, TRUE, TRUE);
70 missile.missile_flags = MIF_SPLASH;
71 pointparticles(particleeffectnum("laser_muzzleflash"), self.tur_shotorg, self.tur_shotdir_updated * 1000, 1);
72 self.tur_head.frame += 1;
79 if ((self.tur_head.frame != 0) && (self.tur_head.frame != 3))
80 self.tur_head.frame = self.tur_head.frame + 1;
82 if (self.tur_head.frame > 6)
83 self.tur_head.frame = 0;
93 self.ammo_flags = TFL_AMMO_ENERGY | TFL_AMMO_RECHARGE | TFL_AMMO_RECIEVE;
94 self.damage_flags |= TFL_DMG_HEADSHAKE;
95 self.firecheck_flags |= TFL_FIRECHECK_AFF;
96 self.aim_flags = TFL_AIM_LEAD | TFL_AIM_SHOTTIMECOMPENSATE | TFL_AIM_SPLASH;
98 turret_do_updates(self);
104 precache_model ("models/turrets/base.md3");
105 precache_model ("models/turrets/plasmad.md3");
110 TUR_CONFIG_SETTINGS(PLASMA_DUAL_SETTINGS(plasma_dual))
120 float t_plasma_dual(float req)
130 precache_model ("models/turrets/base.md3");
131 precache_model ("models/turrets/plasmad.md3");
140 #endif // REGISTER_TURRET