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) { if (!turret_initialize(this, TUR_FLAC)) delete(this); }
6
7METHOD(Flac, tr_setup, void(Flac this, entity it))
8{
9 it.ammo_flags = TFL_AMMO_ROCKETS | TFL_AMMO_RECHARGE;
11 it.damage_flags |= TFL_DMG_HEADSHAKE;
13}
14
15#endif // SVQC
16#ifdef MENUQC
20
21METHOD(Flac, describe, string(Flac this))
22{
23 TC(Flac, this);
25 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));
26 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));
27 return PAGE_TEXT;
28}
29
30#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: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_DMG_HEADSHAKE
Definition turret.qh:172
const int TFL_AIM_LEAD
Definition turret.qh:99
const int TFL_AMMO_ROCKETS
Definition turret.qh:159
const int TFL_AIM_SHOTTIMECOMPENSATE
Definition turret.qh:100
const int TFL_AMMO_RECHARGE
Definition turret.qh:160
const int TFL_TARGETSELECT_NOTURRETS
Definition turret.qh:90
const int TFL_TARGETSELECT_MISSILESONLY
Definition turret.qh:92