#pragma once //#define TURRET_DEBUG_HK #include "hk_weapon.qh" CLASS(HunterKiller, Turret) /* spawnflags */ ATTRIB(HunterKiller, spawnflags, int, TUR_FLAG_SPLASH | TUR_FLAG_MEDPROJ | TUR_FLAG_PLAYER | TUR_FLAG_RECIEVETARGETS); /* mins */ ATTRIB(HunterKiller, m_mins, vector, '-32 -32 0'); /* maxs */ ATTRIB(HunterKiller, m_maxs, vector, '32 32 64'); /* modelname */ ATTRIB(HunterKiller, mdl, string, "base.md3"); /* model */ ATTRIB_STRZONE(HunterKiller, model, string, strcat("models/turrets/", this.mdl)); /* head_model */ ATTRIB_STRZONE(HunterKiller, head_model, string, strcat("models/turrets/", "hk.md3")); /* netname */ ATTRIB(HunterKiller, netname, string, "hk"); /* fullname */ ATTRIB(HunterKiller, turret_name, string, _("Hunter-Killer Turret")); ATTRIB(HunterKiller, m_weapon, Weapon, WEP_HK); #define X(BEGIN, P, END, class, prefix) \ BEGIN(class) \ P(class, prefix, aim_firetolerance_dist, float) \ P(class, prefix, aim_maxpitch, float) \ P(class, prefix, aim_maxrot, float) \ P(class, prefix, aim_speed, float) \ P(class, prefix, ammo, float) \ P(class, prefix, ammo_max, float) \ P(class, prefix, ammo_recharge, float) \ P(class, prefix, health, float) \ P(class, prefix, respawntime, float) \ P(class, prefix, shot_dmg, float) \ P(class, prefix, shot_force, float) \ P(class, prefix, shot_radius, float) \ P(class, prefix, shot_refire, float) \ P(class, prefix, shot_speed, float) \ P(class, prefix, shot_speed_accel, float) \ P(class, prefix, shot_speed_accel2, float) \ P(class, prefix, shot_speed_decel, float) \ P(class, prefix, shot_speed_max, float) \ P(class, prefix, shot_speed_turnrate, float) \ P(class, prefix, shot_spread, float) \ P(class, prefix, shot_volly, float) \ P(class, prefix, shot_volly_refire, float) \ P(class, prefix, target_range, float) \ P(class, prefix, target_range_min, float) \ P(class, prefix, target_range_optimal, float) \ P(class, prefix, target_select_anglebias, float) \ P(class, prefix, target_select_missilebias, float) \ P(class, prefix, target_select_playerbias, float) \ P(class, prefix, target_select_rangebias, float) \ P(class, prefix, target_select_samebias, float) \ P(class, prefix, track_accel_pitch, float) \ P(class, prefix, track_accel_rot, float) \ P(class, prefix, track_blendrate, float) \ P(class, prefix, track_type, float) \ END() TR_PROPS(X, HunterKiller, hk) #undef X ENDCLASS(HunterKiller) REGISTER_TURRET(HK, NEW(HunterKiller));