|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
Go to the source code of this file.
Macros | |
| #define | BITCLR(a, b) |
| #define | BITCLR_ASSIGN(a, b) |
| #define | BITSET(a, b) |
| #define | BITSET_ASSIGN(a, b) |
| #define | BITXOR(a, b) |
| #define | BITXOR_ASSIGN(a, b) |
| #define | EXACTTRIGGER_INIT WarpZoneLib_ExactTrigger_Init(this, true) |
| #define | EXACTTRIGGER_TOUCH(e, t) |
| #define | MOVE_NOTHING -1 |
| #define | move_out_of_solid(e) |
| #define | WarpZone_FindRadius(org, radius) |
| Modified findradius aware of warpzones. | |
| #define | WarpZone_RefSys_Add(me, wz) |
| #define | WarpZone_RefSys_AddInverse(me, wz) |
| #define | WarpZone_TraceBox(org, mi, ma, end, nomonsters, forent) |
| #define | WarpZone_TraceLine(org, end, nomonsters, forent) |
| #define | WarpZone_TraceLine_ThroughZone(org, end, nomonsters, forent, zone, cb) |
| #define | WarpZone_TraceToss(e, forent) |
Typedefs | |
| using | WarpZone_FindRadius_cond_callback_t = bool(entity e) |
| using | WarpZone_trace_callback_t = void(vector start, vector hit, vector end) |
Functions | |
| STATIC_INIT (g_warpzones) | |
| var void | te_csqc_trace_callback_func (vector start, vector hit) |
| void | WarpZone_Camera_SetUp (entity e, vector my_org, vector my_ang) |
| entity | WarpZone_Find (vector mi, vector ma) |
| void | WarpZone_MakeAllOther () |
| void | WarpZone_MakeAllSolid () |
| float | WarpZone_PlaneDist (entity wz, vector v) |
| void | WarpZone_RefSys_AddIncrementally (entity me, entity ref) |
| void | WarpZone_RefSys_AddInverseTransform (entity me, vector t, vector s) |
| void | WarpZone_RefSys_AddTransform (entity me, vector t, vector s) |
| void | WarpZone_RefSys_BeginAddingIncrementally (entity me, entity ref) |
| void | WarpZone_RefSys_Clear (entity me) |
| void | WarpZone_RefSys_Copy (entity me, entity from) |
| Copies the warpzone reference of from onto me. | |
| entity | WarpZone_RefSys_SpawnSameRefSys (entity me) |
| Spawns an entity in the same warpzone reference as me, and sets up its reference. | |
| vector | WarpZone_RefSys_TransformAngles (entity from, entity to, vector ang) |
| Transform angle ang in from's reference into to's reference. | |
| vector | WarpZone_RefSys_TransformOrigin (entity from, entity to, vector org) |
| Transform origin org in from's reference into to's reference. | |
| vector | WarpZone_RefSys_TransformVAngles (entity from, entity to, vector ang) |
| Transform v_angle ang in from's reference into to's reference. | |
| vector | WarpZone_RefSys_TransformVelocity (entity from, entity to, vector vel) |
| Transform velocity vel in from's reference into to's reference. | |
| entity | WarpZone_SearchInRadius (vector org, float radius, float nomonsters, WarpZone_FindRadius_cond_callback_t cb) |
| Modified findradius aware of warpzones, that only includes entities that meet the "cb" criteria. | |
| void | WarpZone_SetUp (entity e, vector my_org, vector my_ang, vector other_org, vector other_ang) |
| float | WarpZone_TargetPlaneDist (entity wz, vector v) |
| void | WarpZone_TraceBox_ThroughZone (vector org, vector min, vector max, vector end, float nomonsters, entity forent, entity zone, WarpZone_trace_callback_t cb) |
| Traces a box from org to end, shifting & transforming each time it goes through a warpzone. | |
| void | WarpZone_TraceToss_ThroughZone (entity e, entity forent, entity zone, WarpZone_trace_callback_t cb) |
| Traces tossing e, shifting & transforming each time it goes through a warpzone. | |
| void | WarpZone_TrailParticles (entity own, float eff, vector org, vector end) |
| void | WarpZone_TrailParticles_WithMultiplier (entity own, float eff, vector org, vector end, float f, float boxflags) |
| vector | WarpZone_TransformAngles (entity wz, vector v) |
| Transforms angle v across warpzone wz. | |
| vector | WarpZone_TransformOrigin (entity wz, vector v) |
| Transforms origin org across warpzone wz. | |
| vector | WarpZone_TransformVAngles (entity wz, vector v) |
| Transforms v_angle ang across warpzone wz. | |
| vector | WarpZone_TransformVelocity (entity wz, vector v) |
| Transforms velocity v across warpzone wz. | |
| vector | WarpZone_UnTransformAngles (entity wz, vector v) |
| Transforms angle ang backwards through warpzone wz, as the inverse of WarpZone_TransformAngles. | |
| vector | WarpZone_UnTransformOrigin (entity wz, vector v) |
| Transforms origin org backwards through warpzone wz, as the inverse of WarpZone_TransformOrigin. | |
| vector | WarpZone_UnTransformVAngles (entity wz, vector v) |
| Transforms v_angle ang backwards through warpzone wz, as the inverse of WarpZone_TransformVAngles. | |
| vector | WarpZone_UnTransformVelocity (entity wz, vector v) |
| Transforms angle vel backwards through warpzone wz, as the inverse of WarpZone_TransformVelocity. | |
| float | WarpZoneLib_BoxTouchesBrush (vector mi, vector ma, entity e, entity ig) |
| bool | WarpZoneLib_ExactTrigger_Touch (entity this, entity toucher, bool touchfunc) |
| int | WarpZoneLib_MoveOutOfSolid (entity e) |
| #define BITCLR_ASSIGN | ( | a, | |
| b ) |
Definition at line 119 of file common.qh.
Referenced by WarpZone_TeleportPlayer(), and WarpZone_TraceBox_ThroughZone().
| #define BITSET_ASSIGN | ( | a, | |
| b ) |
Definition at line 122 of file common.qh.
Referenced by ctf_DelayedInit(), func_ladder_init(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), target_push_link(), trigger_common_write(), WarpZone_Camera_Send(), WarpZone_Send(), and WarpZone_TraceBox_ThroughZone().
| #define BITXOR_ASSIGN | ( | a, | |
| b ) |
Definition at line 125 of file common.qh.
Referenced by anim_set(), animdecide_setframes(), CheatCommand(), TeleportPlayer(), and WarpZone_TeleportPlayer().
| #define EXACTTRIGGER_INIT WarpZoneLib_ExactTrigger_Init(this, true) |
Definition at line 134 of file common.qh.
Referenced by spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), spawnfunc(), SpawnGoal(), and target_checkpoint_setup().
| #define EXACTTRIGGER_TOUCH | ( | e, | |
| t ) |
Definition at line 133 of file common.qh.
Referenced by checkpoint_touch(), GoalTouch(), multi_trigger(), penalty_touch(), target_items_use(), Teleport_Touch(), trigger_gravity_touch(), trigger_heal_touch(), trigger_hurt_touch(), trigger_impulse_touch_accel(), trigger_impulse_touch_directional(), trigger_impulse_touch_radial(), trigger_push_touch(), trigger_push_velocity_touch(), trigger_secret_touch(), and WarpZone_Touch().
| #define MOVE_NOTHING -1 |
Definition at line 35 of file common.qh.
Referenced by _WarpZone_FindRadius_Recurse(), Draw_GrapplingHook(), M_Golem_Attack_Lightning_Explode(), M_Mage_Defend_Heal(), M_Spider_Attack_Web_Explode(), M_Wyvern_Attack_Fireball_Explode(), MUTATOR_HOOKFUNCTION(), nade_darkness_think(), nade_ice_think(), PlayerFrame(), RadiusDamageForSource(), setItemGroup(), turret_tesla_toast(), VaporizerBeam_Draw(), W_Crylink_Touch_WouldHitFriendly(), W_Devastator_DoRemoteExplode(), W_Electro_TriggerCombo(), W_LaserPlay(), W_MineLayer_ProximityExplode(), W_MineLayer_RemoteExplode(), W_MineLayer_Think(), walker_melee_do_dmg(), WarpZone_SearchInRadius(), and WarpZone_TraceBox_ThroughZone().
| #define move_out_of_solid | ( | e | ) |
Definition at line 128 of file common.qh.
Referenced by CheatCommand(), nade_translocate_boom(), Portal_FindSafeOrigin(), relocate_nexball(), relocate_spawnpoint(), and waypoint_spawn().
Modified findradius aware of warpzones.
Definition at line 73 of file common.qh.
Referenced by StartItem().
| #define WarpZone_RefSys_Add | ( | me, | |
| wz ) |
Definition at line 88 of file common.qh.
Referenced by WarpZone_Teleport().
| #define WarpZone_RefSys_AddInverse | ( | me, | |
| wz ) |
Definition at line 90 of file common.qh.
Referenced by Monster_Enemy_Check(), and MUTATOR_HOOKFUNCTION().
| #define WarpZone_TraceBox | ( | org, | |
| mi, | |||
| ma, | |||
| end, | |||
| nomonsters, | |||
| forent ) |
Definition at line 49 of file common.qh.
Referenced by CommonCommand_editmob(), View_EventChase(), and W_OverkillRocketPropelledChainsaw_Think().
| #define WarpZone_TraceLine | ( | org, | |
| end, | |||
| nomonsters, | |||
| forent ) |
Definition at line 51 of file common.qh.
Referenced by CheatCommand(), CommonCommand_editmob(), ctf_CalculatePassVelocity(), ctf_FlagThink(), Draw_ArcBeam(), HUD_Crosshair(), Monster_Enemy_Check(), RadiusDamageForSource(), sandbox_ObjectSpawn(), View_EventChase(), W_Electro_TriggerCombo(), W_Fireball_Explode(), W_SeekOutEnemy(), and W_SetupShot_Dir_ProjectileSize_Range().
| #define WarpZone_TraceLine_ThroughZone | ( | org, | |
| end, | |||
| nomonsters, | |||
| forent, | |||
| zone, | |||
| cb ) |
Definition at line 47 of file common.qh.
Referenced by Draw_ArcBeam(), Draw_GrapplingHook(), fireBullet_falloff(), M_Golem_Attack_Lightning_Explode(), turret_tesla_toast(), VaporizerBeam_Draw(), W_LaserPlay(), WarpZone_TrailParticles(), and WarpZone_TrailParticles_WithMultiplier().
| #define WarpZone_TraceToss | ( | e, | |
| forent ) |
Definition at line 53 of file common.qh.
| using WarpZone_FindRadius_cond_callback_t = bool(entity e) |
| using WarpZone_trace_callback_t = void(vector start, vector hit, vector end) |
| STATIC_INIT | ( | g_warpzones | ) |
References vector.
Referenced by M_Golem_Attack_Lightning_Explode(), te_csqc_trace_callback(), and turret_tesla_toast().
Definition at line 85 of file common.qc.
References entity(), setcamera_transform, vector, and WarpZone_Camera_camera_transform().
Referenced by NET_HANDLE(), WarpZoneCamera_InitStep_FindTarget(), and WarpZoneCamera_Think().
Definition at line 152 of file common.qc.
References entity(), g_warpzones, IL_EACH, NULL, vector, warpzone_warpzones_exist, and WarpZoneLib_BoxTouchesBrush().
Referenced by WarpZone_FixNearClip(), WarpZone_FixPMove(), WarpZone_FixView(), WarpZone_StartFrame(), WarpZone_TraceBox_ThroughZone(), and WarpZone_TraceToss_ThroughZone().
| void WarpZone_MakeAllOther | ( | ) |
Definition at line 166 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 160 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 478 of file common.qc.
References entity(), and vector.
Referenced by WarpZone_FixNearClip(), WarpZone_StartFrame(), and WarpZone_Touch().
Definition at line 768 of file common.qc.
References entity(), WarpZone_Accumulator_Add, and WarpZone_Accumulator_AddInverseTransform().
Referenced by GrapplingHookThink().
Definition at line 759 of file common.qc.
References entity(), vector, WarpZone_Accumulator_AddInverseTransform(), and WarpZone_RefSys_CheckCreate().
Definition at line 752 of file common.qc.
References entity(), vector, WarpZone_Accumulator_AddTransform(), and WarpZone_RefSys_CheckCreate().
Definition at line 779 of file common.qc.
References entity().
Referenced by GrapplingHookTouch().
Definition at line 745 of file common.qc.
References entity(), and NULL.
Referenced by MUTATOR_HOOKFUNCTION(), and WarpZone_RefSys_Copy().
Copies the warpzone reference of from onto me.
In other words, makes it be "on the same side of the warpzones"
Definition at line 824 of file common.qc.
References entity(), WarpZone_RefSys_CheckCreate(), and WarpZone_RefSys_Clear().
Referenced by ctf_Handle_Throw(), FireGrapplingHook(), M_Mage_Attack_Spike(), Monster_Enemy_Check(), MUTATOR_HOOKFUNCTION(), spawn_held_nade(), W_Crylink_Attack(), W_Crylink_Attack2(), W_Devastator_Attack(), W_Fireball_Attack1(), W_Fireball_Attack2(), W_MineLayer_Attack(), W_Seeker_Fire_Missile(), W_Seeker_Fire_Tag(), W_Seeker_Tag_Touch(), and WarpZone_RefSys_SpawnSameRefSys().
Spawns an entity in the same warpzone reference as me, and sets up its reference.
Used when you need to spawn en entity, set up the reference system, and you know you're setting its origin "on the same side of the warpzones" as me
Definition at line 838 of file common.qc.
References entity(), spawn, and WarpZone_RefSys_Copy().
Transform angle ang in from's reference into to's reference.
Definition at line 805 of file common.qc.
References ang, entity(), vector, WarpZone_TransformAngles(), and WarpZone_UnTransformAngles().
Referenced by nade_translocate_boom().
Transform origin org in from's reference into to's reference.
E.g., WarpZone_RefSys_TransformOrigin(receiver, flag, receiver.origin + receiver.view_ofs): Returns receiver's view origin as seen by flag
Definition at line 787 of file common.qc.
References entity(), org, vector, WarpZone_TransformOrigin(), and WarpZone_UnTransformOrigin().
Referenced by ctf_FlagThink(), ctf_Handle_Throw(), GrapplingHookThink(), Monster_Enemy_Check(), Monster_Move_Target(), MUTATOR_HOOKFUNCTION(), W_Crylink_LinkJoin(), W_Devastator_RemoteExplode(), W_Devastator_Think(), W_Fireball_Explode(), W_Fireball_Firemine_Think(), W_Nexball_Think(), and W_SeekOutEnemy().
Transform v_angle ang in from's reference into to's reference.
Definition at line 814 of file common.qc.
References ang, entity(), vector, WarpZone_TransformVAngles(), and WarpZone_UnTransformVAngles().
Transform velocity vel in from's reference into to's reference.
Definition at line 796 of file common.qc.
References entity(), vector, WarpZone_TransformVelocity(), and WarpZone_UnTransformVelocity().
Referenced by GrapplingHookThink(), nade_translocate_boom(), W_Crylink_LinkJoin(), and W_Devastator_Think().
| entity WarpZone_SearchInRadius | ( | vector | org, |
| float | radius, | ||
| float | nomonsters, | ||
| WarpZone_FindRadius_cond_callback_t | cb ) |
Modified findradius aware of warpzones, that only includes entities that meet the "cb" criteria.
Most useful if lineofsight, when searching with very specific criteria, or over a range likely to contain many entities.
Definition at line 680 of file common.qc.
References _WarpZone_FindRadius_badents_first, _WarpZone_FindRadius_cond_cb, _WarpZone_FindRadius_goodents_first, _WarpZone_FindRadius_nomonsters, _WarpZone_FindRadius_Recurse(), boxesoverlap(), chain, entity(), FOREACH_ENTITY_RADIUS, FOREACH_LIST, g_warpzones, IL_EACH, MOVE_NOTHING, NearestPointOnBoundingBox(), NULL, org, trace_fraction, vec3, vector, WarpZone_Accumulator_Clear(), WarpZone_FindRadius_Hit_UNSEEN, WarpZone_findradius_next, warpzone_warpzones_exist, and WarpZoneLib_BadEntity().
Referenced by M_Golem_Attack_Lightning_Explode(), M_Mage_Defend_Heal(), M_Spider_Attack_Web_Explode(), M_Wyvern_Attack_Fireball_Explode(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), nade_darkness_think(), nade_ice_think(), PlayerFrame(), PlayerUseKey(), RadiusDamageForSource(), setItemGroup(), turret_tesla_toast(), W_Crylink_Touch_WouldHitFriendly(), W_Devastator_DoRemoteExplode(), W_Electro_Bolt_Think(), W_Electro_TriggerCombo(), W_Fireball_Explode(), W_LaserPlay(), W_MineLayer_ProximityExplode(), W_MineLayer_RemoteExplode(), W_MineLayer_Think(), and walker_melee_do_dmg().
Definition at line 56 of file common.qc.
References AnglesTransform_PrePostShift_GetPostShift(), AnglesTransform_RightDivide(), AnglesTransform_TurnDirectionFR(), entity(), FIXED_MAKE_VECTORS, setcamera_transform, vector, and WarpZone_camera_transform().
Referenced by NET_HANDLE(), and WarpZone_InitStep_FinalizeTransform().
Definition at line 483 of file common.qc.
References entity(), and vector.
Referenced by WarpZone_Teleport().
| void WarpZone_TraceBox_ThroughZone | ( | vector | org, |
| vector | mi, | ||
| vector | ma, | ||
| vector | end, | ||
| float | nomonsters, | ||
| entity | forent, | ||
| entity | zone, | ||
| WarpZone_trace_callback_t | cb ) |
Traces a box from org to end, shifting & transforming each time it goes through a warpzone.
Hence it only ends at end if it didn't hit something along the way AND it went through no warpzones
Definition at line 183 of file common.qc.
References BITCLR_ASSIGN, BITSET_ASSIGN, boxesoverlap(), CHOOSE_AXIS, DPCONTENTS_SOLID, entity(), g_warpzones, IL_EACH, LABEL, LOG_TRACE, MOVE_NOMONSTERS, MOVE_NOTHING, MOVE_WORLDONLY, normalize(), NULL, org, 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(), warpzone_warpzones_exist, x, y, and z.
Referenced by tracebox_antilag_force_wz().
| void WarpZone_TraceToss_ThroughZone | ( | entity | e, |
| entity | forent, | ||
| entity | zone, | ||
| WarpZone_trace_callback_t | cb ) |
Traces tossing e, shifting & transforming each time it goes through a warpzone.
Definition at line 334 of file common.qc.
References entity(), LABEL, LOG_TRACE, NULL, org, PHYS_GRAVITY, sqrt(), trace_endpos, trace_ent, trace_fraction, v_forward, v_right, v_up, vector, vlen2, 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.
Definition at line 446 of file common.qc.
References entity(), MOVE_NOMONSTERS, NULL, org, vector, WarpZone_TraceLine_ThroughZone, WarpZone_TrailParticles_trace_callback(), WarpZone_TrailParticles_trace_callback_eff, and WarpZone_TrailParticles_trace_callback_own.
Referenced by CheatCommand(), and ctf_Handle_Throw().
Transforms angle v across warpzone wz.
Definition at line 500 of file common.qc.
References ang, AnglesTransform_ApplyToAngles(), entity(), and vector.
Referenced by WarpZone_RefSys_TransformAngles(), and WarpZone_Teleport().
Transforms origin org across warpzone wz.
For example, this'd give you the origin a projectile will have after it crosses the warpzone
Definition at line 489 of file common.qc.
References AnglesTransform_Apply(), entity(), org, and vector.
Referenced by CheatCommand(), Draw_ArcBeam(), Draw_ArcBeam_callback(), Draw_GrapplingHook(), Draw_GrapplingHook_trace_callback(), Draw_VaporizerBeam_trace_callback(), fireBullet_falloff(), W_Arc_Beam_Think(), W_Fireball_Explode(), W_OverkillRocketPropelledChainsaw_Think(), WarpZone_camera_transform(), WarpZone_FixPMove(), WarpZone_FixView(), WarpZone_RefSys_TransformOrigin(), WarpZone_Teleport(), WarpZone_TraceBox_ThroughZone(), and WarpZone_TraceToss_ThroughZone().
Transforms v_angle ang across warpzone wz.
Definition at line 505 of file common.qc.
References ang, AnglesTransform_ApplyToVAngles(), AnglesTransform_CancelRoll(), AnglesTransform_Normalize(), entity(), and vector.
Referenced by NET_HANDLE(), sandbox_ObjectSpawn(), View_EventChase(), WarpZone_FixPMove(), WarpZone_FixView(), WarpZone_PlayerPhysics_FixVAngle(), WarpZone_RefSys_TransformVAngles(), and WarpZone_Teleport().
Transforms velocity v across warpzone wz.
For example, this can give you the updated v_forward after crossing the warpzone
Definition at line 495 of file common.qc.
References AnglesTransform_Apply(), entity(), and vector.
Referenced by Draw_ArcBeam(), fireBullet_falloff(), FireImoBeam(), FireRailgunBullet(), W_Arc_Beam_Think(), W_Shotgun_Melee_Think(), walker_melee_do_dmg(), WarpZone_camera_transform(), WarpZone_RefSys_TransformVelocity(), WarpZone_Teleport(), and WarpZone_TraceToss_ThroughZone().
Transforms angle ang backwards through warpzone wz, as the inverse of WarpZone_TransformAngles.
Definition at line 536 of file common.qc.
References ang, AnglesTransform_ApplyToAngles(), AnglesTransform_Invert(), entity(), and vector.
Referenced by WarpZone_RefSys_TransformAngles().
Transforms origin org backwards through warpzone wz, as the inverse of WarpZone_TransformOrigin.
E.g., WarpZone_UnTransformOrigin(WarpZone_trace_transform, trace_endpos): Returns the endpoint of a warpzone-aware trace, as if the trace had never gone through warpzones
Definition at line 526 of file common.qc.
References AnglesTransform_Apply(), AnglesTransform_Invert(), entity(), org, and vector.
Referenced by beam_think(), ctf_CalculatePassVelocity(), Draw_ArcBeam(), Draw_ArcBeam_callback(), fireBullet_falloff(), FireImoBeam(), FireRailgunBullet(), M_Golem_Attack_Lightning_Explode(), MUTATOR_HOOKFUNCTION(), PlayerUseKey(), RadiusDamageForSource(), sandbox_ObjectEdit_Get(), SendCSQCVaporizerBeamParticle(), SendCSQCVortexBeamParticle(), turret_tesla_toast(), W_Arc_Beam_Think(), W_LaserPlay(), W_SeekOutEnemy(), W_SetupShot_Dir_ProjectileSize_Range(), W_Vaporizer_Attack(), W_Vortex_Attack(), and WarpZone_RefSys_TransformOrigin().
Transforms v_angle ang backwards through warpzone wz, as the inverse of WarpZone_TransformVAngles.
Definition at line 541 of file common.qc.
References ang, AnglesTransform_ApplyToVAngles(), AnglesTransform_CancelRoll(), AnglesTransform_Invert(), AnglesTransform_Normalize(), entity(), and vector.
Referenced by WarpZone_RefSys_TransformVAngles().
Transforms angle vel backwards through warpzone wz, as the inverse of WarpZone_TransformVelocity.
Definition at line 531 of file common.qc.
References AnglesTransform_Apply(), AnglesTransform_Invert(), entity(), and vector.
Referenced by WarpZone_RefSys_TransformVelocity().
Definition at line 120 of file common.qc.
References entity(), Q3COMPAT_COMMON, SOLID_BSP, vector, WarpZoneLib_BoxTouchesBrush_Recurse(), and world.
Referenced by havocbot_moveto(), Teleport_Find(), WarpZone_Find(), and WarpZoneLib_ExactTrigger_Touch().
Definition at line 845 of file common.qc.
References absmax, absmin, boxesoverlap(), entity(), Q3COMPAT_COMMON, toucher, vector, and WarpZoneLib_BoxTouchesBrush().
Referenced by conveyor_think(), func_ladder_think(), SV_PlayerPhysics(), swamp_think(), viewloc_think(), and WarpZone_StartFrame().
Definition at line 875 of file common.qc.
References entity(), eX, eY, eZ, MOVE_WORLDONLY, trace_startsolid, vector, and WarpZoneLib_MoveOutOfSolid_Expand().
Referenced by CheckEngineExtensions(), and WarpZone_Teleport().
| IntrusiveList g_warpzones |
Definition at line 6 of file common.qh.
Referenced by NET_HANDLE(), spawnfunc(), STATIC_INIT(), WarpZone_Find(), WarpZone_MakeAllOther(), WarpZone_MakeAllSolid(), WarpZone_SearchInRadius(), and WarpZone_TraceBox_ThroughZone().
| WarpZone_trace_callback_t te_csqc_trace_callback |
Definition at line 38 of file common.qh.
Referenced by M_Golem_Attack_Lightning_Explode(), and turret_tesla_toast().
| vector warpzone_angles |
Definition at line 19 of file common.qh.
Referenced by WarpZone_Camera_camera_transform(), WarpZone_InitStep_FinalizeTransform(), WarpZone_InitStep_UpdateTransform(), and WarpZone_Send().
| float warpzone_cameras_exist |
Definition at line 13 of file common.qh.
Referenced by NET_HANDLE(), and WarpZoneCamera_InitStep_FindTarget().
| float warpzone_fadeend |
Definition at line 25 of file common.qh.
Referenced by NET_HANDLE(), NET_HANDLE(), WarpZone_Camera_camera_transform(), WarpZone_Camera_Send(), WarpZone_camera_transform(), WarpZone_Fade_PreDraw(), and WarpZone_Send().
| float warpzone_fadestart |
Definition at line 24 of file common.qh.
Referenced by NET_HANDLE(), NET_HANDLE(), WarpZone_Camera_camera_transform(), WarpZone_Camera_Send(), WarpZone_camera_transform(), WarpZone_Fade_PreDraw(), and WarpZone_Send().
| float warpzone_isboxy |
Definition at line 15 of file common.qh.
Referenced by conveyor_send(), NET_HANDLE(), trigger_common_write(), WarpZone_Send(), and WarpZoneLib_ExactTrigger_Init().
| vector warpzone_origin |
Definition at line 18 of file common.qh.
Referenced by WarpZone_Camera_camera_transform(), WarpZone_InitStep_FinalizeTransform(), WarpZone_InitStep_UpdateTransform(), and WarpZone_Send().
| noref entity WarpZone_SearchInRadius_otherent |
Free to use in the callback.
Definition at line 71 of file common.qh.
Referenced by buff_Swapper_cond(), ctf_Pass_cond(), M_Golem_Attack_Lightning_Explode(), M_Golem_Attack_Lightning_Explode_cond(), M_Mage_Defend_Heal(), M_Mage_Defend_Heal_cond(), M_Spider_Attack_Web_Explode(), M_Spider_Attack_Web_Explode_cond(), M_Wyvern_Attack_Fireball_Explode(), M_Wyvern_Attack_Fireball_Explode_cond(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), nade_darkness_think(), nade_darkness_think_cond(), nade_ice_think(), nade_ice_think_cond(), napalm_damage_cond(), PlayerUseKey(), PlayerUseKey_EnterVehicle_cond(), setItemGroup(), setItemGroup_cond(), W_Devastator_DoRemoteExplode(), W_Devastator_DoRemoteExplode_cond(), W_Electro_Bolt_Think(), W_Electro_search_cond(), W_Electro_TriggerCombo(), W_Fireball_Explode(), W_Fireball_Explode_cond(), W_Fireball_LaserPlay_cond(), W_LaserPlay(), W_MineLayer_CheckSameTeam_cond(), W_MineLayer_ProximityExplode(), W_MineLayer_RemoteExplode(), W_MineLayer_Think(), W_MineLayer_Think_cond(), walker_melee_do_dmg(), and walker_melee_do_dmg_cond().
| vector warpzone_shift |
| vector warpzone_targetangles |
Definition at line 22 of file common.qh.
Referenced by WarpZone_Send().
| vector warpzone_targetorigin |
Definition at line 21 of file common.qh.
Referenced by WarpZone_camera_transform(), and WarpZone_Send().
| entity WarpZone_trace_firstzone |
First warpzone hit by a trace (can differ from the requested zone in case of _ThroughZone, the trace is aborted then).
Definition at line 41 of file common.qh.
Referenced by FireImoBeam(), FireRailgunBullet(), WarpZone_TraceBox_ThroughZone(), and WarpZone_TraceToss_ThroughZone().
| entity WarpZone_trace_forent |
Temp, callback is allowed to change it.
Definition at line 36 of file common.qh.
Referenced by fireBullet_falloff(), fireBullet_trace_callback(), WarpZone_TraceBox_ThroughZone(), and WarpZone_TraceToss_ThroughZone().
| entity WarpZone_trace_lastzone |
First warpzone hit by a trace (can differ from the requested zone in case of _ThroughZone, the trace is aborted then).
Definition at line 42 of file common.qh.
Referenced by WarpZone_TraceBox_ThroughZone(), and WarpZone_TraceToss_ThroughZone().
| entity WarpZone_trace_transform |
Transform accumulator during a trace.
Definition at line 40 of file common.qh.
Referenced by beam_think(), CheatCommand(), ctf_CalculatePassVelocity(), Draw_ArcBeam(), Draw_ArcBeam_callback(), Draw_GrapplingHook(), Draw_GrapplingHook_trace_callback(), Draw_VaporizerBeam_trace_callback(), fireBullet_falloff(), FireImoBeam(), FireRailgunBullet(), MUTATOR_HOOKFUNCTION(), sandbox_ObjectEdit_Get(), sandbox_ObjectSpawn(), SendCSQCVaporizerBeamParticle(), SendCSQCVortexBeamParticle(), View_EventChase(), W_Arc_Beam_Think(), W_SeekOutEnemy(), W_SetupShot_Dir_ProjectileSize_Range(), W_Shotgun_Melee_Think(), W_Vaporizer_Attack(), W_Vortex_Attack(), and WarpZone_Trace_InitTransform().
| float WarpZone_tracetoss_time |
Duration of toss (approximate).
Definition at line 44 of file common.qh.
Referenced by WarpZone_TraceToss_ThroughZone().
| vector WarpZone_tracetoss_velocity |
Ending velocity of a tracetoss (post-transform).
Definition at line 43 of file common.qh.
Referenced by WarpZone_TraceToss_ThroughZone().
| vector warpzone_transform |
Both a warpzone property, and set on entities found by WarpZone_SearchInRadius.
Definition at line 16 of file common.qh.
Referenced by NET_HANDLE().
| float warpzone_warpzones_exist |
Definition at line 12 of file common.qh.
Referenced by ItemDraw(), NET_HANDLE(), WarpZone_Find(), WarpZone_InitStep_FinalizeTransform(), WarpZone_MakeAllOther(), WarpZone_MakeAllSolid(), WarpZone_SearchInRadius(), WarpZone_StartFrame(), WarpZone_TraceBox_ThroughZone(), and WarpZone_TraceToss_ThroughZone().