Xonotic
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 = 4
 
const int TFL_AIM_NO = 1
 
const int TFL_AIM_SHOTTIMECOMPENSATE = 8
 
const int TFL_AIM_SIMPLE = 32
 
const int TFL_AIM_SPLASH = 2
 
const int TFL_AIM_ZPREDICT = 16
 
const int TFL_AMMO_BULLETS = 4
 
const int TFL_AMMO_ENERGY = 2
 
const int TFL_AMMO_NONE = 64
 
const int TFL_AMMO_RECHARGE = 16
 
const int TFL_AMMO_RECIEVE = 32
 
const int TFL_AMMO_ROCKETS = 8
 
const int TFL_DMG_AIMSHAKE = 64
 
const int TFL_DMG_DEATH_NORESPAWN = 256
 
const int TFL_DMG_HEADSHAKE = 128
 
const int TFL_DMG_NO = 256
 
const int TFL_DMG_RETALIATE = 8
 
const int TFL_DMG_RETALIATE_TEAM = 16
 
const int TFL_DMG_TARGETLOSS = 32
 
const int TFL_DMG_TEAM = 4
 
const int TFL_DMG_YES = 2
 
const int TFL_FIRECHECK_AFF = 512
 
const int TFL_FIRECHECK_AIMDIST = 32
 
const int TFL_FIRECHECK_AMMO_OTHER = 2048
 
const int TFL_FIRECHECK_AMMO_OWN = 1024
 
const int TFL_FIRECHECK_ANGLEDIST = 128
 
const int TFL_FIRECHECK_DEAD = 4
 
const int TFL_FIRECHECK_DISTANCES = 8
 
const int TFL_FIRECHECK_LOS = 16
 
const int TFL_FIRECHECK_NO = 16384
 
const int TFL_FIRECHECK_REALDIST = 64
 
const int TFL_FIRECHECK_REFIRE = 4096
 
const int TFL_FIRECHECK_TEAMCHECK = 256
 
const int TFL_SHOOT_CLEARTARGET = 16
 
const int TFL_SHOOT_CUSTOM = 32
 
const int TFL_SHOOT_HITALLVALID = 8
 
const int TFL_SHOOT_NO = 64
 
const int TFL_SHOOT_VOLLY = 2
 
const int TFL_SHOOT_VOLLYALWAYS = 4
 
const int TFL_TARGETSELECT_ANGLELIMITS = BIT(6)
 
const int TFL_TARGETSELECT_FOV = BIT(12)
 
const int TFL_TARGETSELECT_LOS = BIT(2)
 
const int TFL_TARGETSELECT_MISSILES = BIT(4)
 
const int TFL_TARGETSELECT_MISSILESONLY = BIT(13)
 
const int TFL_TARGETSELECT_NO = BIT(1)
 
const int TFL_TARGETSELECT_NOBUILTIN = BIT(9)
 
const int TFL_TARGETSELECT_NOTURRETS = BIT(11)
 
const int TFL_TARGETSELECT_OWNTEAM = BIT(10)
 
const int TFL_TARGETSELECT_PLAYERS = BIT(3)
 
const int TFL_TARGETSELECT_RANGELIMITS = BIT(7)
 
const int TFL_TARGETSELECT_TEAMCHECK = BIT(8)
 
const int TFL_TARGETSELECT_TRIGGERTARGET = BIT(5)
 
const int TFL_TARGETSELECT_VEHICLES = BIT(14)
 
const int TFL_TRACK_NO = 2
 
const int TFL_TRACK_PITCH = 4
 
const int TFL_TRACK_ROTATE = 8
 
const int TNSF_ANG = 16
 
const int TNSF_ANIM = 128
 
const int TNSF_AVEL = 32
 
const int TNSF_FULL_UPDATE = 16777215
 
const int TNSF_MOVE = 64
 
const int TNSF_SETUP = 8
 
const int TNSF_STATUS = 4
 
const int TNSF_UPDATE = 2
 
int track_flags
 
const int TSF_NO_AMMO_REGEN = 4
 
const int TSF_NO_PATHBREAK = 8
 
const int TSF_SUSPENDED = 1
 
const int TSF_TERRAINBASE = 2
 
const int TSL_NO_RESPAWN = 16
 
const int TSL_ROAM = 32
 
const int TUR_FLAG_AMMOSOURCE = 4096
 
const int TUR_FLAG_FASTPROJ = 256
 
const int TUR_FLAG_GUIDED = 32
 
const int TUR_FLAG_HITSCAN = 8
 
const int TUR_FLAG_ISTURRET = 65536
 
const int TUR_FLAG_MEDPROJ = 128
 
const int TUR_FLAG_MISSILE = 1024
 
const int TUR_FLAG_MOVE = 16384
 
const int TUR_FLAG_MULTIGUN = 16
 
const int TUR_FLAG_NONE = 0
 
const int TUR_FLAG_PLAYER = 512
 
const int TUR_FLAG_RECIEVETARGETS = 8192
 
const int TUR_FLAG_ROAM = 32768
 
const int TUR_FLAG_SLOWPROJ = 64
 
const int TUR_FLAG_SNIPER = 2
 
const int TUR_FLAG_SPLASH = 4
 
const int TUR_FLAG_SUPPORT = 2048
 
entity tur_head
 
int turret_flags
 

Macro Definition Documentation

◆ ammo_flags

#define ammo_flags   currentammo

Definition at line 138 of file turret.qh.

Variable Documentation

◆ aim_flags

int aim_flags

Definition at line 79 of file turret.qh.

◆ anim_start_time

float anim_start_time

Definition at line 173 of file turret.qh.

Referenced by turret_construct().

◆ damage_flags

int damage_flags

Definition at line 147 of file turret.qh.

◆ firecheck_flags

int firecheck_flags

Definition at line 94 of file turret.qh.

◆ shoot_flags

int shoot_flags

Definition at line 109 of file turret.qh.

◆ target_select_flags

int target_select_flags

Definition at line 61 of file turret.qh.

◆ target_validate_flags

int target_validate_flags

Definition at line 62 of file turret.qh.

◆ TFL_AIM_LEAD

const int TFL_AIM_LEAD = 4

Definition at line 82 of file turret.qh.

◆ TFL_AIM_NO

const int TFL_AIM_NO = 1

Definition at line 80 of file turret.qh.

◆ TFL_AIM_SHOTTIMECOMPENSATE

const int TFL_AIM_SHOTTIMECOMPENSATE = 8

Definition at line 83 of file turret.qh.

◆ TFL_AIM_SIMPLE

const int TFL_AIM_SIMPLE = 32

Definition at line 85 of file turret.qh.

◆ TFL_AIM_SPLASH

const int TFL_AIM_SPLASH = 2

Definition at line 81 of file turret.qh.

◆ TFL_AIM_ZPREDICT

const int TFL_AIM_ZPREDICT = 16

Definition at line 84 of file turret.qh.

◆ TFL_AMMO_BULLETS

const int TFL_AMMO_BULLETS = 4

Definition at line 141 of file turret.qh.

◆ TFL_AMMO_ENERGY

const int TFL_AMMO_ENERGY = 2

Definition at line 140 of file turret.qh.

◆ TFL_AMMO_NONE

const int TFL_AMMO_NONE = 64

Definition at line 139 of file turret.qh.

◆ TFL_AMMO_RECHARGE

const int TFL_AMMO_RECHARGE = 16

Definition at line 143 of file turret.qh.

◆ TFL_AMMO_RECIEVE

const int TFL_AMMO_RECIEVE = 32

Definition at line 144 of file turret.qh.

◆ TFL_AMMO_ROCKETS

const int TFL_AMMO_ROCKETS = 8

Definition at line 142 of file turret.qh.

◆ TFL_DMG_AIMSHAKE

const int TFL_DMG_AIMSHAKE = 64

Definition at line 154 of file turret.qh.

◆ TFL_DMG_DEATH_NORESPAWN

const int TFL_DMG_DEATH_NORESPAWN = 256

Definition at line 156 of file turret.qh.

◆ TFL_DMG_HEADSHAKE

const int TFL_DMG_HEADSHAKE = 128

Definition at line 155 of file turret.qh.

◆ TFL_DMG_NO

const int TFL_DMG_NO = 256

Definition at line 148 of file turret.qh.

◆ TFL_DMG_RETALIATE

const int TFL_DMG_RETALIATE = 8

Definition at line 151 of file turret.qh.

◆ TFL_DMG_RETALIATE_TEAM

const int TFL_DMG_RETALIATE_TEAM = 16

Definition at line 152 of file turret.qh.

◆ TFL_DMG_TARGETLOSS

const int TFL_DMG_TARGETLOSS = 32

Definition at line 153 of file turret.qh.

◆ TFL_DMG_TEAM

const int TFL_DMG_TEAM = 4

Definition at line 150 of file turret.qh.

◆ TFL_DMG_YES

const int TFL_DMG_YES = 2

Definition at line 149 of file turret.qh.

◆ TFL_FIRECHECK_AFF

const int TFL_FIRECHECK_AFF = 512

Definition at line 102 of file turret.qh.

◆ TFL_FIRECHECK_AIMDIST

const int TFL_FIRECHECK_AIMDIST = 32

Definition at line 98 of file turret.qh.

◆ TFL_FIRECHECK_AMMO_OTHER

const int TFL_FIRECHECK_AMMO_OTHER = 2048

Definition at line 104 of file turret.qh.

◆ TFL_FIRECHECK_AMMO_OWN

const int TFL_FIRECHECK_AMMO_OWN = 1024

Definition at line 103 of file turret.qh.

◆ TFL_FIRECHECK_ANGLEDIST

const int TFL_FIRECHECK_ANGLEDIST = 128

Definition at line 100 of file turret.qh.

◆ TFL_FIRECHECK_DEAD

const int TFL_FIRECHECK_DEAD = 4

Definition at line 95 of file turret.qh.

◆ TFL_FIRECHECK_DISTANCES

const int TFL_FIRECHECK_DISTANCES = 8

Definition at line 96 of file turret.qh.

◆ TFL_FIRECHECK_LOS

const int TFL_FIRECHECK_LOS = 16

Definition at line 97 of file turret.qh.

◆ TFL_FIRECHECK_NO

const int TFL_FIRECHECK_NO = 16384

Definition at line 106 of file turret.qh.

◆ TFL_FIRECHECK_REALDIST

const int TFL_FIRECHECK_REALDIST = 64

Definition at line 99 of file turret.qh.

◆ TFL_FIRECHECK_REFIRE

const int TFL_FIRECHECK_REFIRE = 4096

Definition at line 105 of file turret.qh.

◆ TFL_FIRECHECK_TEAMCHECK

const int TFL_FIRECHECK_TEAMCHECK = 256

Definition at line 101 of file turret.qh.

◆ TFL_SHOOT_CLEARTARGET

const int TFL_SHOOT_CLEARTARGET = 16

Definition at line 114 of file turret.qh.

◆ TFL_SHOOT_CUSTOM

const int TFL_SHOOT_CUSTOM = 32

Definition at line 115 of file turret.qh.

◆ TFL_SHOOT_HITALLVALID

const int TFL_SHOOT_HITALLVALID = 8

Definition at line 113 of file turret.qh.

◆ TFL_SHOOT_NO

const int TFL_SHOOT_NO = 64

Definition at line 110 of file turret.qh.

◆ TFL_SHOOT_VOLLY

const int TFL_SHOOT_VOLLY = 2

Definition at line 111 of file turret.qh.

◆ TFL_SHOOT_VOLLYALWAYS

const int TFL_SHOOT_VOLLYALWAYS = 4

Definition at line 112 of file turret.qh.

◆ TFL_TARGETSELECT_ANGLELIMITS

const int TFL_TARGETSELECT_ANGLELIMITS = BIT(6)

Definition at line 68 of file turret.qh.

◆ TFL_TARGETSELECT_FOV

const int TFL_TARGETSELECT_FOV = BIT(12)

Definition at line 74 of file turret.qh.

◆ TFL_TARGETSELECT_LOS

const int TFL_TARGETSELECT_LOS = BIT(2)

Definition at line 64 of file turret.qh.

◆ TFL_TARGETSELECT_MISSILES

const int TFL_TARGETSELECT_MISSILES = BIT(4)

Definition at line 66 of file turret.qh.

◆ TFL_TARGETSELECT_MISSILESONLY

const int TFL_TARGETSELECT_MISSILESONLY = BIT(13)

Definition at line 75 of file turret.qh.

◆ TFL_TARGETSELECT_NO

const int TFL_TARGETSELECT_NO = BIT(1)

Definition at line 63 of file turret.qh.

◆ TFL_TARGETSELECT_NOBUILTIN

const int TFL_TARGETSELECT_NOBUILTIN = BIT(9)

Definition at line 71 of file turret.qh.

◆ TFL_TARGETSELECT_NOTURRETS

const int TFL_TARGETSELECT_NOTURRETS = BIT(11)

Definition at line 73 of file turret.qh.

◆ TFL_TARGETSELECT_OWNTEAM

const int TFL_TARGETSELECT_OWNTEAM = BIT(10)

Definition at line 72 of file turret.qh.

◆ TFL_TARGETSELECT_PLAYERS

const int TFL_TARGETSELECT_PLAYERS = BIT(3)

Definition at line 65 of file turret.qh.

◆ TFL_TARGETSELECT_RANGELIMITS

const int TFL_TARGETSELECT_RANGELIMITS = BIT(7)

Definition at line 69 of file turret.qh.

◆ TFL_TARGETSELECT_TEAMCHECK

const int TFL_TARGETSELECT_TEAMCHECK = BIT(8)

Definition at line 70 of file turret.qh.

◆ TFL_TARGETSELECT_TRIGGERTARGET

const int TFL_TARGETSELECT_TRIGGERTARGET = BIT(5)

Definition at line 67 of file turret.qh.

◆ TFL_TARGETSELECT_VEHICLES

const int TFL_TARGETSELECT_VEHICLES = BIT(14)

Definition at line 76 of file turret.qh.

◆ TFL_TRACK_NO

const int TFL_TRACK_NO = 2

Definition at line 89 of file turret.qh.

◆ TFL_TRACK_PITCH

const int TFL_TRACK_PITCH = 4

Definition at line 90 of file turret.qh.

◆ TFL_TRACK_ROTATE

const int TFL_TRACK_ROTATE = 8

Definition at line 91 of file turret.qh.

◆ TNSF_ANG

const int TNSF_ANG = 16

Definition at line 170 of file turret.qh.

Referenced by NET_HANDLE().

◆ TNSF_ANIM

const int TNSF_ANIM = 128

Definition at line 174 of file turret.qh.

Referenced by NET_HANDLE().

◆ TNSF_AVEL

const int TNSF_AVEL = 32

Definition at line 171 of file turret.qh.

Referenced by NET_HANDLE().

◆ TNSF_FULL_UPDATE

const int TNSF_FULL_UPDATE = 16777215

Definition at line 176 of file turret.qh.

◆ TNSF_MOVE

const int TNSF_MOVE = 64

Definition at line 172 of file turret.qh.

Referenced by NET_HANDLE().

◆ TNSF_SETUP

const int TNSF_SETUP = 8

Definition at line 169 of file turret.qh.

Referenced by NET_HANDLE().

◆ TNSF_STATUS

const int TNSF_STATUS = 4

Definition at line 168 of file turret.qh.

Referenced by NET_HANDLE().

◆ TNSF_UPDATE

const int TNSF_UPDATE = 2

Definition at line 167 of file turret.qh.

◆ track_flags

int track_flags

Definition at line 88 of file turret.qh.

◆ TSF_NO_AMMO_REGEN

const int TSF_NO_AMMO_REGEN = 4

Definition at line 161 of file turret.qh.

◆ TSF_NO_PATHBREAK

const int TSF_NO_PATHBREAK = 8

Definition at line 162 of file turret.qh.

◆ TSF_SUSPENDED

const int TSF_SUSPENDED = 1

Definition at line 159 of file turret.qh.

◆ TSF_TERRAINBASE

const int TSF_TERRAINBASE = 2

Definition at line 160 of file turret.qh.

◆ TSL_NO_RESPAWN

const int TSL_NO_RESPAWN = 16

Definition at line 163 of file turret.qh.

◆ TSL_ROAM

const int TSL_ROAM = 32

Definition at line 164 of file turret.qh.

◆ TUR_FLAG_AMMOSOURCE

const int TUR_FLAG_AMMOSOURCE = 4096

Definition at line 131 of file turret.qh.

◆ TUR_FLAG_FASTPROJ

const int TUR_FLAG_FASTPROJ = 256

Definition at line 127 of file turret.qh.

◆ TUR_FLAG_GUIDED

const int TUR_FLAG_GUIDED = 32

Definition at line 124 of file turret.qh.

◆ TUR_FLAG_HITSCAN

const int TUR_FLAG_HITSCAN = 8

Definition at line 122 of file turret.qh.

◆ TUR_FLAG_ISTURRET

const int TUR_FLAG_ISTURRET = 65536

Definition at line 135 of file turret.qh.

◆ TUR_FLAG_MEDPROJ

const int TUR_FLAG_MEDPROJ = 128

Definition at line 126 of file turret.qh.

◆ TUR_FLAG_MISSILE

const int TUR_FLAG_MISSILE = 1024

Definition at line 129 of file turret.qh.

◆ TUR_FLAG_MOVE

const int TUR_FLAG_MOVE = 16384

Definition at line 133 of file turret.qh.

Referenced by turret_draw2d().

◆ TUR_FLAG_MULTIGUN

const int TUR_FLAG_MULTIGUN = 16

Definition at line 123 of file turret.qh.

◆ TUR_FLAG_NONE

const int TUR_FLAG_NONE = 0

Definition at line 119 of file turret.qh.

◆ TUR_FLAG_PLAYER

const int TUR_FLAG_PLAYER = 512

Definition at line 128 of file turret.qh.

◆ TUR_FLAG_RECIEVETARGETS

const int TUR_FLAG_RECIEVETARGETS = 8192

Definition at line 132 of file turret.qh.

◆ TUR_FLAG_ROAM

const int TUR_FLAG_ROAM = 32768

Definition at line 134 of file turret.qh.

◆ TUR_FLAG_SLOWPROJ

const int TUR_FLAG_SLOWPROJ = 64

Definition at line 125 of file turret.qh.

◆ TUR_FLAG_SNIPER

const int TUR_FLAG_SNIPER = 2

Definition at line 120 of file turret.qh.

◆ TUR_FLAG_SPLASH

const int TUR_FLAG_SPLASH = 4

Definition at line 121 of file turret.qh.

◆ TUR_FLAG_SUPPORT

const int TUR_FLAG_SUPPORT = 2048

Definition at line 130 of file turret.qh.

◆ tur_head

entity tur_head

Definition at line 58 of file turret.qh.

◆ turret_flags

int turret_flags

Definition at line 118 of file turret.qh.