Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
hellion.qc
Go to the documentation of this file.
1#include "hellion.qh"
2
3#ifdef SVQC
4
5spawnfunc(turret_hellion) { if (!turret_initialize(this, TUR_HELLION)) delete(this); }
6
7METHOD(Hellion, tr_think, void(Hellion thistur, entity it))
8{
9 if (it.tur_head.frame != 0)
10 it.tur_head.frame += 1;
11
12 if (it.tur_head.frame >= 7)
13 it.tur_head.frame = 0;
14}
15METHOD(Hellion, tr_setup, void(Hellion this, entity it))
16{
17 it.aim_flags = TFL_AIM_SIMPLE;
20 it.ammo_flags = TFL_AMMO_ROCKETS | TFL_AMMO_RECHARGE;
21}
22
23#endif // SVQC
24#ifdef MENUQC
26
27METHOD(Hellion, describe, string(Hellion this))
28{
29 TC(Hellion, this);
31 PAR(_("The %s fires homing missiles similar to those of the %s towards its targets."), COLORED_NAME(this), COLORED_NAME(WEP_DEVASTATOR));
32 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));
33 return PAGE_TEXT;
34}
35
36#endif // MENUQC
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
#define COLORED_NAME(this)
Definition color.qh:195
#define TC(T, sym)
Definition _all.inc:82
#define METHOD(cname, name, prototype)
Definition oo.qh:269
#define spawnfunc(id)
Definition spawnfunc.qh:96
#define PAGE_TEXT
Definition string.qh:643
#define PAR(...)
Adds an individually translatable paragraph to PAGE_TEXT without having to deal with strcat and sprin...
Definition string.qh:649
#define PAGE_TEXT_INIT()
Definition string.qh:642
bool turret_initialize(entity this, Turret tur)
const int TFL_FIRECHECK_DISTANCES
Definition turret.qh:113
const int TFL_TARGETSELECT_TEAMCHECK
Definition turret.qh:87
const int TFL_FIRECHECK_AMMO_OWN
Definition turret.qh:120
const int TFL_FIRECHECK_DEAD
Definition turret.qh:112
const int TFL_TARGETSELECT_PLAYERS
Definition turret.qh:82
const int TFL_TARGETSELECT_RANGELIMITS
Definition turret.qh:86
const int TFL_AMMO_ROCKETS
Definition turret.qh:159
const int TFL_FIRECHECK_REFIRE
Definition turret.qh:122
const int TFL_TARGETSELECT_LOS
Definition turret.qh:81
const int TFL_AMMO_RECHARGE
Definition turret.qh:160
const int TFL_FIRECHECK_TEAMCHECK
Definition turret.qh:118
const int TFL_AIM_SIMPLE
Definition turret.qh:102
const int TFL_FIRECHECK_AFF
Definition turret.qh:119