Xonotic
|
Go to the source code of this file.
Macros | |
#define | BITCLR(a, b) ((a) - ((a) & (b))) |
#define | BITCLR_ASSIGN(a, b) ((a) = (a) - ((a) & (b))) |
#define | BITSET(a, b) ((a) | (b)) |
#define | BITSET_ASSIGN(a, b) ((a) |= (b)) |
#define | BITXOR(a, b) (((a) | (b)) - ((a) & (b))) |
#define | BITXOR_ASSIGN(a, b) ((a) = ((a) | (b)) - ((a) & (b))) |
#define | EXACTTRIGGER_INIT WarpZoneLib_ExactTrigger_Init(this) |
#define | EXACTTRIGGER_TOUCH(e, t) if(WarpZoneLib_ExactTrigger_Touch((e), (t))) return |
#define | MOVE_NOTHING -1 |
#define | move_out_of_solid(e) WarpZoneLib_MoveOutOfSolid(e) |
Typedefs | |
using | WarpZone_trace_callback_t = void(vector start, vector hit, vector end) |
#define BITCLR_ASSIGN | ( | a, | |
b | |||
) | ((a) = (a) - ((a) & (b))) |
Definition at line 101 of file common.qh.
Referenced by WarpZone_TeleportPlayer(), and WarpZone_TraceBox_ThroughZone().
#define BITSET_ASSIGN | ( | a, | |
b | |||
) | ((a) |= (b)) |
Definition at line 104 of file common.qh.
Referenced by ctf_DelayedInit(), DelayThink(), trigger_push_findtarget(), WarpZone_Projectile_Touch(), WarpZone_Touch(), and WarpZone_TraceBox_ThroughZone().
#define BITXOR_ASSIGN | ( | a, | |
b | |||
) | ((a) = ((a) | (b)) - ((a) & (b))) |
Definition at line 107 of file common.qh.
Referenced by anim_set(), animdecide_setframes(), CheatCommand(), TeleportPlayer(), and WarpZone_TeleportPlayer().
#define EXACTTRIGGER_INIT WarpZoneLib_ExactTrigger_Init(this) |
Definition at line 117 of file common.qh.
Referenced by conveyor_think(), DelayThink(), spawnfunc(), SpawnGoal(), target_checkpoint_setup(), Teleport_Touch(), and trigger_keylock_touch().
#define EXACTTRIGGER_TOUCH | ( | e, | |
t | |||
) | if(WarpZoneLib_ExactTrigger_Touch((e), (t))) return |
Definition at line 116 of file common.qh.
Referenced by checkpoint_touch(), GoalTouch(), penalty_touch(), target_items_use(), Teleport_Touch(), trigger_impulse_touch_accel(), trigger_impulse_touch_directional(), trigger_impulse_touch_radial(), and trigger_push_touch().
#define MOVE_NOTHING -1 |
Definition at line 33 of file common.qh.
Referenced by WarpZone_TraceBox_ThroughZone().
#define move_out_of_solid | ( | e | ) | WarpZoneLib_MoveOutOfSolid(e) |
Definition at line 110 of file common.qh.
Referenced by CheatCommand(), Portal_FindSafeOrigin(), relocate_nexball(), relocate_spawnpoint(), and waypoint_spawn().
using WarpZone_trace_callback_t = void(vector start, vector hit, vector end) |
STATIC_INIT | ( | g_warpzones | ) |
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 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().
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 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().
void WarpZone_TraceBox | ( | vector | org, |
vector | min, | ||
vector | max, | ||
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 | min, | ||
vector | max, | ||
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 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 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().
Definition at line 12 of file util_server.qc.
References angles, maxs, mins, model, movedir, MOVETYPE_NONE, origin, scale, set_movetype(), setorigin(), solid, SOLID_TRIGGER, vector(), and warpzone_isboxy.
Referenced by WarpZone_Projectile_Touch().
Definition at line 798 of file common.qc.
Definition at line 826 of file common.qc.
Definition at line 565 of file common.qc.
References bound(), and vector().
Referenced by WarpZone_FindRadius_Recurse().
IntrusiveList g_warpzones |
Definition at line 6 of file common.qh.
Referenced by NET_HANDLE(), WarpZone_Find(), WarpZone_MakeAllOther(), WarpZone_MakeAllSolid(), and WarpZone_Projectile_Touch().
vector warpzone_angles |
Definition at line 15 of file common.qh.
Referenced by WarpZone_Camera_camera_transform(), WarpZone_Projectile_Touch(), and WarpZone_Touch().
float warpzone_cameras_exist |
Definition at line 10 of file common.qh.
Referenced by NET_HANDLE(), and WarpZone_Projectile_Touch().
float warpzone_fadeend |
Definition at line 22 of file common.qh.
Referenced by NET_HANDLE(), WarpZone_Camera_camera_transform(), WarpZone_camera_transform(), WarpZone_Fade_PreDraw(), and WarpZone_Touch().
float warpzone_fadestart |
Definition at line 21 of file common.qh.
Referenced by NET_HANDLE(), WarpZone_Camera_camera_transform(), WarpZone_camera_transform(), WarpZone_Fade_PreDraw(), and WarpZone_Touch().
float warpzone_isboxy |
Definition at line 12 of file common.qh.
Referenced by conveyor_think(), DelayThink(), NET_HANDLE(), WarpZone_Touch(), and WarpZoneLib_ExactTrigger_Init().
vector warpzone_origin |
Definition at line 14 of file common.qh.
Referenced by WarpZone_Camera_camera_transform(), WarpZone_Projectile_Touch(), and WarpZone_Touch().
vector warpzone_targetangles |
Definition at line 18 of file common.qh.
Referenced by WarpZone_Touch().
vector warpzone_targetorigin |
Definition at line 17 of file common.qh.
Referenced by WarpZone_camera_transform(), and WarpZone_Touch().
var WarpZone_trace_callback_t WarpZone_trace_callback_t_null |
Definition at line 36 of file common.qh.
Referenced by WarpZone_TraceBox(), and WarpZone_TraceToss().
entity WarpZone_trace_firstzone |
Definition at line 38 of file common.qh.
Referenced by FireRailgunBullet(), WarpZone_TraceBox_ThroughZone(), and WarpZone_TraceToss_ThroughZone().
entity WarpZone_trace_forent |
Definition at line 34 of file common.qh.
Referenced by fireBullet_antilag(), fireBullet_trace_callback(), WarpZone_TraceBox_ThroughZone(), and WarpZone_TraceToss_ThroughZone().
entity WarpZone_trace_lastzone |
Definition at line 39 of file common.qh.
Referenced by WarpZone_TraceBox_ThroughZone(), and WarpZone_TraceToss_ThroughZone().
entity WarpZone_trace_transform |
Definition at line 37 of file common.qh.
Referenced by fireBullet_antilag(), FireRailgunBullet(), View_EventChase(), W_SetupShot_Dir_ProjectileSize_Range(), WarpZone_Trace_AddTransform(), and WarpZone_Trace_InitTransform().
float WarpZone_tracetoss_time |
Definition at line 41 of file common.qh.
Referenced by WarpZone_TraceToss_ThroughZone().
vector WarpZone_tracetoss_velocity |
Definition at line 40 of file common.qh.
Referenced by WarpZone_TraceToss_ThroughZone().
vector warpzone_transform |
Definition at line 20 of file common.qh.
Referenced by NET_HANDLE().
float warpzone_warpzones_exist |
Definition at line 9 of file common.qh.
Referenced by Item_PreDraw(), NET_HANDLE(), WarpZone_Find(), WarpZone_MakeAllOther(), WarpZone_MakeAllSolid(), WarpZone_Projectile_Touch(), WarpZone_TraceBox_ThroughZone(), and WarpZone_TraceToss_ThroughZone().