#include "hellion.qh" #ifdef SVQC spawnfunc(turret_hellion) { if (!turret_initialize(this, TUR_HELLION)) delete(this); } METHOD(Hellion, tr_think, void(Hellion thistur, entity it)) { if (it.tur_head.frame != 0) ++it.tur_head.frame; if (it.tur_head.frame >= 7) it.tur_head.frame = 0; } METHOD(Hellion, tr_setup, void(Hellion this, entity it)) { it.aim_flags = TFL_AIM_SIMPLE; it.target_select_flags = TFL_TARGETSELECT_LOS | TFL_TARGETSELECT_PLAYERS | TFL_TARGETSELECT_RANGELIMITS | TFL_TARGETSELECT_TEAMCHECK; it.firecheck_flags = TFL_FIRECHECK_DEAD | TFL_FIRECHECK_DISTANCES | TFL_FIRECHECK_TEAMCHECK | TFL_FIRECHECK_REFIRE | TFL_FIRECHECK_AFF | TFL_FIRECHECK_AMMO_OWN; it.ammo_flags = TFL_AMMO_ROCKETS | TFL_AMMO_RECHARGE; } #endif // SVQC #ifdef MENUQC #include METHOD(Hellion, describe, string(Hellion this)) { TC(Hellion, this); PAGE_TEXT_INIT(); PAR(_("The %s fires homing missiles similar to those of the %s towards its targets."), COLORED_NAME(this), COLORED_NAME(WEP_DEVASTATOR)); PAR(_("Although the missiles usually deal less damage than a %s rocket, the %s has two cannons so it can dish out quite the punch."), COLORED_NAME(WEP_DEVASTATOR), COLORED_NAME(this)); return PAGE_TEXT; } #endif // MENUQC