Xonotic
machinegun.qc
Go to the documentation of this file.
1 #include "machinegun.qh"
2 
3 #ifdef SVQC
4 
5 spawnfunc(turret_machinegun) { if (!turret_initialize(this, TUR_MACHINEGUN)) delete(this); }
6 
7 METHOD(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
const int TFL_DMG_HEADSHAKE
Definition: turret.qh:155
entity() spawn
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_AMMO_BULLETS
Definition: turret.qh:141
const int TFL_AIM_LEAD
Definition: turret.qh:82
const int TFL_AMMO_RECIEVE
Definition: turret.qh:144
const int TFL_TARGETSELECT_TEAMCHECK
Definition: turret.qh:70
const int TFL_AIM_SHOTTIMECOMPENSATE
Definition: turret.qh:83
const int TUR_FLAG_HITSCAN
Definition: turret.qh:122
const int TFL_TARGETSELECT_RANGELIMITS
Definition: turret.qh:69