]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/turrets/turret/tesla.qh
Hunter-Killer: Only loop through entities that can be damaged by contents (not perfec...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / turrets / turret / tesla.qh
1 #pragma once
2
3 #include "tesla_weapon.qh"
4
5 CLASS(TeslaCoil, Turret)
6 /* spawnflags */ ATTRIB(TeslaCoil, spawnflags, int, TUR_FLAG_HITSCAN | TUR_FLAG_PLAYER | TUR_FLAG_MISSILE);
7 /* mins       */ ATTRIB(TeslaCoil, mins, vector, '-60 -60 0');
8 /* maxs       */ ATTRIB(TeslaCoil, maxs, vector, '60 60 128');
9 /* modelname  */ ATTRIB(TeslaCoil, mdl, string, "tesla_base.md3");
10 /* model      */ ATTRIB_STRZONE(TeslaCoil, model, string, strcat("models/turrets/", this.mdl));
11 /* head_model */ ATTRIB_STRZONE(TeslaCoil, head_model, string, strcat("models/turrets/", "tesla_head.md3"));
12 /* netname    */ ATTRIB(TeslaCoil, netname, string, "tesla");
13 /* fullname   */ ATTRIB(TeslaCoil, turret_name, string, _("Tesla Coil"));
14     ATTRIB(TeslaCoil, m_weapon, Weapon, WEP_TESLA);
15 ENDCLASS(TeslaCoil)
16 REGISTER_TURRET(TESLA, NEW(TeslaCoil));