3 #include "phaser_weapon.qh"
5 CLASS(PhaserTurret, Turret)
6 /* spawnflags */ ATTRIB(PhaserTurret, spawnflags, int, TUR_FLAG_SNIPER | TUR_FLAG_HITSCAN | TUR_FLAG_PLAYER);
7 /* mins */ ATTRIB(PhaserTurret, mins, vector, '-32 -32 0');
8 /* maxs */ ATTRIB(PhaserTurret, maxs, vector, '32 32 64');
9 /* modelname */ ATTRIB(PhaserTurret, mdl, string, "base.md3");
10 /* model */ ATTRIB_STRZONE(PhaserTurret, model, string, strcat("models/turrets/", this.mdl));
11 /* head_model */ ATTRIB_STRZONE(PhaserTurret, head_model, string, strcat("models/turrets/", "phaser.md3"));
12 /* netname */ ATTRIB(PhaserTurret, netname, string, "phaser");
13 /* fullname */ ATTRIB(PhaserTurret, turret_name, string, _("Phaser Cannon"));
14 ATTRIB(PhaserTurret, m_weapon, Weapon, WEP_PHASER);
15 ENDCLASS(PhaserTurret)
16 REGISTER_TURRET(PHASER, NEW(PhaserTurret));