|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
#include "all.qh"Go to the source code of this file.
Macros | |
| #define | X(class, prefix, fld, type) |
Functions | |
| bool (entity this, entity e_target, entity e_sender) turret_addtarget | |
| float (entity _turret, entity _target) turret_score_target | |
| Function to use for target evaluation. usualy turret_targetscore_generic. | |
| float (entity this) turret_firecheckfunc | |
| STATIC_INIT (g_turrets) | |
| bool | turret_closetotarget (entity this, vector targ, float range) |
| void | turret_do_updates (entity e_turret) |
| updates aim org, shot org, shot dir and enemy org for selected turret | |
| bool | turret_firecheck (entity this) |
| Preforms pre-fire checks based on the uints firecheck_flags. | |
| 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) |
| Evaluate a entity for target valitity based on validate_flags NOTE: the caller must check takedamage before calling this, to inline this check. | |
| void | turrets_setframe (entity this, float _frame, float client_only) |
| #define X | ( | class, | |
| prefix, | |||
| fld, | |||
| type ) |
Definition at line 20 of file sv_turrets.qh.
Function to use for target evaluation. usualy turret_targetscore_generic.
References entity().
| STATIC_INIT | ( | g_turrets | ) |
Definition at line 114 of file sv_turrets.qh.
Definition at line 1246 of file sv_turrets.qc.
References absmax, absmin, boxesoverlap(), entity(), and vector.
Referenced by ewheel_move_path(), Monster_Move(), and walker_move_path().
updates aim org, shot org, shot dir and enemy org for selected turret
updates aim org, shot org, shot dir and enemy org for selected turret
Definition at line 499 of file sv_turrets.qc.
References entity(), MOVE_NORMAL, real_origin(), trace_endpos, trace_ent, turret_tag_fire_update(), v_forward, vector, and vlen().
Referenced by beam_think(), and turret_think().
Preforms pre-fire checks based on the uints firecheck_flags.
Definition at line 905 of file sv_turrets.qc.
References ammo, attack_finished_single, enemy, entity(), firecheck_flags, IS_DEAD, NULL, shoot_flags, target_validate_flags, TFL_FIRECHECK_AFF, TFL_FIRECHECK_AIMDIST, TFL_FIRECHECK_AMMO_OTHER, TFL_FIRECHECK_AMMO_OWN, TFL_FIRECHECK_DEAD, TFL_FIRECHECK_DISTANCES, TFL_FIRECHECK_NO, TFL_FIRECHECK_REFIRE, TFL_SHOOT_VOLLYALWAYS, time, tur_dist_aimpos, tur_dist_impact_to_aimpos, tur_impactent, turret_validate_target(), and volly_counter.
Referenced by turret_initialize(), turret_phaser_firecheck(), turret_tesla_firecheck(), and walker_firecheck().
Definition at line 1281 of file sv_turrets.qc.
References active, ACTIVE_ACTIVE, aim_flags, ammo, ammo_flags, autocvar_g_turrets, bot_attack, bound(), DAMAGE_AIM, damage_flags, DAMAGE_NO, DropToFloor_QC_DelayedInit(), EF_NODRAW, effects, entity(), fabs(), firecheck_flags, FLOAT_MAX, g_bot_targets, g_turrets, GetResource(), idle_aim, IL_PUSH(), InitializeEntity(), INITPRIO_FINDTARGET, load_unit_settings(), m_id, Turret::m_id, Turret::m_maxs, Turret::m_mins, Turret::m_name, max_health, move_movetype, MOVETYPE_NOCLIP, MUTATOR_CALLHOOK, netname, nextthink, randomvec(), set_movetype(), SetResourceExplicit(), solid, SOLID_BBOX, SOLID_NOT, spawnflags, Turret::spawnflags, takedamage, target, target_select_flags, target_validate_flags, team, teamplay, TFL_AIM_LEAD, TFL_AIM_SHOTTIMECOMPENSATE, TFL_AIM_SPLASH, TFL_AMMO_ENERGY, TFL_AMMO_RECHARGE, TFL_DMG_AIMSHAKE, TFL_DMG_DEATH_NORESPAWN, TFL_DMG_RETALIATE, TFL_DMG_YES, TFL_FIRECHECK_AIMDIST, TFL_FIRECHECK_AMMO_OWN, TFL_FIRECHECK_DEAD, TFL_FIRECHECK_DISTANCES, TFL_FIRECHECK_LOS, TFL_FIRECHECK_REFIRE, TFL_FIRECHECK_TEAMCHECK, TFL_TARGETSELECT_ANGLELIMITS, TFL_TARGETSELECT_LOS, TFL_TARGETSELECT_MISSILES, TFL_TARGETSELECT_PLAYERS, TFL_TARGETSELECT_RANGELIMITS, TFL_TARGETSELECT_TEAMCHECK, TFL_TRACK_PITCH, TFL_TRACK_ROTATE, TFL_TRACKTYPE_STEPMOTOR, time, Turret::tr_precache(), Turret::tr_setup(), track_flags, TSF_SUSPENDED, TSL_NO_RESPAWN, tur_defend, TUR_FLAG_ISTURRET, TUR_FLAG_MEDPROJ, TUR_FLAG_MISSILE, TUR_FLAG_PLAYER, TUR_FLAG_SPLASH, TUR_FLAG_SUPPORT, tur_head, tur_shotorg, turret_count, turret_damage(), turret_findtarget(), turret_firecheck(), turret_flags, turret_heal(), turret_initparams(), turret_link(), turret_reset(), turret_respawn(), turret_tag_fire_update(), turret_targetscore_generic(), turret_targetscore_support(), turret_use(), use, vdist, view_ofs, and weaponentities.
Referenced by spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), and spawnfunc().
| entity turret_projectile | ( | entity | actor, |
| Sound | _snd, | ||
| float | _size, | ||
| float | _health, | ||
| float | _death, | ||
| float | _proj_type, | ||
| float | _cull, | ||
| float | _cli_anim ) |
Definition at line 457 of file sv_turrets.qc.
References ATTEN_NORM, CH_WEAPON_A, CSQCProjectile(), DAMAGE_YES, entity(), FL_NOTARGET, FL_PROJECTILE, g_bot_dodge, g_projectiles, IL_PUSH(), MOVETYPE_FLYMISSILE, normalize(), PROJECTILE_MAKETRIGGER, randomvec(), set_movetype(), SetResourceExplicit(), setthink, settouch, sound, spawn, TC, time, turret_projectile_damage(), turret_projectile_explode(), turret_projectile_touch(), and VOL_BASE.
Definition at line 427 of file sv_turrets.qc.
References DAMAGE_NO, DMG_NOWEP, entity(), func_null(), NULL, owner, RadiusDamage(), realowner, and takedamage.
Referenced by turret_hellion_missile_think(), turret_hk_missile_think(), turret_projectile(), turret_projectile_damage(), and turret_projectile_touch().
Definition at line 279 of file sv_turrets.qc.
References ammo, avelocity, DAMAGE_AIM, DEAD_NO, deadflag, EF_LOWPRECISION, EF_NODRAW, effects, enemy, entity(), get_turretinfo, idle_aim, m_id, max_health, nextthink, NULL, origin, SendFlags, SetResourceExplicit(), setthink, solid, SOLID_BBOX, takedamage, team, time, TNSF_FULL_UPDATE, Turret::tr_setup(), tur_head, turret_damage(), turret_heal(), turret_think(), and volly_counter.
Referenced by assault_roundstart_use(), MUTATOR_HOOKFUNCTION(), turret_hide(), turret_initialize(), and turret_reset().
Definition at line 838 of file sv_turrets.qc.
References enemy, entity(), NULL, origin, target_select_flags, target_validate_flags, and turret_validate_target().
Referenced by turret_tesla_firecheck(), and turret_think().
Evaluate a entity for target valitity based on validate_flags NOTE: the caller must check takedamage before calling this, to inline this check.
Definition at line 686 of file sv_turrets.qc.
References angleofs, angleofs3(), checkpvs(), entity(), fabs(), FL_NOTARGET, FL_PROJECTILE, GetResource(), IS_CLIENT, IS_DEAD, IS_VEHICLE, LOG_TRACE, M_ARGV, MUTATOR_CALLHOOK, real_origin(), shortangle_vxy(), TFL_TARGETSELECT_ANGLELIMITS, TFL_TARGETSELECT_LOS, TFL_TARGETSELECT_MISSILES, TFL_TARGETSELECT_MISSILESONLY, TFL_TARGETSELECT_NO, TFL_TARGETSELECT_NOTURRETS, TFL_TARGETSELECT_OWNTEAM, TFL_TARGETSELECT_PLAYERS, TFL_TARGETSELECT_RANGELIMITS, TFL_TARGETSELECT_TEAMCHECK, TFL_TARGETSELECT_VEHICLES, trace_endpos, tvt_dist, tvt_tadv, tvt_thadf, tvt_thadv, vdist, vector, and vlen().
Referenced by turret_firecheck(), turret_hk_addtarget(), turret_select_target(), turret_tesla_firecheck(), turret_think(), and walker_melee_do_dmg().
Definition at line 313 of file sv_turrets.qc.
References anim_start_time, clientframe, entity(), frame, SendFlags, time, and TNSF_ANIM.
Referenced by ewheel_move_enemy(), and walker_setnoanim().
| float ammo |
Definition at line 43 of file sv_turrets.qh.
Referenced by ammo_pickupevalfunc(), DrawAmmoItem(), GetAmmoConsumption(), REGISTER_BUFF(), turret_fire(), turret_firecheck(), turret_fusionreactor_firecheck(), turret_initialize(), turret_respawn(), turret_think(), W_Crylink_Attack(), W_Crylink_Attack2(), W_DecreaseAmmo(), W_Devastator_Attack(), W_Devastator_DoRemoteExplode(), W_Devastator_Explode(), W_Electro_Attack_Bolt(), W_Electro_Attack_Orb(), W_Hagar_Attack(), W_Hagar_Attack2(), W_Hagar_Attack2_Load(), W_HLAC_Attack(), W_HLAC_Attack2(), W_MineLayer_Attack(), W_Mortar_Attack(), W_Mortar_Attack2(), W_OverkillHeavyMachineGun_Attack_Auto(), W_OverkillMachineGun_Attack_Auto(), W_OverkillNex_Attack(), W_OverkillRocketPropelledChainsaw_Attack(), W_ReloadedAndReady(), W_Rifle_FireBullet(), W_Shotgun_Attack3_Frame1(), W_Shotgun_Attack3_Frame2(), W_Vaporizer_Attack(), W_Vortex_Attack(), and weapon_prepareattack_checkammo().
| bool autocvar_g_turrets |
Definition at line 5 of file sv_turrets.qh.
Referenced by spawnfunc(), and turret_initialize().
| float autocvar_g_turrets_aimidle_delay |
Definition at line 6 of file sv_turrets.qh.
Referenced by turret_think().
| bool autocvar_g_turrets_nofire |
Definition at line 7 of file sv_turrets.qh.
Referenced by turret_fire().
| bool autocvar_g_turrets_reloadcvars |
Definition at line 8 of file sv_turrets.qh.
Referenced by turrets_manager_think().
| float autocvar_g_turrets_targetscan_maxdelay |
Definition at line 9 of file sv_turrets.qh.
Referenced by turret_tesla_firecheck(), and turret_think().
| float autocvar_g_turrets_targetscan_mindelay |
Definition at line 10 of file sv_turrets.qh.
Referenced by turret_tesla_firecheck(), and turret_think().
| IntrusiveList g_turrets |
Definition at line 113 of file sv_turrets.qh.
Referenced by assault_roundstart_use(), STATIC_INIT(), turret_initialize(), turret_targettrigger_touch(), and turrets_manager_think().
| vector idle_aim |
Definition at line 44 of file sv_turrets.qh.
Referenced by turret_findtarget(), turret_initialize(), turret_respawn(), and turret_track().
| entity pathcurrent |
Definition at line 86 of file sv_turrets.qh.
Referenced by ewheel_findtarget(), ewheel_move_path(), walker_findtarget(), and walker_move_path().
| entity pathgoal |
Definition at line 88 of file sv_turrets.qh.
Referenced by ewheel_findtarget(), ewheel_move_path(), walker_findtarget(), and walker_move_path().
| float target_select_time |
Definition at line 39 of file sv_turrets.qh.
Referenced by turret_tesla_firecheck(), and turret_think().
| float target_validate_time |
Definition at line 40 of file sv_turrets.qh.
Referenced by turret_tesla_firecheck(), and turret_think().
| const float TFL_TRACKTYPE_FLUIDINERTIA = 3 |
Definition at line 64 of file sv_turrets.qh.
Referenced by turret_track().
| const float TFL_TRACKTYPE_FLUIDPRECISE = 2 |
Definition at line 63 of file sv_turrets.qh.
Referenced by turret_track().
| const float TFL_TRACKTYPE_STEPMOTOR = 1 |
Definition at line 62 of file sv_turrets.qh.
Referenced by turret_initialize(), and turret_track().
| vector tur_aimpos |
Definition at line 31 of file sv_turrets.qh.
Referenced by turret_fire(), turret_think(), and turret_track().
| entity tur_defend |
Definition at line 29 of file sv_turrets.qh.
Referenced by turret_findtarget(), and turret_initialize().
| float tur_dist_aimpos |
Definition at line 35 of file sv_turrets.qh.
Referenced by turret_firecheck().
| float tur_dist_enemy |
Definition at line 34 of file sv_turrets.qh.
Referenced by ewheel_move_enemy().
| float tur_dist_impact_to_aimpos |
Definition at line 36 of file sv_turrets.qh.
Referenced by turret_firecheck().
| entity tur_head |
Definition at line 28 of file sv_turrets.qh.
Referenced by ewheel_draw(), ewheel_move_enemy(), NET_HANDLE(), racer_exit(), raptor_exit(), spiderbot_blowup(), spiderbot_rocket_do(), turret_changeteam(), turret_construct(), turret_damage(), turret_die(), turret_draw(), turret_findtarget(), turret_initialize(), turret_link(), turret_remove(), turret_respawn(), turret_send(), turret_tag_fire_update(), turret_track(), vehicle_initialize(), vehicle_use(), vehicles_painframe(), vehicles_reset_colors(), and walker_draw().
| entity tur_impactent |
Definition at line 33 of file sv_turrets.qh.
Referenced by turret_firecheck().
| float tur_impacttime |
Definition at line 32 of file sv_turrets.qh.
Referenced by raptor_flare_think(), and turret_fire().
| vector tur_shotdir_updated |
Definition at line 70 of file sv_turrets.qh.
| vector tur_shotorg |
Definition at line 30 of file sv_turrets.qh.
Referenced by turret_aim_generic(), turret_initialize(), turret_tag_fire_update(), turret_track(), walker_rocket_loop(), walker_rocket_loop2(), walker_rocket_loop3(), and walker_rocket_think().
| float turret_count |
Definition at line 90 of file sv_turrets.qh.
Referenced by turret_initialize().
| float turret_scale_aim |
Map time control aim speed.
Definition at line 55 of file sv_turrets.qh.
| float turret_scale_ammo |
Map time control ammo held and recharged.
Definition at line 53 of file sv_turrets.qh.
| float turret_scale_damage |
Map time control over pain inflicted.
Definition at line 47 of file sv_turrets.qh.
| float turret_scale_health |
Map time control health.
Definition at line 57 of file sv_turrets.qh.
| float turret_scale_range |
Map time control targetting range.
Definition at line 49 of file sv_turrets.qh.
| float turret_scale_refire |
Map time control refire.
Definition at line 51 of file sv_turrets.qh.
| float turret_scale_respawn |
Map time control respawn time.
Definition at line 59 of file sv_turrets.qh.
| float tvt_dist |
Definition at line 111 of file sv_turrets.qh.
Referenced by turret_targetscore_generic(), turret_targetscore_support(), and turret_validate_target().
| vector tvt_tadv |
Definition at line 109 of file sv_turrets.qh.
Referenced by turret_validate_target().
| float tvt_thadf |
Definition at line 110 of file sv_turrets.qh.
Referenced by turret_targetscore_generic(), and turret_validate_target().
| vector tvt_thadv |
Definition at line 108 of file sv_turrets.qh.
Referenced by turret_validate_target().
| float volly_counter |
Definition at line 37 of file sv_turrets.qh.
Referenced by turret_fire(), turret_firecheck(), turret_respawn(), and turret_think().