|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
#include <lib/warpzone/common.qh>Go to the source code of this file.
Macros | |
| #define | ANTILAG_LATENCY(e) |
| #define | traceline_antilag_force(source, v1, v2, nomonsters, forent, lag) |
| #define | WarpZone_traceline_antilag_force(source, v1, v2, nomonsters, forent, lag) |
Functions | |
| void | antilag_clear (entity e, entity store) |
| float | antilag_getlag (entity e) |
| void | antilag_record (entity e, entity store, float t) |
| void | antilag_restore (entity e, entity store) |
| void | antilag_restore_all (entity ignore) |
| void | antilag_takeback (entity e, entity store, float t) |
| void | antilag_takeback_all (entity ignore, float lag) |
| vector | antilag_takebackorigin (entity e, entity store, float t) |
| void | tracebox_antilag (entity source, vector v1, vector mi, vector ma, vector v2, float nomonsters, entity forent, float lag) |
| void | tracebox_antilag_force_wz (entity source, vector v1, vector mi, vector ma, vector v2, float nomonsters, entity forent, float lag, bool wz, WarpZone_trace_callback_t cb) |
| A version of traceline that must be used by SOLID_SLIDEBOX things that want to hit SOLID_CORPSE things with a trace attack Additionally it moves players back into the past before the trace and restores them afterward. | |
| void | traceline_antilag (entity source, vector v1, vector v2, float nomonsters, entity forent, float lag) |
| void | WarpZone_tracebox_antilag (entity source, vector v1, vector mi, vector ma, vector v2, float nomonsters, entity forent, float lag) |
| void | WarpZone_traceline_antilag (entity source, vector v1, vector v2, float nomonsters, entity forent, float lag) |
Variables | |
| float | antilag_debug |
| int | autocvar_g_antilag |
| float | autocvar_g_antilag_nudge |
| #define ANTILAG_LATENCY | ( | e | ) |
Definition at line 21 of file antilag.qh.
Referenced by anticheat_fixangle(), antilag_getlag(), crosshair_trace(), FireImoBeam(), FireRailgunBullet(), RadiusDamageForSource(), W_Arc_Beam_Think(), W_HitPlotAnalysis(), W_SetupShot_Dir_ProjectileSize_Range(), W_Shotgun_Melee_Think(), and WarpZone_crosshair_trace().
| #define traceline_antilag_force | ( | source, | |
| v1, | |||
| v2, | |||
| nomonsters, | |||
| forent, | |||
| lag ) |
Definition at line 31 of file antilag.qh.
Referenced by traceline_antilag(), W_HitPlotAnalysis(), and W_SetupShot_Dir_ProjectileSize_Range().
| #define WarpZone_traceline_antilag_force | ( | source, | |
| v1, | |||
| v2, | |||
| nomonsters, | |||
| forent, | |||
| lag ) |
Definition at line 33 of file antilag.qh.
Referenced by WarpZone_traceline_antilag().
Definition at line 113 of file antilag.qc.
References ANTILAG_MAX_ORIGINS, antilag_restore(), and entity().
Referenced by bumblebee_exit(), PutPlayerInServer(), racer_exit(), raptor_exit(), spiderbot_exit(), vehicles_damage(), and vehicles_enter().
Definition at line 150 of file antilag.qc.
References ANTILAG_LATENCY, autocvar_g_antilag, CS_CVAR, entity(), IS_CLIENT, and IS_REAL_CLIENT.
Referenced by fireBullet_falloff(), and W_Shotgun_Attack().
Definition at line 20 of file antilag.qc.
References ANTILAG_MAX_ORIGINS, antilag_record(), antilag_takebackorigin(), entity(), time, and VHF_PLAYERSLOT.
Referenced by antilag_record(), and EndFrame().
Definition at line 100 of file antilag.qc.
References antilag_restore(), entity(), and VHF_PLAYERSLOT.
Referenced by antilag_clear(), antilag_restore(), antilag_restore_all(), and W_HitPlotAnalysis().
Definition at line 137 of file antilag.qc.
References antilag_restore(), CS(), entity(), FOREACH_CLIENT, g_monsters, g_projectiles, IL_EACH, and IS_PLAYER.
Referenced by fireBullet_falloff(), tracebox_antilag_force_wz(), and W_Shotgun_Attack().
Definition at line 85 of file antilag.qc.
References antilag_takeback(), antilag_takebackorigin(), entity(), org, vector, and VHF_PLAYERSLOT.
Referenced by antilag_takeback(), antilag_takeback_all(), and W_HitPlotAnalysis().
Definition at line 124 of file antilag.qc.
References antilag_takeback(), CS(), entity(), FOREACH_CLIENT, g_monsters, g_projectiles, IL_EACH, IS_PLAYER, and time.
Referenced by fireBullet_falloff(), tracebox_antilag_force_wz(), and W_Shotgun_Attack().
Definition at line 59 of file antilag.qc.
References antilag_find(), ANTILAG_MAX_ORIGINS, entity(), lerpv(), and vector.
Referenced by antilag_record(), antilag_takeback(), and antilag_takebackavgvelocity().
| void tracebox_antilag | ( | entity | source, |
| vector | v1, | ||
| vector | mi, | ||
| vector | ma, | ||
| vector | v2, | ||
| float | nomonsters, | ||
| entity | forent, | ||
| float | lag ) |
Definition at line 216 of file antilag.qc.
References autocvar_g_antilag, CS_CVAR, entity(), func_null(), IS_CLIENT, tracebox_antilag_force_wz(), and vector.
Referenced by RadiusDamageForSource(), and W_SetupShot_Dir_ProjectileSize_Range().
| void tracebox_antilag_force_wz | ( | entity | source, |
| vector | v1, | ||
| vector | mi, | ||
| vector | ma, | ||
| vector | v2, | ||
| float | nomonsters, | ||
| entity | forent, | ||
| float | lag, | ||
| bool | wz, | ||
| WarpZone_trace_callback_t | cb ) |
A version of traceline that must be used by SOLID_SLIDEBOX things that want to hit SOLID_CORPSE things with a trace attack Additionally it moves players back into the past before the trace and restores them afterward.
Definition at line 168 of file antilag.qc.
References antilag_restore_all(), antilag_takeback_all(), DPCONTENTS_BODY, DPCONTENTS_CORPSE, DPCONTENTS_SOLID, entity(), IS_REAL_CLIENT, NULL, trace_endpos, vector, and WarpZone_TraceBox_ThroughZone().
Referenced by FireRailgunBullet(), tracebox_antilag(), and WarpZone_tracebox_antilag().
| void traceline_antilag | ( | entity | source, |
| vector | v1, | ||
| vector | v2, | ||
| float | nomonsters, | ||
| entity | forent, | ||
| float | lag ) |
Definition at line 203 of file antilag.qc.
| void WarpZone_tracebox_antilag | ( | entity | source, |
| vector | v1, | ||
| vector | mi, | ||
| vector | ma, | ||
| vector | v2, | ||
| float | nomonsters, | ||
| entity | forent, | ||
| float | lag ) |
Definition at line 222 of file antilag.qc.
References autocvar_g_antilag, CS_CVAR, entity(), func_null(), IS_CLIENT, tracebox_antilag_force_wz(), and vector.
Referenced by FireImoBeam().
| void WarpZone_traceline_antilag | ( | entity | source, |
| vector | v1, | ||
| vector | v2, | ||
| float | nomonsters, | ||
| entity | forent, | ||
| float | lag ) |
Definition at line 209 of file antilag.qc.
References autocvar_g_antilag, CS_CVAR, entity(), IS_CLIENT, vector, and WarpZone_traceline_antilag_force.
Referenced by W_Arc_Beam_Think(), W_SetupShot_Dir_ProjectileSize_Range(), W_Shotgun_Melee_Think(), and WarpZone_crosshair_trace().
| float antilag_debug |
Definition at line 19 of file antilag.qh.
| int autocvar_g_antilag |
Definition at line 5 of file antilag.qh.
Referenced by antilag_getlag(), FixClientCvars(), tracebox_antilag(), traceline_antilag(), W_SetupShot_Dir_ProjectileSize_Range(), WarpZone_tracebox_antilag(), and WarpZone_traceline_antilag().
| float autocvar_g_antilag_nudge |
Definition at line 6 of file antilag.qh.
Referenced by EndFrame().