15 it.tur_head.avelocity =
'0 0 0';
19 if (it.ammo < it.shot_dmg)
20 it.tur_head.avelocity =
'0 45 0' * (it.ammo / it.shot_dmg);
23 it.tur_head.avelocity =
'0 180 0' * (it.ammo / it.shot_dmg);
25 if (it.attack_finished_single[0] >
time)
28 float f = it.ammo / it.ammo_max;
54 bool do_target_scan =
false;
57 do_target_scan =
true;
65 do_target_scan =
true;
70 do_target_scan =
false;
91 PAR(_(
"The %s is a turret that electrocutes all who dare come near it, sending powerful high-voltage arcs of lightning to strike its targets."),
COLORED_NAME(
this));
92 PAR(_(
"Since the arcs of lightning can jump between nearby targets, it is best to just stay away from the %s."),
COLORED_NAME(
this));
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
#define COLORED_NAME(this)
void te_csqc_lightningarc(vector from, vector to)
#define METHOD(cname, name, prototype)
#define PAR(...)
Adds an individually translatable paragraph to PAGE_TEXT without having to deal with strcat and sprin...
bool turret_firecheck(entity this)
Preforms pre-fire checks based on the uints firecheck_flags.
entity turret_select_target(entity this)
float turret_validate_target(entity e_turret, entity e_target, float validate_flags)
Evaluate a entity for target valitity based on validate_flags NOTE: the caller must check takedamage ...
bool turret_initialize(entity this, Turret tur)
float target_validate_time
float autocvar_g_turrets_targetscan_maxdelay
float autocvar_g_turrets_targetscan_mindelay
bool turret_tesla_firecheck(entity this)
const int TFL_TRACK_NO
don't move head
const int TFL_TARGETSELECT_TEAMCHECK
don't attack teammates
const int TFL_FIRECHECK_AMMO_OWN
own ammo needs to be larger than damage dealt
int target_validate_flags
const int TFL_TARGETSELECT_PLAYERS
target players
const int TFL_TARGETSELECT_RANGELIMITS
limit target selection range
const int TFL_FIRECHECK_REFIRE
check single attack finished delays
const int TFL_AMMO_ENERGY
uses power
const int TFL_AIM_NO
no aiming
const int TFL_AMMO_RECHARGE
regenerates ammo
const int TFL_AMMO_RECIEVE
can recieve ammo from support units
const int TFL_TARGETSELECT_MISSILES
target projectiles
const int TFL_SHOOT_CUSTOM
custom attacking