Xonotic
|
#include "common.qh"
Go to the source code of this file.
Definition at line 23 of file common.qc.
References WarpZone_Accumulator_AddTransform().
Referenced by WarpZone_RefSys_AddIncrementally(), and WarpZone_Trace_AddTransform().
Definition at line 35 of file common.qc.
References WarpZone_Accumulator_AddInverseTransform().
Definition at line 27 of file common.qc.
References AnglesTransform_Invert(), AnglesTransform_PrePostShift_GetPostShift(), vector(), and WarpZone_Accumulator_AddTransform().
Referenced by WarpZone_Accumulator_AddInverse(), WarpZone_RefSys_AddIncrementally(), and WarpZone_RefSys_AddInverseTransform().
Definition at line 15 of file common.qc.
References AnglesTransform_Multiply(), AnglesTransform_Multiply_GetPostShift(), and vector().
Referenced by WarpZone_Accumulator_Add(), WarpZone_Accumulator_AddInverseTransform(), and WarpZone_RefSys_AddTransform().
Definition at line 10 of file common.qc.
Referenced by WarpZone_RefSys_CheckCreate(), and WarpZone_Trace_InitTransform().
Definition at line 82 of file common.qc.
References makevectors, maxs, mins, origin, trace_endpos, vdist, warpzone_angles, warpzone_fadeend, warpzone_fadestart, and warpzone_origin.
Referenced by WarpZone_Camera_SetUp().
Definition at line 95 of file common.qc.
References setcamera_transform, and WarpZone_Camera_camera_transform().
Referenced by NET_HANDLE(), and WarpZone_Projectile_Touch().
Definition at line 41 of file common.qc.
References autocvar_cl_warpzone_usetrace, maxs, mins, MOVE_NOMONSTERS, NULL, origin, trace_endpos, v_forward, v_right, v_up, vdist, vector(), warpzone_fadeend, warpzone_fadestart, warpzone_targetorigin, WarpZone_TransformOrigin(), and WarpZone_TransformVelocity().
Referenced by WarpZone_SetUp().
Definition at line 157 of file common.qc.
References g_warpzones, IL_EACH, NULL, warpzone_warpzones_exist, and WarpZoneLib_BoxTouchesBrush().
Referenced by WarpZone_FixNearClip(), WarpZone_FixPMove(), WarpZone_FixView(), WarpZone_Projectile_Touch(), WarpZone_Touch(), WarpZone_TraceBox_ThroughZone(), and WarpZone_TraceToss_ThroughZone().
Definition at line 669 of file common.qc.
References chain, entity(), findchainfloat(), FOREACH_LIST, WarpZone_findradius_hit, and WarpZone_FindRadius_Recurse().
Referenced by MUTATOR_HOOKFUNCTION(), PlayerUseKey(), and RadiusDamageForSource().
void WarpZone_FindRadius_Recurse | ( | vector | org, |
float | rad, | ||
vector | org0, | ||
vector | transform, | ||
vector | shift, | ||
bool | needlineofsight | ||
) |
org | blast origin of current search |
org0 | original blast origin |
transform | how to untransform (victim to blast system) |
Definition at line 603 of file common.qc.
References AnglesTransform_Multiply(), AnglesTransform_Multiply_GetPostShift(), bound(), entity(), MOVE_NOMONSTERS, NULL, trace_endpos, trace_fraction, vector(), vlen(), vlen2, WarpZone_TransformOrigin(), WarpZoneLib_BadEntity(), and WarpZoneLib_NearestPointOnBox().
Referenced by WarpZone_FindRadius().
void WarpZone_MakeAllOther | ( | ) |
Definition at line 179 of file common.qc.
References g_warpzones, IL_EACH, SOLID_TRIGGER, and warpzone_warpzones_exist.
Referenced by WarpZone_TraceBox_ThroughZone(), and WarpZone_TraceToss_ThroughZone().
void WarpZone_MakeAllSolid | ( | ) |
Definition at line 169 of file common.qc.
References g_warpzones, IL_EACH, SOLID_BSP, and warpzone_warpzones_exist.
Referenced by WarpZone_TraceBox_ThroughZone(), and WarpZone_TraceToss_ThroughZone().
Definition at line 489 of file common.qc.
Referenced by WarpZone_FixNearClip(), WarpZone_Projectile_Touch(), and WarpZone_Touch().
Definition at line 714 of file common.qc.
References WarpZone_RefSys_AddTransform().
Referenced by WarpZone_Teleport().
Definition at line 732 of file common.qc.
References WarpZone_Accumulator_Add(), and WarpZone_Accumulator_AddInverseTransform().
Referenced by GrapplingHookThink().
Definition at line 726 of file common.qc.
References WarpZone_RefSys_AddInverseTransform().
Referenced by ctf_Handle_Throw(), and Monster_Enemy_Check().
Definition at line 718 of file common.qc.
References WarpZone_Accumulator_AddInverseTransform(), and WarpZone_RefSys_CheckCreate().
Referenced by WarpZone_RefSys_AddInverse().
Definition at line 706 of file common.qc.
References WarpZone_Accumulator_AddTransform(), and WarpZone_RefSys_CheckCreate().
Referenced by WarpZone_RefSys_Add().
Definition at line 743 of file common.qc.
Referenced by GrapplingHookTouch().
Definition at line 687 of file common.qc.
References setthink, time, WarpZone_Accumulator_Clear(), and WarpZone_RefSys_GC().
Referenced by WarpZone_RefSys_AddInverseTransform(), WarpZone_RefSys_AddTransform(), and WarpZone_RefSys_Copy().
Definition at line 698 of file common.qc.
References NULL.
Referenced by WarpZone_RefSys_Copy().
Definition at line 780 of file common.qc.
References WarpZone_RefSys_CheckCreate(), and WarpZone_RefSys_Clear().
Referenced by ctf_Handle_Throw(), Monster_Enemy_Check(), and WarpZone_RefSys_SpawnSameRefSys().
Definition at line 791 of file common.qc.
References entity(), spawn(), and WarpZone_RefSys_Copy().
Referenced by FireGrapplingHook().
Definition at line 764 of file common.qc.
References WarpZone_TransformAngles(), and WarpZone_UnTransformAngles().
Definition at line 748 of file common.qc.
References WarpZone_TransformOrigin(), and WarpZone_UnTransformOrigin().
Referenced by ctf_FlagThink(), ctf_Handle_Throw(), GrapplingHookThink(), Monster_Enemy_Check(), and Monster_Move_Target().
Definition at line 772 of file common.qc.
References WarpZone_TransformVAngles(), and WarpZone_UnTransformVAngles().
Definition at line 756 of file common.qc.
References WarpZone_TransformVelocity(), and WarpZone_UnTransformVelocity().
Referenced by GrapplingHookThink().
Definition at line 66 of file common.qc.
References AnglesTransform_PrePostShift_GetPostShift(), AnglesTransform_RightDivide(), AnglesTransform_TurnDirectionFR(), FIXED_MAKE_VECTORS, setcamera_transform, vector(), and WarpZone_camera_transform().
Referenced by NET_HANDLE(), and WarpZone_Projectile_Touch().
Definition at line 494 of file common.qc.
Referenced by WarpZone_Teleport().
Definition at line 197 of file common.qc.
References WarpZone_Accumulator_Add(), and WarpZone_trace_transform.
Referenced by WarpZone_TraceBox_ThroughZone(), and WarpZone_TraceToss_ThroughZone().
void WarpZone_Trace_InitTransform | ( | ) |
Definition at line 189 of file common.qc.
References new_pure, WarpZone_Accumulator_Clear(), and WarpZone_trace_transform.
Referenced by WarpZone_TraceBox_ThroughZone(), and WarpZone_TraceToss_ThroughZone().
void WarpZone_TraceBox | ( | vector | org, |
vector | mi, | ||
vector | ma, | ||
vector | end, | ||
float | nomonsters, | ||
entity | forent | ||
) |
Definition at line 333 of file common.qc.
References NULL, WarpZone_trace_callback_t_null, and WarpZone_TraceBox_ThroughZone().
Referenced by CommonCommand_editmob(), tracebox_antilag_force_wz(), View_EventChase(), and WarpZone_TraceLine().
void WarpZone_TraceBox_ThroughZone | ( | vector | org, |
vector | mi, | ||
vector | ma, | ||
vector | end, | ||
float | nomonsters, | ||
entity | forent, | ||
entity | zone, | ||
WarpZone_trace_callback_t | cb | ||
) |
Definition at line 202 of file common.qc.
References BITCLR_ASSIGN, BITSET_ASSIGN, DPCONTENTS_SOLID, entity(), LABEL, LOG_TRACE, MOVE_NOMONSTERS, MOVE_NOTHING, MOVE_WORLDONLY, normalize(), NULL, trace_dphitcontents, trace_endpos, trace_ent, trace_fraction, trace_startsolid, v_forward, v_right, v_up, vector(), WarpZone_Find(), WarpZone_MakeAllOther(), WarpZone_MakeAllSolid(), WarpZone_Trace_AddTransform(), WarpZone_trace_firstzone, WarpZone_trace_forent, WarpZone_Trace_InitTransform(), WarpZone_trace_lastzone, WarpZone_TransformOrigin(), and warpzone_warpzones_exist.
Referenced by fireBullet_antilag(), WarpZone_TraceBox(), and WarpZone_TrailParticles().
Definition at line 338 of file common.qc.
References WarpZone_TraceBox().
Referenced by CommonCommand_editmob(), ctf_CalculatePassVelocity(), ctf_FlagThink(), HUD_Crosshair(), Monster_CalculateVelocity(), Monster_Move_Target(), RadiusDamageForSource(), sandbox_ObjectSpawn(), View_EventChase(), and W_SetupShot_Dir_ProjectileSize_Range().
Definition at line 452 of file common.qc.
References NULL, WarpZone_trace_callback_t_null, and WarpZone_TraceToss_ThroughZone().
void WarpZone_TraceToss_ThroughZone | ( | entity | e, |
entity | forent, | ||
entity | zone, | ||
WarpZone_trace_callback_t | cb | ||
) |
Definition at line 343 of file common.qc.
References cvar(), entity(), LABEL, LOG_TRACE, NULL, setorigin(), trace_endpos, trace_ent, trace_fraction, v_forward, v_right, v_up, vector(), vlen(), WarpZone_Find(), WarpZone_MakeAllOther(), WarpZone_MakeAllSolid(), WarpZone_Trace_AddTransform(), WarpZone_trace_firstzone, WarpZone_trace_forent, WarpZone_Trace_InitTransform(), WarpZone_trace_lastzone, WarpZone_tracetoss_time, WarpZone_tracetoss_velocity, WarpZone_TransformOrigin(), WarpZone_TransformVelocity(), and warpzone_warpzones_exist.
Referenced by WarpZone_TraceToss().
Definition at line 464 of file common.qc.
References entity(), MOVE_NOMONSTERS, NULL, PARTICLES_DRAWASTRAIL, to, vector(), WarpZone_TraceBox_ThroughZone(), WarpZone_TrailParticles_trace_callback(), WarpZone_TrailParticles_trace_callback_eff, and WarpZone_TrailParticles_trace_callback_own.
Referenced by ctf_Handle_Throw().
Definition at line 459 of file common.qc.
References WarpZone_TrailParticles_trace_callback_eff, and WarpZone_TrailParticles_trace_callback_own.
Referenced by WarpZone_TrailParticles().
Definition at line 509 of file common.qc.
References AnglesTransform_ApplyToAngles().
Referenced by WarpZone_RefSys_TransformAngles(), and WarpZone_Teleport().
Definition at line 499 of file common.qc.
References AnglesTransform_Apply().
Referenced by fireBullet_antilag(), RadiusDamageForSource(), WarpZone_camera_transform(), WarpZone_FindRadius_Recurse(), WarpZone_FixPMove(), WarpZone_FixView(), WarpZone_RefSys_TransformOrigin(), WarpZone_Teleport(), WarpZone_TraceBox_ThroughZone(), and WarpZone_TraceToss_ThroughZone().
Definition at line 514 of file common.qc.
References AnglesTransform_ApplyToVAngles(), AnglesTransform_CancelRoll(), and AnglesTransform_Normalize().
Referenced by NET_HANDLE(), View_EventChase(), WarpZone_FixPMove(), WarpZone_FixView(), WarpZone_Projectile_Touch(), WarpZone_RefSys_TransformVAngles(), and WarpZone_Teleport().
Definition at line 504 of file common.qc.
References AnglesTransform_Apply().
Referenced by fireBullet_antilag(), FireRailgunBullet(), WarpZone_camera_transform(), WarpZone_RefSys_TransformVelocity(), WarpZone_Teleport(), and WarpZone_TraceToss_ThroughZone().
Definition at line 545 of file common.qc.
References AnglesTransform_ApplyToAngles(), and AnglesTransform_Invert().
Referenced by WarpZone_RefSys_TransformAngles().
Definition at line 535 of file common.qc.
References AnglesTransform_Apply(), and AnglesTransform_Invert().
Referenced by FireRailgunBullet(), MUTATOR_HOOKFUNCTION(), RadiusDamageForSource(), W_SetupShot_Dir_ProjectileSize_Range(), and WarpZone_RefSys_TransformOrigin().
Definition at line 550 of file common.qc.
References AnglesTransform_ApplyToVAngles(), AnglesTransform_CancelRoll(), AnglesTransform_Invert(), and AnglesTransform_Normalize().
Referenced by WarpZone_RefSys_TransformVAngles().
Definition at line 540 of file common.qc.
References AnglesTransform_Apply(), and AnglesTransform_Invert().
Referenced by WarpZone_RefSys_TransformVelocity().
Definition at line 575 of file common.qc.
References is_pure, and startsWith.
Referenced by WarpZone_FindRadius_Recurse().
Definition at line 138 of file common.qc.
References SOLID_BSP, WarpZoneLib_BoxTouchesBrush_ent, WarpZoneLib_BoxTouchesBrush_ignore, WarpZoneLib_BoxTouchesBrush_maxs, WarpZoneLib_BoxTouchesBrush_mins, and WarpZoneLib_BoxTouchesBrush_Recurse().
Referenced by conveyor_think(), func_ladder_think(), havocbot_moveto(), Teleport_Find(), WarpZone_Find(), and WarpZoneLib_ExactTrigger_Touch().
float WarpZoneLib_BoxTouchesBrush_Recurse | ( | ) |
Definition at line 108 of file common.qc.
References entity(), LOG_TRACE, MOVE_NOMONSTERS, SOLID_NOT, trace_ent, trace_networkentity, WarpZoneLib_BoxTouchesBrush_ent, WarpZoneLib_BoxTouchesBrush_ignore, WarpZoneLib_BoxTouchesBrush_maxs, and WarpZoneLib_BoxTouchesBrush_mins.
Referenced by WarpZoneLib_BoxTouchesBrush().
Definition at line 798 of file common.qc.
References vector(), and WarpZoneLib_BoxTouchesBrush().
Referenced by WarpZone_Projectile_Touch(), and WarpZone_Touch().
Definition at line 826 of file common.qc.
References eX, eY, eZ, MOVE_WORLDONLY, setorigin(), trace_startsolid, vector(), and WarpZoneLib_MoveOutOfSolid_Expand().
Referenced by WarpZone_Teleport().
Definition at line 812 of file common.qc.
References MOVE_WORLDONLY, setorigin(), trace_fraction, and trace_startsolid.
Referenced by WarpZoneLib_MoveOutOfSolid().
Definition at line 565 of file common.qc.
References bound(), and vector().
Referenced by WarpZone_FindRadius_Recurse().
float autocvar_cl_warpzone_usetrace = 1 |
Definition at line 40 of file common.qc.
Referenced by WarpZone_camera_transform().
float WarpZone_findradius_hit |
Definition at line 601 of file common.qc.
Referenced by WarpZone_FindRadius().
float WarpZone_TrailParticles_trace_callback_eff |
Definition at line 458 of file common.qc.
Referenced by WarpZone_TrailParticles(), and WarpZone_TrailParticles_trace_callback().
entity WarpZone_TrailParticles_trace_callback_own |
Definition at line 457 of file common.qc.
Referenced by WarpZone_TrailParticles(), and WarpZone_TrailParticles_trace_callback().
entity WarpZoneLib_BoxTouchesBrush_ent |
Definition at line 106 of file common.qc.
Referenced by WarpZoneLib_BoxTouchesBrush(), and WarpZoneLib_BoxTouchesBrush_Recurse().
entity WarpZoneLib_BoxTouchesBrush_ignore |
Definition at line 107 of file common.qc.
Referenced by WarpZoneLib_BoxTouchesBrush(), and WarpZoneLib_BoxTouchesBrush_Recurse().
vector WarpZoneLib_BoxTouchesBrush_maxs |
Definition at line 105 of file common.qc.
Referenced by WarpZoneLib_BoxTouchesBrush(), and WarpZoneLib_BoxTouchesBrush_Recurse().
vector WarpZoneLib_BoxTouchesBrush_mins |
Definition at line 104 of file common.qc.
Referenced by WarpZoneLib_BoxTouchesBrush(), and WarpZoneLib_BoxTouchesBrush_Recurse().