3 #include "tesla_weapon.qh"
5 CLASS(TeslaCoil, Turret)
6 /* spawnflags */ ATTRIB(TeslaCoil, spawnflags, int, TUR_FLAG_HITSCAN | TUR_FLAG_PLAYER | TUR_FLAG_MISSILE);
7 /* mins */ ATTRIB(TeslaCoil, m_mins, vector, '-60 -60 0');
8 /* maxs */ ATTRIB(TeslaCoil, m_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);
16 #define X(BEGIN, P, END, class, prefix) \
18 P(class, prefix, aim_firetolerance_dist, float) \
19 P(class, prefix, aim_maxpitch, float) \
20 P(class, prefix, aim_maxrot, float) \
21 P(class, prefix, aim_speed, float) \
22 P(class, prefix, ammo, float) \
23 P(class, prefix, ammo_max, float) \
24 P(class, prefix, ammo_recharge, float) \
25 P(class, prefix, health, float) \
26 P(class, prefix, respawntime, float) \
27 P(class, prefix, shot_dmg, float) \
28 P(class, prefix, shot_force, float) \
29 P(class, prefix, shot_radius, float) \
30 P(class, prefix, shot_refire, float) \
31 P(class, prefix, shot_speed, float) \
32 P(class, prefix, shot_spread, float) \
33 P(class, prefix, shot_volly, float) \
34 P(class, prefix, shot_volly_refire, float) \
35 P(class, prefix, target_range, float) \
36 P(class, prefix, target_range_min, float) \
37 P(class, prefix, target_range_optimal, float) \
38 P(class, prefix, target_select_anglebias, float) \
39 P(class, prefix, target_select_missilebias, float) \
40 P(class, prefix, target_select_playerbias, float) \
41 P(class, prefix, target_select_rangebias, float) \
42 P(class, prefix, target_select_samebias, float) \
43 P(class, prefix, track_accel_pitch, float) \
44 P(class, prefix, track_accel_rot, float) \
45 P(class, prefix, track_blendrate, float) \
46 P(class, prefix, track_type, float) \
48 TR_PROPS(X, TeslaCoil, tesla)
52 REGISTER_TURRET(TESLA, NEW(TeslaCoil));