Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
turret.qh File Reference
Include dependency graph for turret.qh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Turret

Macros

#define ammo_flags   currentammo

Variables

int aim_flags
float anim_start_time
int damage_flags
int firecheck_flags
int shoot_flags
int target_select_flags
int target_validate_flags
const int TFL_AIM_LEAD = BIT(2)
 try to predict target movement
const int TFL_AIM_NO = BIT(0)
 no aiming
const int TFL_AIM_SHOTTIMECOMPENSATE = BIT(3)
 compensate for shot traveltime when leading
const int TFL_AIM_SIMPLE = BIT(5)
 aim at player's current location
const int TFL_AIM_SPLASH = BIT(1)
 aim for ground around the target's feet
const int TFL_AIM_ZPREDICT = BIT(4)
 predict target's z position at impact
const int TFL_AMMO_BULLETS = BIT(2)
 uses bullets
const int TFL_AMMO_ENERGY = BIT(1)
 uses power
const int TFL_AMMO_NONE = BIT(6)
 doesn't use ammo
const int TFL_AMMO_RECHARGE = BIT(4)
 regenerates ammo
const int TFL_AMMO_RECIEVE = BIT(5)
 can recieve ammo from support units
const int TFL_AMMO_ROCKETS = BIT(3)
 uses explosives
const int TFL_DMG_AIMSHAKE = BIT(6)
 damage throws off aim
const int TFL_DMG_DEATH_NORESPAWN = BIT(8)
 no re-spawning
const int TFL_DMG_HEADSHAKE = BIT(7)
 damage shakes head
const int TFL_DMG_NO = BIT(8)
 doesn't take damage
const int TFL_DMG_RETALIATE = BIT(3)
 target attackers
const int TFL_DMG_RETALIATE_TEAM = BIT(4)
 target attackers, even if on same team
const int TFL_DMG_TARGETLOSS = BIT(5)
 loses target when damaged
const int TFL_DMG_TEAM = BIT(2)
 can be damaged by teammates
const int TFL_DMG_YES = BIT(1)
 can be damaged
const int TFL_FIRECHECK_AFF = BIT(9)
 try to avoid any friendly fire
const int TFL_FIRECHECK_AIMDIST = BIT(5)
 consider distance impactpoint<->aimspot
const int TFL_FIRECHECK_AMMO_OTHER = BIT(11)
 target's ammo needs to be less than max
const int TFL_FIRECHECK_AMMO_OWN = BIT(10)
 own ammo needs to be larger than damage dealt
const int TFL_FIRECHECK_ANGLEDIST = BIT(7)
 consider angular diff head<->aimspot
const int TFL_FIRECHECK_DEAD = BIT(2)
 don't attack dead targets (zombies?)
const int TFL_FIRECHECK_DISTANCES = BIT(3)
 another range check
const int TFL_FIRECHECK_LOS = BIT(4)
 line of sight
const int TFL_FIRECHECK_NO = BIT(14)
 no prefire checks
const int TFL_FIRECHECK_REALDIST = BIT(6)
 consider enemy origin<->impactpoint
const int TFL_FIRECHECK_REFIRE = BIT(12)
 check single attack finished delays
const int TFL_FIRECHECK_TEAMCHECK = BIT(8)
 don't attack teammates
const int TFL_SHOOT_CLEARTARGET = BIT(4)
 lose target after attack (after volly is done if in volly mode)
const int TFL_SHOOT_CUSTOM = BIT(5)
 custom attacking
const int TFL_SHOOT_HITALLVALID = BIT(3)
 loop through all valid targets
const int TFL_SHOOT_NO = BIT(6)
 no attacking
const int TFL_SHOOT_VOLLY = BIT(1)
 fire in vollies
const int TFL_SHOOT_VOLLYALWAYS = BIT(2)
 always do a full volly, even if target is lost
const int TFL_TARGETSELECT_ANGLELIMITS = BIT(6)
 apply extra angular limits to target selection
const int TFL_TARGETSELECT_FOV = BIT(12)
 extra limits to attack range
const int TFL_TARGETSELECT_LOS = BIT(2)
 require line of sight to find targets
const int TFL_TARGETSELECT_MISSILES = BIT(4)
 target projectiles
const int TFL_TARGETSELECT_MISSILESONLY = BIT(13)
 only attack missiles
const int TFL_TARGETSELECT_NO = BIT(1)
 don't automatically find targets
const int TFL_TARGETSELECT_NOBUILTIN = BIT(9)
 only attack targets when triggered
const int TFL_TARGETSELECT_NOTURRETS = BIT(11)
 don't attack other turrets
const int TFL_TARGETSELECT_OWNTEAM = BIT(10)
 only attack teammates
const int TFL_TARGETSELECT_PLAYERS = BIT(3)
 target players
const int TFL_TARGETSELECT_RANGELIMITS = BIT(7)
 limit target selection range
const int TFL_TARGETSELECT_TEAMCHECK = BIT(8)
 don't attack teammates
const int TFL_TARGETSELECT_TRIGGERTARGET = BIT(5)
 respond to turret_trigger_target events
const int TFL_TARGETSELECT_VEHICLES = BIT(14)
 target manned vehicles
const int TFL_TRACK_NO = BIT(1)
 don't move head
const int TFL_TRACK_PITCH = BIT(2)
 pitch head
const int TFL_TRACK_ROTATE = BIT(3)
 rotate head
const int TNSF_ANG = BIT(4)
const int TNSF_ANIM = BIT(7)
const int TNSF_AVEL = BIT(5)
const int TNSF_FULL_UPDATE = 0xFFFFFF
const int TNSF_MOVE = BIT(6)
const int TNSF_SETUP = BIT(3)
const int TNSF_STATUS = BIT(2)
const int TNSF_UPDATE = BIT(1)
int track_flags
const int TSF_NO_AMMO_REGEN = BIT(2)
 disable builtin ammo regeneration
const int TSF_NO_PATHBREAK = BIT(3)
 don't break path to chase enemies, will still fire at them if possible
const int TSF_SUSPENDED = BIT(0)
const int TSF_TERRAINBASE = BIT(1)
 currently unused
const int TSL_NO_RESPAWN = BIT(4)
 don't re-spawn
const int TSL_ROAM = BIT(5)
 roam while idle
const int TUR_FLAG_AMMOSOURCE = BIT(12)
 can provide ammunition
const int TUR_FLAG_FASTPROJ = BIT(8)
 turret fires fast projectiles
const int TUR_FLAG_GUIDED = BIT(5)
 laser guided projectiles
const int TUR_FLAG_HITSCAN = BIT(3)
 hit scan
const int TUR_FLAG_ISTURRET = BIT(16)
 identifies this unit as a turret
const int TUR_FLAG_MEDPROJ = BIT(7)
 turret fires medium projectiles
const int TUR_FLAG_MISSILE = BIT(10)
 can damage missiles
const int TUR_FLAG_MOVE = BIT(14)
 can move
const int TUR_FLAG_MULTIGUN = BIT(4)
 multiple guns
const int TUR_FLAG_NONE = 0
 no abilities
const int TUR_FLAG_PLAYER = BIT(9)
 can damage players
const int TUR_FLAG_RECIEVETARGETS = BIT(13)
 can recieve targets from external sources
const int TUR_FLAG_ROAM = BIT(15)
 roams around if not attacking
const int TUR_FLAG_SLOWPROJ = BIT(6)
 turret fires slow projectiles
const int TUR_FLAG_SNIPER = BIT(1)
 sniping turret
const int TUR_FLAG_SPLASH = BIT(2)
 can deal splash damage
const int TUR_FLAG_SUPPORT = BIT(11)
 supports other units
entity tur_head
int turret_flags

Macro Definition Documentation

◆ ammo_flags

#define ammo_flags   currentammo

Definition at line 156 of file turret.qh.

Referenced by turret_initialize().

Variable Documentation

◆ aim_flags

int aim_flags

Definition at line 97 of file turret.qh.

Referenced by turret_aim_generic(), turret_initialize(), and turret_think().

◆ anim_start_time

float anim_start_time

Definition at line 191 of file turret.qh.

◆ damage_flags

int damage_flags

Definition at line 165 of file turret.qh.

Referenced by turret_damage(), turret_die(), and turret_initialize().

◆ firecheck_flags

int firecheck_flags

Definition at line 112 of file turret.qh.

Referenced by turret_firecheck(), and turret_initialize().

◆ shoot_flags

int shoot_flags

Definition at line 127 of file turret.qh.

Referenced by turret_fire(), turret_firecheck(), and turret_think().

◆ target_select_flags

int target_select_flags

Definition at line 79 of file turret.qh.

Referenced by turret_initialize(), and turret_select_target().

◆ target_validate_flags

◆ TFL_AIM_LEAD

const int TFL_AIM_LEAD = BIT(2)

try to predict target movement

Definition at line 100 of file turret.qh.

Referenced by turret_aim_generic(), and turret_initialize().

◆ TFL_AIM_NO

const int TFL_AIM_NO = BIT(0)

no aiming

Definition at line 98 of file turret.qh.

Referenced by turret_think().

◆ TFL_AIM_SHOTTIMECOMPENSATE

const int TFL_AIM_SHOTTIMECOMPENSATE = BIT(3)

compensate for shot traveltime when leading

Definition at line 101 of file turret.qh.

Referenced by turret_aim_generic(), and turret_initialize().

◆ TFL_AIM_SIMPLE

const int TFL_AIM_SIMPLE = BIT(5)

aim at player's current location

Definition at line 103 of file turret.qh.

Referenced by turret_aim_generic().

◆ TFL_AIM_SPLASH

const int TFL_AIM_SPLASH = BIT(1)

aim for ground around the target's feet

Definition at line 99 of file turret.qh.

Referenced by turret_aim_generic(), and turret_initialize().

◆ TFL_AIM_ZPREDICT

const int TFL_AIM_ZPREDICT = BIT(4)

predict target's z position at impact

Definition at line 102 of file turret.qh.

Referenced by turret_aim_generic().

◆ TFL_AMMO_BULLETS

const int TFL_AMMO_BULLETS = BIT(2)

uses bullets

Definition at line 159 of file turret.qh.

◆ TFL_AMMO_ENERGY

const int TFL_AMMO_ENERGY = BIT(1)

uses power

Definition at line 158 of file turret.qh.

Referenced by turret_fusionreactor_firecheck(), and turret_initialize().

◆ TFL_AMMO_NONE

const int TFL_AMMO_NONE = BIT(6)

doesn't use ammo

Definition at line 157 of file turret.qh.

◆ TFL_AMMO_RECHARGE

const int TFL_AMMO_RECHARGE = BIT(4)

regenerates ammo

Definition at line 161 of file turret.qh.

Referenced by turret_initialize().

◆ TFL_AMMO_RECIEVE

const int TFL_AMMO_RECIEVE = BIT(5)

can recieve ammo from support units

Definition at line 162 of file turret.qh.

◆ TFL_AMMO_ROCKETS

const int TFL_AMMO_ROCKETS = BIT(3)

uses explosives

Definition at line 160 of file turret.qh.

◆ TFL_DMG_AIMSHAKE

const int TFL_DMG_AIMSHAKE = BIT(6)

damage throws off aim

Definition at line 172 of file turret.qh.

Referenced by turret_initialize().

◆ TFL_DMG_DEATH_NORESPAWN

const int TFL_DMG_DEATH_NORESPAWN = BIT(8)

no re-spawning

Definition at line 174 of file turret.qh.

Referenced by turret_die(), and turret_initialize().

◆ TFL_DMG_HEADSHAKE

const int TFL_DMG_HEADSHAKE = BIT(7)

damage shakes head

Definition at line 173 of file turret.qh.

Referenced by turret_damage().

◆ TFL_DMG_NO

const int TFL_DMG_NO = BIT(8)

doesn't take damage

Definition at line 166 of file turret.qh.

◆ TFL_DMG_RETALIATE

const int TFL_DMG_RETALIATE = BIT(3)

target attackers

Definition at line 169 of file turret.qh.

Referenced by turret_initialize().

◆ TFL_DMG_RETALIATE_TEAM

const int TFL_DMG_RETALIATE_TEAM = BIT(4)

target attackers, even if on same team

Definition at line 170 of file turret.qh.

◆ TFL_DMG_TARGETLOSS

const int TFL_DMG_TARGETLOSS = BIT(5)

loses target when damaged

Definition at line 171 of file turret.qh.

◆ TFL_DMG_TEAM

const int TFL_DMG_TEAM = BIT(2)

can be damaged by teammates

Definition at line 168 of file turret.qh.

◆ TFL_DMG_YES

const int TFL_DMG_YES = BIT(1)

can be damaged

Definition at line 167 of file turret.qh.

Referenced by turret_initialize().

◆ TFL_FIRECHECK_AFF

const int TFL_FIRECHECK_AFF = BIT(9)

try to avoid any friendly fire

Definition at line 120 of file turret.qh.

Referenced by turret_firecheck().

◆ TFL_FIRECHECK_AIMDIST

const int TFL_FIRECHECK_AIMDIST = BIT(5)

consider distance impactpoint<->aimspot

Definition at line 116 of file turret.qh.

Referenced by turret_firecheck(), and turret_initialize().

◆ TFL_FIRECHECK_AMMO_OTHER

const int TFL_FIRECHECK_AMMO_OTHER = BIT(11)

target's ammo needs to be less than max

Definition at line 122 of file turret.qh.

Referenced by turret_firecheck().

◆ TFL_FIRECHECK_AMMO_OWN

const int TFL_FIRECHECK_AMMO_OWN = BIT(10)

own ammo needs to be larger than damage dealt

Definition at line 121 of file turret.qh.

Referenced by turret_firecheck(), and turret_initialize().

◆ TFL_FIRECHECK_ANGLEDIST

const int TFL_FIRECHECK_ANGLEDIST = BIT(7)

consider angular diff head<->aimspot

Definition at line 118 of file turret.qh.

◆ TFL_FIRECHECK_DEAD

const int TFL_FIRECHECK_DEAD = BIT(2)

don't attack dead targets (zombies?)

Definition at line 113 of file turret.qh.

Referenced by turret_firecheck(), and turret_initialize().

◆ TFL_FIRECHECK_DISTANCES

const int TFL_FIRECHECK_DISTANCES = BIT(3)

another range check

Definition at line 114 of file turret.qh.

Referenced by turret_firecheck(), and turret_initialize().

◆ TFL_FIRECHECK_LOS

const int TFL_FIRECHECK_LOS = BIT(4)

line of sight

Definition at line 115 of file turret.qh.

Referenced by turret_initialize().

◆ TFL_FIRECHECK_NO

const int TFL_FIRECHECK_NO = BIT(14)

no prefire checks

Definition at line 124 of file turret.qh.

Referenced by turret_firecheck().

◆ TFL_FIRECHECK_REALDIST

const int TFL_FIRECHECK_REALDIST = BIT(6)

consider enemy origin<->impactpoint

Definition at line 117 of file turret.qh.

◆ TFL_FIRECHECK_REFIRE

const int TFL_FIRECHECK_REFIRE = BIT(12)

check single attack finished delays

Definition at line 123 of file turret.qh.

Referenced by turret_firecheck(), and turret_initialize().

◆ TFL_FIRECHECK_TEAMCHECK

const int TFL_FIRECHECK_TEAMCHECK = BIT(8)

don't attack teammates

Definition at line 119 of file turret.qh.

Referenced by turret_initialize().

◆ TFL_SHOOT_CLEARTARGET

const int TFL_SHOOT_CLEARTARGET = BIT(4)

lose target after attack (after volly is done if in volly mode)

Definition at line 132 of file turret.qh.

Referenced by turret_fire().

◆ TFL_SHOOT_CUSTOM

const int TFL_SHOOT_CUSTOM = BIT(5)

custom attacking

Definition at line 133 of file turret.qh.

Referenced by turret_think().

◆ TFL_SHOOT_HITALLVALID

const int TFL_SHOOT_HITALLVALID = BIT(3)

loop through all valid targets

Definition at line 131 of file turret.qh.

Referenced by turret_think().

◆ TFL_SHOOT_NO

const int TFL_SHOOT_NO = BIT(6)

no attacking

Definition at line 128 of file turret.qh.

◆ TFL_SHOOT_VOLLY

const int TFL_SHOOT_VOLLY = BIT(1)

fire in vollies

Definition at line 129 of file turret.qh.

◆ TFL_SHOOT_VOLLYALWAYS

const int TFL_SHOOT_VOLLYALWAYS = BIT(2)

always do a full volly, even if target is lost

Definition at line 130 of file turret.qh.

Referenced by turret_firecheck(), and turret_think().

◆ TFL_TARGETSELECT_ANGLELIMITS

const int TFL_TARGETSELECT_ANGLELIMITS = BIT(6)

apply extra angular limits to target selection

Definition at line 86 of file turret.qh.

Referenced by turret_initialize(), and turret_validate_target().

◆ TFL_TARGETSELECT_FOV

const int TFL_TARGETSELECT_FOV = BIT(12)

extra limits to attack range

Definition at line 92 of file turret.qh.

◆ TFL_TARGETSELECT_LOS

const int TFL_TARGETSELECT_LOS = BIT(2)

require line of sight to find targets

Definition at line 82 of file turret.qh.

Referenced by turret_initialize(), and turret_validate_target().

◆ TFL_TARGETSELECT_MISSILES

const int TFL_TARGETSELECT_MISSILES = BIT(4)

target projectiles

Definition at line 84 of file turret.qh.

Referenced by turret_initialize(), and turret_validate_target().

◆ TFL_TARGETSELECT_MISSILESONLY

const int TFL_TARGETSELECT_MISSILESONLY = BIT(13)

only attack missiles

Definition at line 93 of file turret.qh.

Referenced by turret_validate_target().

◆ TFL_TARGETSELECT_NO

const int TFL_TARGETSELECT_NO = BIT(1)

don't automatically find targets

Definition at line 81 of file turret.qh.

Referenced by turret_validate_target().

◆ TFL_TARGETSELECT_NOBUILTIN

const int TFL_TARGETSELECT_NOBUILTIN = BIT(9)

only attack targets when triggered

Definition at line 89 of file turret.qh.

◆ TFL_TARGETSELECT_NOTURRETS

const int TFL_TARGETSELECT_NOTURRETS = BIT(11)

don't attack other turrets

Definition at line 91 of file turret.qh.

Referenced by turret_validate_target().

◆ TFL_TARGETSELECT_OWNTEAM

const int TFL_TARGETSELECT_OWNTEAM = BIT(10)

only attack teammates

Definition at line 90 of file turret.qh.

Referenced by turret_validate_target().

◆ TFL_TARGETSELECT_PLAYERS

const int TFL_TARGETSELECT_PLAYERS = BIT(3)

target players

Definition at line 83 of file turret.qh.

Referenced by turret_initialize(), and turret_validate_target().

◆ TFL_TARGETSELECT_RANGELIMITS

const int TFL_TARGETSELECT_RANGELIMITS = BIT(7)

limit target selection range

Definition at line 87 of file turret.qh.

Referenced by turret_initialize(), and turret_validate_target().

◆ TFL_TARGETSELECT_TEAMCHECK

const int TFL_TARGETSELECT_TEAMCHECK = BIT(8)

don't attack teammates

Definition at line 88 of file turret.qh.

Referenced by turret_initialize(), and turret_validate_target().

◆ TFL_TARGETSELECT_TRIGGERTARGET

const int TFL_TARGETSELECT_TRIGGERTARGET = BIT(5)

respond to turret_trigger_target events

Definition at line 85 of file turret.qh.

◆ TFL_TARGETSELECT_VEHICLES

const int TFL_TARGETSELECT_VEHICLES = BIT(14)

target manned vehicles

Definition at line 94 of file turret.qh.

Referenced by turret_validate_target().

◆ TFL_TRACK_NO

const int TFL_TRACK_NO = BIT(1)

don't move head

Definition at line 107 of file turret.qh.

Referenced by turret_think(), and turret_track().

◆ TFL_TRACK_PITCH

const int TFL_TRACK_PITCH = BIT(2)

pitch head

Definition at line 108 of file turret.qh.

Referenced by turret_initialize(), and turret_track().

◆ TFL_TRACK_ROTATE

const int TFL_TRACK_ROTATE = BIT(3)

rotate head

Definition at line 109 of file turret.qh.

Referenced by turret_initialize(), and turret_track().

◆ TNSF_ANG

const int TNSF_ANG = BIT(4)

Definition at line 188 of file turret.qh.

Referenced by NET_HANDLE(), turret_damage(), turret_send(), and turret_track().

◆ TNSF_ANIM

const int TNSF_ANIM = BIT(7)

Definition at line 192 of file turret.qh.

Referenced by ewheel_move_idle(), NET_HANDLE(), turret_send(), and turrets_setframe().

◆ TNSF_AVEL

const int TNSF_AVEL = BIT(5)

Definition at line 189 of file turret.qh.

Referenced by NET_HANDLE(), turret_send(), and turret_track().

◆ TNSF_FULL_UPDATE

const int TNSF_FULL_UPDATE = 0xFFFFFF

Definition at line 194 of file turret.qh.

Referenced by turret_respawn().

◆ TNSF_MOVE

const int TNSF_MOVE = BIT(6)

Definition at line 190 of file turret.qh.

Referenced by NET_HANDLE(), and turret_send().

◆ TNSF_SETUP

const int TNSF_SETUP = BIT(3)

Definition at line 187 of file turret.qh.

Referenced by NET_HANDLE(), and turret_send().

◆ TNSF_STATUS

const int TNSF_STATUS = BIT(2)

Definition at line 186 of file turret.qh.

Referenced by NET_HANDLE(), turret_damage(), turret_die(), turret_heal(), and turret_send().

◆ TNSF_UPDATE

const int TNSF_UPDATE = BIT(1)

Definition at line 185 of file turret.qh.

◆ track_flags

int track_flags

Definition at line 106 of file turret.qh.

Referenced by turret_initialize(), turret_think(), and turret_track().

◆ TSF_NO_AMMO_REGEN

const int TSF_NO_AMMO_REGEN = BIT(2)

disable builtin ammo regeneration

Definition at line 179 of file turret.qh.

Referenced by turret_think().

◆ TSF_NO_PATHBREAK

const int TSF_NO_PATHBREAK = BIT(3)

don't break path to chase enemies, will still fire at them if possible

Definition at line 180 of file turret.qh.

◆ TSF_SUSPENDED

const int TSF_SUSPENDED = BIT(0)

Definition at line 177 of file turret.qh.

Referenced by turret_initialize().

◆ TSF_TERRAINBASE

const int TSF_TERRAINBASE = BIT(1)

currently unused

Definition at line 178 of file turret.qh.

◆ TSL_NO_RESPAWN

const int TSL_NO_RESPAWN = BIT(4)

don't re-spawn

Definition at line 181 of file turret.qh.

Referenced by turret_initialize().

◆ TSL_ROAM

const int TSL_ROAM = BIT(5)

roam while idle

Definition at line 182 of file turret.qh.

◆ TUR_FLAG_AMMOSOURCE

const int TUR_FLAG_AMMOSOURCE = BIT(12)

can provide ammunition

Definition at line 149 of file turret.qh.

◆ TUR_FLAG_FASTPROJ

const int TUR_FLAG_FASTPROJ = BIT(8)

turret fires fast projectiles

Definition at line 145 of file turret.qh.

◆ TUR_FLAG_GUIDED

const int TUR_FLAG_GUIDED = BIT(5)

laser guided projectiles

Definition at line 142 of file turret.qh.

◆ TUR_FLAG_HITSCAN

const int TUR_FLAG_HITSCAN = BIT(3)

hit scan

Definition at line 140 of file turret.qh.

◆ TUR_FLAG_ISTURRET

const int TUR_FLAG_ISTURRET = BIT(16)

identifies this unit as a turret

Definition at line 153 of file turret.qh.

Referenced by turret_initialize().

◆ TUR_FLAG_MEDPROJ

const int TUR_FLAG_MEDPROJ = BIT(7)

turret fires medium projectiles

Definition at line 144 of file turret.qh.

Referenced by turret_initialize().

◆ TUR_FLAG_MISSILE

const int TUR_FLAG_MISSILE = BIT(10)

can damage missiles

Definition at line 147 of file turret.qh.

Referenced by turret_initialize().

◆ TUR_FLAG_MOVE

const int TUR_FLAG_MOVE = BIT(14)

can move

Definition at line 151 of file turret.qh.

Referenced by turret_damage(), and turret_draw2d().

◆ TUR_FLAG_MULTIGUN

const int TUR_FLAG_MULTIGUN = BIT(4)

multiple guns

Definition at line 141 of file turret.qh.

◆ TUR_FLAG_NONE

const int TUR_FLAG_NONE = 0

no abilities

Definition at line 137 of file turret.qh.

◆ TUR_FLAG_PLAYER

const int TUR_FLAG_PLAYER = BIT(9)

can damage players

Definition at line 146 of file turret.qh.

Referenced by turret_initialize().

◆ TUR_FLAG_RECIEVETARGETS

const int TUR_FLAG_RECIEVETARGETS = BIT(13)

can recieve targets from external sources

Definition at line 150 of file turret.qh.

◆ TUR_FLAG_ROAM

const int TUR_FLAG_ROAM = BIT(15)

roams around if not attacking

Definition at line 152 of file turret.qh.

◆ TUR_FLAG_SLOWPROJ

const int TUR_FLAG_SLOWPROJ = BIT(6)

turret fires slow projectiles

Definition at line 143 of file turret.qh.

◆ TUR_FLAG_SNIPER

const int TUR_FLAG_SNIPER = BIT(1)

sniping turret

Definition at line 138 of file turret.qh.

◆ TUR_FLAG_SPLASH

const int TUR_FLAG_SPLASH = BIT(2)

can deal splash damage

Definition at line 139 of file turret.qh.

Referenced by turret_initialize().

◆ TUR_FLAG_SUPPORT

const int TUR_FLAG_SUPPORT = BIT(11)

supports other units

Definition at line 148 of file turret.qh.

Referenced by turret_initialize().

◆ tur_head

entity tur_head

Definition at line 76 of file turret.qh.

◆ turret_flags

int turret_flags

Definition at line 136 of file turret.qh.

Referenced by turret_damage(), and turret_initialize().