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)
6{
7 if (!turret_initialize(this, TUR_HELLION))
8 delete(this);
9}
10
11METHOD(Hellion, tr_think, void(Hellion thistur, entity it))
12{
13 if (it.tur_head.frame != 0)
14 ++it.tur_head.frame;
15 if (it.tur_head.frame >= 7)
16 it.tur_head.frame = 0;
17}
18METHOD(Hellion, tr_setup, void(Hellion this, entity it))
19{
20 it.aim_flags = TFL_AIM_SIMPLE;
23 it.ammo_flags = TFL_AMMO_ROCKETS | TFL_AMMO_RECHARGE;
24}
25
26#endif // SVQC
27#ifdef MENUQC
29
30METHOD(Hellion, describe, string(Hellion this))
31{
32 TC(Hellion, this);
34 PAR(_("The %s fires homing missiles similar to those of the %s towards its targets."), COLORED_NAME(this), COLORED_NAME(WEP_DEVASTATOR));
35 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));
36 return PAGE_TEXT;
37}
38
39#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:642
#define PAR(...)
Adds an individually translatable paragraph to PAGE_TEXT without having to deal with strcat and sprin...
Definition string.qh:648
#define PAGE_TEXT_INIT()
Definition string.qh:641
bool turret_initialize(entity this, Turret tur)
const int TFL_FIRECHECK_DISTANCES
another range check
Definition turret.qh:114
const int TFL_TARGETSELECT_TEAMCHECK
don't attack teammates
Definition turret.qh:88
const int TFL_FIRECHECK_AMMO_OWN
own ammo needs to be larger than damage dealt
Definition turret.qh:121
const int TFL_FIRECHECK_DEAD
don't attack dead targets (zombies?)
Definition turret.qh:113
const int TFL_TARGETSELECT_PLAYERS
target players
Definition turret.qh:83
const int TFL_TARGETSELECT_RANGELIMITS
limit target selection range
Definition turret.qh:87
const int TFL_AMMO_ROCKETS
uses explosives
Definition turret.qh:160
const int TFL_FIRECHECK_REFIRE
check single attack finished delays
Definition turret.qh:123
const int TFL_TARGETSELECT_LOS
require line of sight to find targets
Definition turret.qh:82
const int TFL_AMMO_RECHARGE
regenerates ammo
Definition turret.qh:161
const int TFL_FIRECHECK_TEAMCHECK
don't attack teammates
Definition turret.qh:119
const int TFL_AIM_SIMPLE
aim at player's current location
Definition turret.qh:103
const int TFL_FIRECHECK_AFF
try to avoid any friendly fire
Definition turret.qh:120