|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
#include <common/weapons/_all.qh>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 |
| #define ammo_flags currentammo |
Definition at line 156 of file turret.qh.
Referenced by turret_initialize().
| int aim_flags |
Definition at line 97 of file turret.qh.
Referenced by turret_aim_generic(), turret_initialize(), and turret_think().
| int damage_flags |
Definition at line 165 of file turret.qh.
Referenced by turret_damage(), turret_die(), and turret_initialize().
| int firecheck_flags |
Definition at line 112 of file turret.qh.
Referenced by turret_firecheck(), and turret_initialize().
| int shoot_flags |
Definition at line 127 of file turret.qh.
Referenced by turret_fire(), turret_firecheck(), and turret_think().
| int target_select_flags |
Definition at line 79 of file turret.qh.
Referenced by turret_initialize(), and turret_select_target().
| int target_validate_flags |
Definition at line 80 of file turret.qh.
Referenced by turret_firecheck(), turret_hk_addtarget(), turret_initialize(), turret_select_target(), turret_tesla_firecheck(), turret_think(), and walker_melee_do_dmg().
try to predict target movement
Definition at line 100 of file turret.qh.
Referenced by turret_aim_generic(), and turret_initialize().
compensate for shot traveltime when leading
Definition at line 101 of file turret.qh.
Referenced by turret_aim_generic(), and turret_initialize().
aim at player's current location
Definition at line 103 of file turret.qh.
Referenced by turret_aim_generic().
aim for ground around the target's feet
Definition at line 99 of file turret.qh.
Referenced by turret_aim_generic(), and turret_initialize().
predict target's z position at impact
Definition at line 102 of file turret.qh.
Referenced by turret_aim_generic().
uses power
Definition at line 158 of file turret.qh.
Referenced by turret_fusionreactor_firecheck(), and turret_initialize().
no re-spawning
Definition at line 174 of file turret.qh.
Referenced by turret_die(), and turret_initialize().
try to avoid any friendly fire
Definition at line 120 of file turret.qh.
Referenced by turret_firecheck().
consider distance impactpoint<->aimspot
Definition at line 116 of file turret.qh.
Referenced by turret_firecheck(), and turret_initialize().
target's ammo needs to be less than max
Definition at line 122 of file turret.qh.
Referenced by turret_firecheck().
own ammo needs to be larger than damage dealt
Definition at line 121 of file turret.qh.
Referenced by turret_firecheck(), and turret_initialize().
don't attack dead targets (zombies?)
Definition at line 113 of file turret.qh.
Referenced by turret_firecheck(), and turret_initialize().
another range check
Definition at line 114 of file turret.qh.
Referenced by turret_firecheck(), and turret_initialize().
check single attack finished delays
Definition at line 123 of file turret.qh.
Referenced by turret_firecheck(), and turret_initialize().
lose target after attack (after volly is done if in volly mode)
Definition at line 132 of file turret.qh.
Referenced by turret_fire().
loop through all valid targets
Definition at line 131 of file turret.qh.
Referenced by turret_think().
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().
apply extra angular limits to target selection
Definition at line 86 of file turret.qh.
Referenced by turret_initialize(), and turret_validate_target().
require line of sight to find targets
Definition at line 82 of file turret.qh.
Referenced by turret_initialize(), and turret_validate_target().
target projectiles
Definition at line 84 of file turret.qh.
Referenced by turret_initialize(), and turret_validate_target().
only attack missiles
Definition at line 93 of file turret.qh.
Referenced by turret_validate_target().
don't automatically find targets
Definition at line 81 of file turret.qh.
Referenced by turret_validate_target().
don't attack other turrets
Definition at line 91 of file turret.qh.
Referenced by turret_validate_target().
only attack teammates
Definition at line 90 of file turret.qh.
Referenced by turret_validate_target().
target players
Definition at line 83 of file turret.qh.
Referenced by turret_initialize(), and turret_validate_target().
limit target selection range
Definition at line 87 of file turret.qh.
Referenced by turret_initialize(), and turret_validate_target().
don't attack teammates
Definition at line 88 of file turret.qh.
Referenced by turret_initialize(), and turret_validate_target().
target manned vehicles
Definition at line 94 of file turret.qh.
Referenced by turret_validate_target().
don't move head
Definition at line 107 of file turret.qh.
Referenced by turret_think(), and turret_track().
pitch head
Definition at line 108 of file turret.qh.
Referenced by turret_initialize(), and turret_track().
rotate head
Definition at line 109 of file turret.qh.
Referenced by turret_initialize(), and turret_track().
Definition at line 188 of file turret.qh.
Referenced by NET_HANDLE(), turret_damage(), turret_send(), and turret_track().
Definition at line 192 of file turret.qh.
Referenced by ewheel_move_idle(), NET_HANDLE(), turret_send(), and turrets_setframe().
Definition at line 189 of file turret.qh.
Referenced by NET_HANDLE(), turret_send(), and turret_track().
| const int TNSF_FULL_UPDATE = 0xFFFFFF |
Definition at line 194 of file turret.qh.
Referenced by turret_respawn().
Definition at line 190 of file turret.qh.
Referenced by NET_HANDLE(), and turret_send().
Definition at line 187 of file turret.qh.
Referenced by NET_HANDLE(), and turret_send().
Definition at line 186 of file turret.qh.
Referenced by NET_HANDLE(), turret_damage(), turret_die(), turret_heal(), and turret_send().
| int track_flags |
Definition at line 106 of file turret.qh.
Referenced by turret_initialize(), turret_think(), and turret_track().
disable builtin ammo regeneration
Definition at line 179 of file turret.qh.
Referenced by turret_think().
Definition at line 177 of file turret.qh.
Referenced by turret_initialize().
identifies this unit as a turret
Definition at line 153 of file turret.qh.
Referenced by turret_initialize().
turret fires medium projectiles
Definition at line 144 of file turret.qh.
Referenced by turret_initialize().
can move
Definition at line 151 of file turret.qh.
Referenced by turret_damage(), and turret_draw2d().
| int turret_flags |
Definition at line 136 of file turret.qh.
Referenced by turret_damage(), and turret_initialize().