|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
#include "tracing.qh"#include <common/constants.qh>#include <common/deathtypes/all.qh>#include <common/effects/all.qh>#include <common/net_linked.qh>#include <common/state.qh>#include <common/util.qh>#include <common/weapons/_all.qh>#include <common/wepent.qh>#include <lib/warpzone/common.qh>#include <server/antilag.qh>#include <server/damage.qh>#include <server/main.qh>#include <server/mutators/_mod.qh>#include <server/weapons/accuracy.qh>#include <server/weapons/common.qh>#include <server/weapons/hitplot.qh>#include <server/weapons/weaponsystem.qh>Go to the source code of this file.
Functions | |
| void | crosshair_trace (entity pl) |
| void | crosshair_trace_plusvisibletriggers (entity pl) |
| void | crosshair_trace_plusvisibletriggers__is_wz (entity pl, bool is_wz) |
| void | fireBullet (entity this,.entity weaponentity, vector start, vector dir, float spread, float max_solid_penetration, float damage, float headshot_multiplier, float force, float dtype, entity tracer_effect) |
| void | fireBullet_antilag (entity this,.entity weaponentity, vector start, vector dir, float spread, float max_solid_penetration, float damage, float headshot_multiplier, float force, float dtype, entity tracer_effect, bool do_antilag) |
| void | fireBullet_falloff (entity this,.entity weaponentity, vector start, vector dir, float spread, float max_solid_penetration, float damage, float falloff_halflife, float falloff_mindist, float falloff_maxdist, float headshot_multiplier, float force, float falloff_forcehalflife, float dtype, entity tracer_effect, bool do_antilag) |
| void | fireBullet_trace_callback (vector start, vector hit, vector end) |
| void | FireRailgunBullet (entity this,.entity weaponentity, vector start, vector end, float bdamage, bool headshot_notify, float bforce, float mindist, float maxdist, float halflifedist, float forcehalflifedist, int deathtype) |
| bool | Headshot (entity targ, entity ent, vector start, vector end) |
| vector | W_CalculateProjectileVelocity (entity actor, vector pvelocity, vector mvelocity, float forceAbsolute) |
| void | W_SetupProjVelocity_Explicit (entity proj, vector dir, vector upDir, float pSpeed, float pUpSpeed, float pZSpeed, float spread, float forceAbsolute) |
| void | W_SetupShot_Dir_ProjectileSize_Range (entity ent,.entity weaponentity, vector s_forward, vector mi, vector ma, float antilag, float recoil, Sound snd, float chan, float maxdamage, float range, int deathtype) |
| void | WarpZone_crosshair_trace (entity pl) |
| void | WarpZone_crosshair_trace_plusvisibletriggers (entity pl) |
Definition at line 549 of file tracing.qc.
References ANTILAG_LATENCY, CS(), cursor_trace_endpos, cursor_trace_start, entity(), max_shot_distance, MOVE_NORMAL, normalize(), and traceline_antilag().
Referenced by bumblebee_gunner_frame(), bumblebee_pilot_frame(), CheatCommand(), crosshair_trace_plusvisibletriggers__is_wz(), MUTATOR_HOOKFUNCTION(), racer_frame(), raptor_frame(), spiderbot_frame(), spiderbot_guide_release(), spiderbot_rocket_do(), and spiderbot_rocket_guided().
Definition at line 554 of file tracing.qc.
References crosshair_trace_plusvisibletriggers__is_wz(), and entity().
Referenced by Drag(), and sandbox_ObjectEdit_Get().
Definition at line 564 of file tracing.qc.
References crosshair_trace(), entity(), FOREACH_ENTITY_FLOAT, g_ctrace_changed, IL_CLEAR, IL_EACH, IL_PUSH(), solid, SOLID_BSP, SOLID_TRIGGER, and WarpZone_crosshair_trace().
Referenced by crosshair_trace_plusvisibletriggers(), and WarpZone_crosshair_trace_plusvisibletriggers().
| void fireBullet | ( | entity | this, |
| .entity | weaponentity, | ||
| vector | start, | ||
| vector | dir, | ||
| float | spread, | ||
| float | max_solid_penetration, | ||
| float | damage, | ||
| float | headshot_multiplier, | ||
| float | force, | ||
| float | dtype, | ||
| entity | tracer_effect ) |
Definition at line 544 of file tracing.qc.
References dir, entity(), fireBullet_antilag(), and vector.
Referenced by spiderbot_frame(), and W_OverkillHeavyMachineGun_Attack_Auto().
| void fireBullet_antilag | ( | entity | this, |
| .entity | weaponentity, | ||
| vector | start, | ||
| vector | dir, | ||
| float | spread, | ||
| float | max_solid_penetration, | ||
| float | damage, | ||
| float | headshot_multiplier, | ||
| float | force, | ||
| float | dtype, | ||
| entity | tracer_effect, | ||
| bool | do_antilag ) |
Definition at line 539 of file tracing.qc.
References dir, entity(), fireBullet_falloff(), and vector.
Referenced by fireBullet().
| void fireBullet_falloff | ( | entity | this, |
| .entity | weaponentity, | ||
| vector | start, | ||
| vector | dir, | ||
| float | spread, | ||
| float | max_solid_penetration, | ||
| float | damage, | ||
| float | falloff_halflife, | ||
| float | falloff_mindist, | ||
| float | falloff_maxdist, | ||
| float | headshot_multiplier, | ||
| float | force, | ||
| float | falloff_forcehalflife, | ||
| float | dtype, | ||
| entity | tracer_effect, | ||
| bool | do_antilag ) |
Definition at line 364 of file tracing.qc.
References accuracy_add(), accuracy_isgooddamage(), antilag_getlag(), antilag_restore_all(), antilag_takeback_all(), autocvar_g_ballistics_mindistance, autocvar_g_ballistics_penetrate_clips, autocvar_g_ballistics_solidpenetration_exponent, autocvar_g_hitscan_spread_style, Damage(), Damage_DamageInfo(), dir, DPCONTENTS_BODY, DPCONTENTS_CORPSE, DPCONTENTS_OPAQUE, DPCONTENTS_SOLID, dphitcontentsmask, entity(), ExponentialFalloff(), fireBullet_last_hit, fireBullet_trace_callback(), fireBullet_trace_callback_eff, Headshot(), IS_PLAYER, M_ARGV, m_weapon, max(), max_shot_distance, min(), MOVE_NORMAL, MUTATOR_CALLHOOK, normalize(), NULL, pow, PS, Q3SURFACEFLAG_NODRAW, Q3SURFACEFLAG_NONSOLID, Q3SURFACEFLAG_SKY, Send_Notification(), SOLID_BSP, SOLID_SLIDEBOX, trace_dphitcontents, trace_dphitq3surfaceflags, trace_endpos, trace_ent, trace_fraction, traceline_inverted(), trailparticles, vdist, vector, vlen(), W_CalculateSpread(), WarpZone_trace_forent, WarpZone_trace_transform, WarpZone_TraceBox_ThroughZone(), WarpZone_TransformOrigin(), WarpZone_TransformVelocity(), WarpZone_UnTransformOrigin(), world, and yoda.
Referenced by fireBullet_antilag(), W_MachineGun_Attack(), W_MachineGun_Attack_Auto(), W_MachineGun_Attack_Burst(), W_OverkillMachineGun_Attack_Auto(), W_Rifle_FireBullet(), and W_Shotgun_Attack().
Definition at line 356 of file tracing.qc.
References fireBullet_last_hit, fireBullet_trace_callback_eff, NULL, trailparticles, vdist, vector, and WarpZone_trace_forent.
Referenced by fireBullet_falloff().
| void FireRailgunBullet | ( | entity | this, |
| .entity | weaponentity, | ||
| vector | start, | ||
| vector | end, | ||
| float | bdamage, | ||
| bool | headshot_notify, | ||
| float | bforce, | ||
| float | mindist, | ||
| float | maxdist, | ||
| float | halflifedist, | ||
| float | forcehalflifedist, | ||
| int | deathtype ) |
Definition at line 238 of file tracing.qc.
References accuracy_add(), antilag_debug, ANTILAG_LATENCY, ATTEN_IDLE, bound(), CH_SHOTS, CS(), Damage_DamageInfo(), dir, entity(), FOREACH_CLIENT, g_railgunhit, Headshot(), IL_CLEAR, IL_EACH, IL_PUSH(), IS_REAL_CLIENT, IS_SPEC, m_weapon, min(), msg_entity, MSG_ONE, normalize(), NULL, Send_Notification(), SND, SOLID_BSP, SOLID_NOT, SOLID_SLIDEBOX, soundtoat(), trace_dphitq3surfaceflags, trace_endpos, trace_ent, trace_fraction, vector, vlen(), VOL_BASEVOICE, WarpZone_trace_firstzone, WarpZone_trace_transform, WarpZone_traceline_antilag(), WarpZone_TransformVelocity(), and WarpZone_UnTransformOrigin().
Referenced by W_OverkillNex_Attack(), W_Vaporizer_Attack(), and W_Vortex_Attack().
Definition at line 227 of file tracing.qc.
References entity(), IS_DEAD, IS_PLAYER, org, STAT, trace_hits_box(), and vector.
Referenced by fireBullet_falloff(), and FireRailgunBullet().
| vector W_CalculateProjectileVelocity | ( | entity | actor, |
| vector | pvelocity, | ||
| vector | mvelocity, | ||
| float | forceAbsolute ) |
Definition at line 176 of file tracing.qc.
References autocvar_g_projectiles_newton_style, autocvar_g_projectiles_newton_style_2_maxfactor, autocvar_g_projectiles_newton_style_2_minfactor, entity(), get_shotvelocity(), normalize(), vector, vlen(), and W_WeaponSpeedFactor().
Referenced by ctf_Handle_Throw(), IMPULSE(), kh_Key_DropAll(), kh_Key_DropOne(), powerups_DropItem(), toss_nade(), W_Nexball_Attack(), W_RocketMinsta_Attack(), and W_SetupProjVelocity_Explicit().
| void W_SetupProjVelocity_Explicit | ( | entity | proj, |
| vector | dir, | ||
| vector | upDir, | ||
| float | pSpeed, | ||
| float | pUpSpeed, | ||
| float | pZSpeed, | ||
| float | spread, | ||
| float | forceAbsolute ) |
Definition at line 192 of file tracing.qc.
References autocvar_g_projectiles_spread_style, dir, entity(), error, ftos(), gettime(), GETTIME_HIRES, LOG_INFO, normalize(), NULL, vector, vlen(), W_CalculateProjectileVelocity(), and W_CalculateSpread().
Referenced by FireGrapplingHook(), M_Golem_Attack_Lightning(), M_Spider_Attack_Web(), W_Blaster_Attack(), W_Crylink_Attack(), W_Crylink_Attack2(), and W_Hagar_Attack2_Load_Release().
| void W_SetupShot_Dir_ProjectileSize_Range | ( | entity | ent, |
| .entity | weaponentity, | ||
| vector | s_forward, | ||
| vector | mi, | ||
| vector | ma, | ||
| float | antilag, | ||
| float | recoil, | ||
| Sound | snd, | ||
| float | chan, | ||
| float | maxdamage, | ||
| float | range, | ||
| int | deathtype ) |
Definition at line 24 of file tracing.qc.
References accuracy_add(), accuracy_canbegooddamage(), antilag_debug, ANTILAG_LATENCY, ATTN_NORM, autocvar_g_antilag, autocvar_g_norecoil, autocvar_g_trueaim_minrange, CS(), CS_CVAR, cursor_trace_ent, DEATH_WEAPONOF, DPCONTENTS_BODY, DPCONTENTS_CORPSE, DPCONTENTS_SOLID, entity(), IS_CLIENT, IS_PLAYER, LOG_INFO, MOVE_NOMONSTERS, MOVE_NORMAL, movedir, normalize(), NULL, sound, Weapon::spawnflags, TC, trace_endpos, trace_ent, tracebox_antilag(), traceline_antilag_force(), v_forward, v_right, v_up, vdist, vector, VOL_BASE, W_DualWielding(), W_HitPlotAnalysis(), W_PlayStrengthSound(), w_shotdir, w_shotend, w_shotorg, WarpZone_trace_transform, WarpZone_TraceLine(), WarpZone_traceline_antilag(), WarpZone_UnTransformOrigin(), and WEP_FLAG_PENETRATEWALLS.
Definition at line 585 of file tracing.qc.
References ANTILAG_LATENCY, CS(), cursor_trace_endpos, cursor_trace_start, entity(), max_shot_distance, MOVE_NORMAL, normalize(), and WarpZone_traceline_antilag().
Referenced by crosshair_trace_plusvisibletriggers__is_wz(), crosshair_trace_waypoints(), IMPULSE(), and IMPULSE().
Definition at line 559 of file tracing.qc.
References crosshair_trace_plusvisibletriggers__is_wz(), and entity().
Referenced by formatmessage(), IMPULSE(), and show_entnum().