Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
flac.qc
Go to the documentation of this file.
1#include "flac.qh"
2
3#ifdef SVQC
4
5spawnfunc(turret_flac)
6{
7 if (!turret_initialize(this, TUR_FLAC))
8 delete(this);
9}
10
11METHOD(Flac, tr_setup, void(Flac this, entity it))
12{
13 it.ammo_flags = TFL_AMMO_ROCKETS | TFL_AMMO_RECHARGE;
15 it.damage_flags |= TFL_DMG_HEADSHAKE;
17}
18
19#endif // SVQC
20#ifdef MENUQC
24
25METHOD(Flac, describe, string(Flac this))
26{
27 TC(Flac, this);
29 PAR(_("The %s is a turret similar to flak cannons, instead firing anti-projectile flak shells to take down projectiles fired by its targets."), COLORED_NAME(this));
30 PAR(_("The shells it shoots target projectiles such as the %s secondary fire grenade, %s secondary fire balls, %s rockets, and other missiles."), COLORED_NAME(WEP_MORTAR), COLORED_NAME(WEP_ELECTRO), COLORED_NAME(WEP_DEVASTATOR));
31 return PAGE_TEXT;
32}
33
34#endif // MENUQC
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
Definition flac.qh:5
#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_DMG_HEADSHAKE
damage shakes head
Definition turret.qh:173
const int TFL_AIM_LEAD
try to predict target movement
Definition turret.qh:100
const int TFL_AMMO_ROCKETS
uses explosives
Definition turret.qh:160
const int TFL_AIM_SHOTTIMECOMPENSATE
compensate for shot traveltime when leading
Definition turret.qh:101
const int TFL_AMMO_RECHARGE
regenerates ammo
Definition turret.qh:161
const int TFL_TARGETSELECT_NOTURRETS
don't attack other turrets
Definition turret.qh:91
const int TFL_TARGETSELECT_MISSILESONLY
only attack missiles
Definition turret.qh:93