Xonotic
|
Go to the source code of this file.
Macros | |
#define | W_SetupProjVelocity_Basic(ent, pspeed, pspread) W_SetupProjVelocity_Explicit(ent, w_shotdir, v_up, pspeed, 0, 0, pspread, false) |
#define | W_SetupProjVelocity_BOTH(ent, wepname, isprimary) |
#define | W_SetupProjVelocity_PRE(ent, wepname, prefix) W_SetupProjVelocity_Explicit(ent, w_shotdir, v_up, WEP_CVAR(wepname, prefix##speed), 0, 0, WEP_CVAR(wepname, prefix##spread), false) |
#define | W_SetupProjVelocity_PRI(ent, wepname) W_SetupProjVelocity_Explicit(ent, w_shotdir, v_up, WEP_CVAR_PRI(wepname, speed), 0, 0, WEP_CVAR_PRI(wepname, spread), false) |
#define | W_SetupProjVelocity_SEC(ent, wepname) W_SetupProjVelocity_Explicit(ent, w_shotdir, v_up, WEP_CVAR_SEC(wepname, speed), 0, 0, WEP_CVAR_SEC(wepname, spread), false) |
#define | W_SetupProjVelocity_UP_BOTH(ent, wepname, isprimary) |
#define | W_SetupProjVelocity_UP_PRE(ent, wepname, prefix) W_SetupProjVelocity_Explicit(ent, w_shotdir, v_up, WEP_CVAR(wepname, prefix##speed), WEP_CVAR(wepname, prefix##speed_up), WEP_CVAR(wepname, prefix##speed_z), WEP_CVAR(wepname, prefix##spread), false) |
#define | W_SetupProjVelocity_UP_PRI(ent, wepname) W_SetupProjVelocity_Explicit(ent, w_shotdir, v_up, WEP_CVAR_PRI(wepname, speed), WEP_CVAR_PRI(wepname, speed_up), WEP_CVAR_PRI(wepname, speed_z), WEP_CVAR_PRI(wepname, spread), false) |
#define | W_SetupProjVelocity_UP_SEC(ent, wepname) W_SetupProjVelocity_Explicit(ent, w_shotdir, v_up, WEP_CVAR_SEC(wepname, speed), WEP_CVAR_SEC(wepname, speed_up), WEP_CVAR_SEC(wepname, speed_z), WEP_CVAR_SEC(wepname, spread), false) |
#define | W_SetupShot(ent, wepent, antilag, recoil, snd, chan, maxdamage, deathtype) W_SetupShot_ProjectileSize(ent, wepent, '0 0 0', '0 0 0', antilag, recoil, snd, chan, maxdamage, deathtype) |
#define | W_SetupShot_Dir(ent, wepent, s_forward, antilag, recoil, snd, chan, maxdamage, deathtype) W_SetupShot_Dir_ProjectileSize(ent, wepent, s_forward, '0 0 0', '0 0 0', antilag, recoil, snd, chan, maxdamage, deathtype) |
#define | W_SetupShot_Dir_ProjectileSize(ent, wepent, s_forward, mi, ma, antilag, recoil, snd, chan, maxdamage, deathtype) W_SetupShot_Dir_ProjectileSize_Range(ent, wepent, s_forward, mi, ma, antilag, recoil, snd, chan, maxdamage, max_shot_distance, deathtype) |
#define | W_SetupShot_ProjectileSize(ent, wepent, mi, ma, antilag, recoil, snd, chan, maxdamage, deathtype) W_SetupShot_Dir_ProjectileSize(ent, wepent, v_forward, mi, ma, antilag, recoil, snd, chan, maxdamage, deathtype) |
#define | W_SetupShot_Range(ent, wepent, antilag, recoil, snd, chan, maxdamage, range, deathtype) W_SetupShot_Dir_ProjectileSize_Range(ent, wepent, v_forward, '0 0 0', '0 0 0', antilag, recoil, snd, chan, maxdamage, range, deathtype) |
#define W_SetupProjVelocity_Basic | ( | ent, | |
pspeed, | |||
pspread | |||
) | W_SetupProjVelocity_Explicit(ent, w_shotdir, v_up, pspeed, 0, 0, pspread, false) |
Definition at line 48 of file tracing.qh.
Referenced by W_Nexball_Attack2().
#define W_SetupProjVelocity_BOTH | ( | ent, | |
wepname, | |||
isprimary | |||
) |
Definition at line 69 of file tracing.qh.
#define W_SetupProjVelocity_PRE | ( | ent, | |
wepname, | |||
prefix | |||
) | W_SetupProjVelocity_Explicit(ent, w_shotdir, v_up, WEP_CVAR(wepname, prefix##speed), 0, 0, WEP_CVAR(wepname, prefix##spread), false) |
Definition at line 62 of file tracing.qh.
#define W_SetupProjVelocity_PRI | ( | ent, | |
wepname | |||
) | W_SetupProjVelocity_Explicit(ent, w_shotdir, v_up, WEP_CVAR_PRI(wepname, speed), 0, 0, WEP_CVAR_PRI(wepname, spread), false) |
Definition at line 64 of file tracing.qh.
#define W_SetupProjVelocity_SEC | ( | ent, | |
wepname | |||
) | W_SetupProjVelocity_Explicit(ent, w_shotdir, v_up, WEP_CVAR_SEC(wepname, speed), 0, 0, WEP_CVAR_SEC(wepname, spread), false) |
Definition at line 66 of file tracing.qh.
#define W_SetupProjVelocity_UP_BOTH | ( | ent, | |
wepname, | |||
isprimary | |||
) |
Definition at line 58 of file tracing.qh.
#define W_SetupProjVelocity_UP_PRE | ( | ent, | |
wepname, | |||
prefix | |||
) | W_SetupProjVelocity_Explicit(ent, w_shotdir, v_up, WEP_CVAR(wepname, prefix##speed), WEP_CVAR(wepname, prefix##speed_up), WEP_CVAR(wepname, prefix##speed_z), WEP_CVAR(wepname, prefix##spread), false) |
Definition at line 51 of file tracing.qh.
#define W_SetupProjVelocity_UP_PRI | ( | ent, | |
wepname | |||
) | W_SetupProjVelocity_Explicit(ent, w_shotdir, v_up, WEP_CVAR_PRI(wepname, speed), WEP_CVAR_PRI(wepname, speed_up), WEP_CVAR_PRI(wepname, speed_z), WEP_CVAR_PRI(wepname, spread), false) |
Definition at line 53 of file tracing.qh.
#define W_SetupProjVelocity_UP_SEC | ( | ent, | |
wepname | |||
) | W_SetupProjVelocity_Explicit(ent, w_shotdir, v_up, WEP_CVAR_SEC(wepname, speed), WEP_CVAR_SEC(wepname, speed_up), WEP_CVAR_SEC(wepname, speed_z), WEP_CVAR_SEC(wepname, spread), false) |
Definition at line 55 of file tracing.qh.
#define W_SetupShot | ( | ent, | |
wepent, | |||
antilag, | |||
recoil, | |||
snd, | |||
chan, | |||
maxdamage, | |||
deathtype | |||
) | W_SetupShot_ProjectileSize(ent, wepent, '0 0 0', '0 0 0', antilag, recoil, snd, chan, maxdamage, deathtype) |
Definition at line 33 of file tracing.qh.
Referenced by CheatCommand(), W_Nexball_Attack(), and W_Nexball_Attack2().
#define W_SetupShot_Dir | ( | ent, | |
wepent, | |||
s_forward, | |||
antilag, | |||
recoil, | |||
snd, | |||
chan, | |||
maxdamage, | |||
deathtype | |||
) | W_SetupShot_Dir_ProjectileSize(ent, wepent, s_forward, '0 0 0', '0 0 0', antilag, recoil, snd, chan, maxdamage, deathtype) |
Definition at line 31 of file tracing.qh.
#define W_SetupShot_Dir_ProjectileSize | ( | ent, | |
wepent, | |||
s_forward, | |||
mi, | |||
ma, | |||
antilag, | |||
recoil, | |||
snd, | |||
chan, | |||
maxdamage, | |||
deathtype | |||
) | W_SetupShot_Dir_ProjectileSize_Range(ent, wepent, s_forward, mi, ma, antilag, recoil, snd, chan, maxdamage, max_shot_distance, deathtype) |
Definition at line 27 of file tracing.qh.
#define W_SetupShot_ProjectileSize | ( | ent, | |
wepent, | |||
mi, | |||
ma, | |||
antilag, | |||
recoil, | |||
snd, | |||
chan, | |||
maxdamage, | |||
deathtype | |||
) | W_SetupShot_Dir_ProjectileSize(ent, wepent, v_forward, mi, ma, antilag, recoil, snd, chan, maxdamage, deathtype) |
Definition at line 29 of file tracing.qh.
Referenced by FireGrapplingHook().
#define W_SetupShot_Range | ( | ent, | |
wepent, | |||
antilag, | |||
recoil, | |||
snd, | |||
chan, | |||
maxdamage, | |||
range, | |||
deathtype | |||
) | W_SetupShot_Dir_ProjectileSize_Range(ent, wepent, v_forward, '0 0 0', '0 0 0', antilag, recoil, snd, chan, maxdamage, range, deathtype) |
Definition at line 35 of file tracing.qh.
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().
STATIC_INIT | ( | g_railgunhit | ) |
STATIC_INIT | ( | g_ctrace_changed | ) |
void traceline_antilag | ( | entity | source, |
vector | v1, | ||
vector | v2, | ||
float | nomonst, | ||
entity | forent, | ||
float | lag | ||
) |
Definition at line 203 of file antilag.qc.
References autocvar_g_antilag, CS_CVAR, IS_CLIENT, and traceline_antilag_force().
Referenced by crosshair_trace().
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().
void WarpZone_traceline_antilag | ( | entity | source, |
vector | v1, | ||
vector | v2, | ||
float | nomonst, | ||
entity | forent, | ||
float | lag | ||
) |
Definition at line 221 of file antilag.qc.
References autocvar_g_antilag, CS_CVAR, IS_CLIENT, and WarpZone_traceline_antilag_force().
Referenced by FireRailgunBullet(), W_SetupShot_Dir_ProjectileSize_Range(), and WarpZone_crosshair_trace().
float autocvar_g_ballistics_density_corpse |
Definition at line 6 of file tracing.qh.
Referenced by PlayerDamage().
float autocvar_g_ballistics_density_player |
Definition at line 7 of file tracing.qh.
Referenced by PutPlayerInServer().
float autocvar_g_ballistics_mindistance |
Definition at line 8 of file tracing.qh.
Referenced by fireBullet_antilag().
Definition at line 9 of file tracing.qh.
Referenced by fireBullet_antilag().
float autocvar_g_ballistics_solidpenetration_exponent = 1 |
Definition at line 10 of file tracing.qh.
Referenced by fireBullet_antilag().
bool autocvar_g_norecoil |
Definition at line 15 of file tracing.qh.
Referenced by spawnfunc(), and W_SetupShot_Dir_ProjectileSize_Range().
int autocvar_g_projectiles_newton_style |
Definition at line 11 of file tracing.qh.
Referenced by W_CalculateProjectileVelocity().
float autocvar_g_projectiles_newton_style_2_maxfactor |
Definition at line 12 of file tracing.qh.
Referenced by W_CalculateProjectileVelocity().
float autocvar_g_projectiles_newton_style_2_minfactor |
Definition at line 13 of file tracing.qh.
Referenced by W_CalculateProjectileVelocity().
int autocvar_g_projectiles_spread_style |
Definition at line 14 of file tracing.qh.
Referenced by W_SetupProjVelocity_Explicit().
float autocvar_g_trueaim_minrange |
Definition at line 16 of file tracing.qh.
Referenced by ClientInit_misc(), and W_SetupShot_Dir_ProjectileSize_Range().
float ballistics_density |
Definition at line 77 of file tracing.qh.
entity fireBullet_last_hit |
Definition at line 92 of file tracing.qh.
Referenced by fireBullet_antilag(), and fireBullet_trace_callback().
entity fireBullet_trace_callback_eff |
Definition at line 91 of file tracing.qh.
Referenced by fireBullet_antilag(), and fireBullet_trace_callback().
IntrusiveList g_ctrace_changed |
Definition at line 109 of file tracing.qh.
Referenced by crosshair_trace_plusvisibletriggers__is_wz().
IntrusiveList g_railgunhit |
Definition at line 84 of file tracing.qh.
Referenced by FireRailgunBullet().
float railgundistance |
Definition at line 87 of file tracing.qh.
vector railgunforce |
Definition at line 88 of file tracing.qh.
bool railgunhit |
Definition at line 80 of file tracing.qh.
vector railgunhitloc |
Definition at line 82 of file tracing.qh.
float railgunhitsolidbackup |
Definition at line 81 of file tracing.qh.
vector w_shotdir |
Definition at line 19 of file tracing.qh.
Referenced by CheatCommand(), FireGrapplingHook(), W_Nexball_Attack(), and W_SetupShot_Dir_ProjectileSize_Range().
vector w_shotend |
Definition at line 20 of file tracing.qh.
Referenced by W_SetupShot_Dir_ProjectileSize_Range().
vector w_shotorg |
Definition at line 18 of file tracing.qh.
Referenced by CheatCommand(), FireGrapplingHook(), TrueAimCheck(), W_Nexball_Attack(), W_Nexball_Attack2(), and W_SetupShot_Dir_ProjectileSize_Range().