Xonotic
|
#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.
Definition at line 508 of file tracing.qc.
References ANTILAG_LATENCY, CS(), cursor_trace_endpos, cursor_trace_start, MOVE_NORMAL, normalize(), and traceline_antilag().
Referenced by CheatCommand(), crosshair_trace_plusvisibletriggers__is_wz(), and MUTATOR_HOOKFUNCTION().
Definition at line 513 of file tracing.qc.
References crosshair_trace_plusvisibletriggers__is_wz().
Referenced by Drag(), and sandbox_ObjectEdit_Get().
Definition at line 523 of file tracing.qc.
References crosshair_trace(), FOREACH_ENTITY_FLOAT, g_ctrace_changed, IL_CLEAR, IL_EACH, solid, 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 503 of file tracing.qc.
References fireBullet_antilag().
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 357 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, Damage(), Damage_DamageInfo(), DPCONTENTS_BODY, DPCONTENTS_CORPSE, DPCONTENTS_OPAQUE, DPCONTENTS_SOLID, dphitcontentsmask, entity(), fireBullet_last_hit, fireBullet_trace_callback(), fireBullet_trace_callback_eff, Headshot(), IS_PLAYER, M_ARGV, max(), min(), MOVE_NORMAL, MUTATOR_CALLHOOK, normalize(), NULL, pow(), PS, Q3SURFACEFLAG_NODRAW, Q3SURFACEFLAG_NONSOLID, Q3SURFACEFLAG_SKY, randomvec(), SOLID_BSP, SOLID_SLIDEBOX, trace_dphitcontents, trace_dphitq3surfaceflags, trace_endpos, trace_ent, trace_fraction, trailparticles, vdist, vector(), vlen(), WarpZone_trace_forent, WarpZone_trace_transform, WarpZone_TraceBox_ThroughZone(), WarpZone_TransformOrigin(), WarpZone_TransformVelocity(), world, and yoda.
Referenced by fireBullet().
Definition at line 349 of file tracing.qc.
References fireBullet_last_hit, fireBullet_trace_callback_eff, NULL, trailparticles, vdist, and WarpZone_trace_forent.
Referenced by fireBullet_antilag().
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 231 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, min(), msg_entity, MSG_ONE, normalize(), NULL, SND, SOLID_BSP, SOLID_NOT, SOLID_SLIDEBOX, 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().
Definition at line 220 of file tracing.qc.
References IS_DEAD, IS_PLAYER, and vector().
Referenced by fireBullet_antilag(), and FireRailgunBullet().
vector W_CalculateProjectileVelocity | ( | entity | actor, |
vector | pvelocity, | ||
vector | mvelocity, | ||
float | forceAbsolute | ||
) |
Definition at line 169 of file tracing.qc.
References autocvar_g_projectiles_newton_style, autocvar_g_projectiles_newton_style_2_maxfactor, autocvar_g_projectiles_newton_style_2_minfactor, get_shotvelocity(), normalize(), vector(), vlen(), and W_WeaponSpeedFactor().
Referenced by ctf_Handle_Throw(), IMPULSE(), kh_Key_DropAll(), kh_Key_DropOne(), W_Nexball_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 185 of file tracing.qc.
References autocvar_g_projectiles_spread_style, autocvar_g_weaponspreadfactor, error(), ftos(), gettime(), GETTIME_HIRES, LOG_INFO, normalize(), NULL, vlen(), W_CalculateProjectileVelocity(), and W_CalculateSpread().
Referenced by FireGrapplingHook().
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 544 of file tracing.qc.
References ANTILAG_LATENCY, CS(), cursor_trace_endpos, cursor_trace_start, MOVE_NORMAL, normalize(), and WarpZone_traceline_antilag().
Referenced by crosshair_trace_plusvisibletriggers__is_wz(), crosshair_trace_waypoints(), and IMPULSE().
Definition at line 518 of file tracing.qc.
References crosshair_trace_plusvisibletriggers__is_wz().
Referenced by formatmessage(), and IMPULSE().