Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
machinegun.qc
Go to the documentation of this file.
1#include "machinegun.qh"
2
3#ifdef SVQC
4
5spawnfunc(turret_machinegun) { if (!turret_initialize(this, TUR_MACHINEGUN)) delete(this); }
6
7METHOD(MachineGunTurret, tr_setup, void(MachineGunTurret this, entity it))
8{
9 it.damage_flags |= TFL_DMG_HEADSHAKE;
13 it.turret_flags |= TUR_FLAG_HITSCAN;
14}
15
16#endif // SVQC
17#ifdef MENUQC
19
20METHOD(MachineGunTurret, describe, string(MachineGunTurret this))
21{
22 TC(MachineGunTurret, this);
24 PAR(_("As the name suggests, the %s fires bullets in a burst at its targets, similar to the %s."), COLORED_NAME(this), COLORED_NAME(WEP_MACHINEGUN));
25 return PAGE_TEXT;
26}
27
28#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_DMG_HEADSHAKE
Definition turret.qh:172
const int TFL_TARGETSELECT_TEAMCHECK
Definition turret.qh:87
const int TUR_FLAG_HITSCAN
Definition turret.qh:139
const int TFL_AIM_LEAD
Definition turret.qh:99
const int TFL_TARGETSELECT_PLAYERS
Definition turret.qh:82
const int TFL_TARGETSELECT_RANGELIMITS
Definition turret.qh:86
const int TFL_AMMO_BULLETS
Definition turret.qh:158
const int TFL_AIM_SHOTTIMECOMPENSATE
Definition turret.qh:100
const int TFL_AMMO_RECHARGE
Definition turret.qh:160
const int TFL_AMMO_RECIEVE
Definition turret.qh:161