Xonotic
hellion.qc
Go to the documentation of this file.
1 #include "hellion.qh"
2 
3 #ifdef SVQC
4 
5 spawnfunc(turret_hellion) { if (!turret_initialize(this, TUR_HELLION)) delete(this); }
6 
7 METHOD(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 }
15 METHOD(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
const int TFL_FIRECHECK_AFF
Definition: turret.qh:102
const int TFL_AMMO_ROCKETS
Definition: turret.qh:142
entity() spawn
const int TFL_FIRECHECK_AMMO_OWN
Definition: turret.qh:103
bool turret_initialize(entity this, Turret tur)
spawnfunc(info_player_attacker)
Definition: sv_assault.qc:283
#define METHOD(cname, name, prototype)
Definition: oo.qh:257
const int TFL_AMMO_RECHARGE
Definition: turret.qh:143
const int TFL_TARGETSELECT_PLAYERS
Definition: turret.qh:65
const int TFL_TARGETSELECT_LOS
Definition: turret.qh:64
const int TFL_FIRECHECK_REFIRE
Definition: turret.qh:105
const int TFL_FIRECHECK_DISTANCES
Definition: turret.qh:96
const int TFL_TARGETSELECT_TEAMCHECK
Definition: turret.qh:70
const int TFL_FIRECHECK_DEAD
Definition: turret.qh:95
const int TFL_FIRECHECK_TEAMCHECK
Definition: turret.qh:101
const int TFL_AIM_SIMPLE
Definition: turret.qh:85
const int TFL_TARGETSELECT_RANGELIMITS
Definition: turret.qh:69