Xonotic
sv_turrets.qh File Reference
#include "all.qh"
+ Include dependency graph for sv_turrets.qh:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define X(class, prefix, fld, type)   .type fld;
 

Functions

 bool (entity this, entity e_target, entity e_sender) turret_addtarget
 
 float (entity this) turret_firecheckfunc = #353
 
 float (entity _turret, entity _target) turret_score_target
 Function to use for target evaluation. usualy turret_targetscore_generic. More...
 
 STATIC_INIT (g_turrets)
 
bool turret_closetotarget (entity this, vector targ)
 
void turret_do_updates (entity e_turret)
 updates aim org, shot org, shot dir and enemy org for selected turret More...
 
bool turret_firecheck (entity this)
 
bool turret_initialize (entity this, Turret tur)
 
entity turret_projectile (entity actor, Sound _snd, float _size, float _health, float _death, float _proj_type, float _cull, float _cli_anim)
 
void turret_projectile_explode (entity this)
 
void turret_respawn (entity this)
 
entity turret_select_target (entity this)
 
float turret_validate_target (entity e_turret, entity e_target, float validate_flags)
 
void turrets_setframe (entity this, float _frame, float client_only)
 

Variables

float ammo
 
bool autocvar_g_turrets
 
float autocvar_g_turrets_aimidle_delay
 
bool autocvar_g_turrets_nofire
 
bool autocvar_g_turrets_reloadcvars
 
float autocvar_g_turrets_targetscan_maxdelay
 
float autocvar_g_turrets_targetscan_mindelay
 
IntrusiveList g_turrets
 
vector idle_aim
 
entity pathcurrent
 
entity pathgoal
 
float target_select_time
 
float target_validate_time
 
const float TFL_TRACKTYPE_FLUIDINERTIA = 3
 
const float TFL_TRACKTYPE_FLUIDPRECISE = 2
 
const float TFL_TRACKTYPE_STEPMOTOR = 1
 
float ticrate
 
vector tur_aimpos
 
entity tur_defend
 
float tur_dist_aimpos
 
float tur_dist_enemy
 
float tur_dist_impact_to_aimpos
 
entity tur_head
 
entity tur_impactent
 
float tur_impacttime
 
vector tur_shotdir_updated
 
vector tur_shotorg
 
float turret_count
 
float turret_scale_aim
 Map time control aim speed. More...
 
float turret_scale_ammo
 Map time control ammo held and recharged. More...
 
float turret_scale_damage
 Map time control over pain inflicted. More...
 
float turret_scale_health
 Map time control health. More...
 
float turret_scale_range
 Map time control targetting range. More...
 
float turret_scale_refire
 Map time control refire. More...
 
float turret_scale_respawn
 Map time control respawn time. More...
 
float tvt_dist
 
vector tvt_tadv
 
float tvt_thadf
 
vector tvt_thadv
 
float volly_counter
 

Macro Definition Documentation

◆ X

#define X (   class,
  prefix,
  fld,
  type 
)    .type fld;

Definition at line 20 of file sv_turrets.qh.

Function Documentation

◆ bool()

bool ( entity  this,
entity  e_target,
entity  e_sender 
)

◆ float() [1/2]

float ( entity  this) = #353

◆ float() [2/2]

float ( entity  _turret,
entity  _target 
)

Function to use for target evaluation. usualy turret_targetscore_generic.

◆ STATIC_INIT()

STATIC_INIT ( g_turrets  )

Definition at line 115 of file sv_turrets.qh.

References IL_NEW.

115 { g_turrets = IL_NEW(); }
#define IL_NEW()
IntrusiveList g_turrets
Definition: sv_turrets.qh:114

◆ turret_closetotarget()

bool turret_closetotarget ( entity  this,
vector  targ 
)

◆ turret_do_updates()

void turret_do_updates ( entity  e_turret)

updates aim org, shot org, shot dir and enemy org for selected turret

◆ turret_firecheck()

bool turret_firecheck ( entity  this)

◆ turret_initialize()

bool turret_initialize ( entity  this,
Turret  tur 
)

◆ turret_projectile()

entity turret_projectile ( entity  actor,
Sound  _snd,
float  _size,
float  _health,
float  _death,
float  _proj_type,
float  _cull,
float  _cli_anim 
)

◆ turret_projectile_explode()

void turret_projectile_explode ( entity  this)

◆ turret_respawn()

void turret_respawn ( entity  this)

Referenced by assault_roundstart_use(), and MUTATOR_HOOKFUNCTION().

+ Here is the caller graph for this function:

◆ turret_select_target()

entity turret_select_target ( entity  this)

◆ turret_validate_target()

float turret_validate_target ( entity  e_turret,
entity  e_target,
float  validate_flags 
)

◆ turrets_setframe()

void turrets_setframe ( entity  this,
float  _frame,
float  client_only 
)

Variable Documentation

◆ ammo

◆ autocvar_g_turrets

bool autocvar_g_turrets

Definition at line 5 of file sv_turrets.qh.

◆ autocvar_g_turrets_aimidle_delay

float autocvar_g_turrets_aimidle_delay

Definition at line 6 of file sv_turrets.qh.

◆ autocvar_g_turrets_nofire

bool autocvar_g_turrets_nofire

Definition at line 7 of file sv_turrets.qh.

◆ autocvar_g_turrets_reloadcvars

bool autocvar_g_turrets_reloadcvars

Definition at line 8 of file sv_turrets.qh.

◆ autocvar_g_turrets_targetscan_maxdelay

float autocvar_g_turrets_targetscan_maxdelay

Definition at line 9 of file sv_turrets.qh.

◆ autocvar_g_turrets_targetscan_mindelay

float autocvar_g_turrets_targetscan_mindelay

Definition at line 10 of file sv_turrets.qh.

◆ g_turrets

IntrusiveList g_turrets

Definition at line 114 of file sv_turrets.qh.

Referenced by assault_roundstart_use().

◆ idle_aim

vector idle_aim

Definition at line 45 of file sv_turrets.qh.

◆ pathcurrent

entity pathcurrent

Definition at line 87 of file sv_turrets.qh.

◆ pathgoal

entity pathgoal

Definition at line 89 of file sv_turrets.qh.

◆ target_select_time

float target_select_time

Definition at line 40 of file sv_turrets.qh.

◆ target_validate_time

float target_validate_time

Definition at line 41 of file sv_turrets.qh.

◆ TFL_TRACKTYPE_FLUIDINERTIA

const float TFL_TRACKTYPE_FLUIDINERTIA = 3

Definition at line 65 of file sv_turrets.qh.

◆ TFL_TRACKTYPE_FLUIDPRECISE

const float TFL_TRACKTYPE_FLUIDPRECISE = 2

Definition at line 64 of file sv_turrets.qh.

◆ TFL_TRACKTYPE_STEPMOTOR

const float TFL_TRACKTYPE_STEPMOTOR = 1

Definition at line 63 of file sv_turrets.qh.

◆ ticrate

float ticrate

Definition at line 28 of file sv_turrets.qh.

◆ tur_aimpos

vector tur_aimpos

Definition at line 32 of file sv_turrets.qh.

◆ tur_defend

entity tur_defend

Definition at line 30 of file sv_turrets.qh.

◆ tur_dist_aimpos

float tur_dist_aimpos

Definition at line 36 of file sv_turrets.qh.

◆ tur_dist_enemy

float tur_dist_enemy

Definition at line 35 of file sv_turrets.qh.

◆ tur_dist_impact_to_aimpos

float tur_dist_impact_to_aimpos

Definition at line 37 of file sv_turrets.qh.

◆ tur_head

◆ tur_impactent

entity tur_impactent

Definition at line 34 of file sv_turrets.qh.

◆ tur_impacttime

float tur_impacttime

Definition at line 33 of file sv_turrets.qh.

◆ tur_shotdir_updated

vector tur_shotdir_updated

Definition at line 71 of file sv_turrets.qh.

◆ tur_shotorg

vector tur_shotorg

Definition at line 31 of file sv_turrets.qh.

◆ turret_count

float turret_count

Definition at line 91 of file sv_turrets.qh.

◆ turret_scale_aim

float turret_scale_aim

Map time control aim speed.

Definition at line 56 of file sv_turrets.qh.

◆ turret_scale_ammo

float turret_scale_ammo

Map time control ammo held and recharged.

Definition at line 54 of file sv_turrets.qh.

◆ turret_scale_damage

float turret_scale_damage

Map time control over pain inflicted.

Definition at line 48 of file sv_turrets.qh.

◆ turret_scale_health

float turret_scale_health

Map time control health.

Definition at line 58 of file sv_turrets.qh.

◆ turret_scale_range

float turret_scale_range

Map time control targetting range.

Definition at line 50 of file sv_turrets.qh.

◆ turret_scale_refire

float turret_scale_refire

Map time control refire.

Definition at line 52 of file sv_turrets.qh.

◆ turret_scale_respawn

float turret_scale_respawn

Map time control respawn time.

Definition at line 60 of file sv_turrets.qh.

◆ tvt_dist

float tvt_dist

Definition at line 112 of file sv_turrets.qh.

◆ tvt_tadv

vector tvt_tadv

Definition at line 110 of file sv_turrets.qh.

◆ tvt_thadf

float tvt_thadf

Definition at line 111 of file sv_turrets.qh.

◆ tvt_thadv

vector tvt_thadv

Definition at line 109 of file sv_turrets.qh.

◆ volly_counter

float volly_counter

Definition at line 38 of file sv_turrets.qh.