|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
#include "portals.qh"#include <common/constants.qh>#include <common/deathtypes/all.qh>#include <common/effects/all.qh>#include <common/mapobjects/subs.qh>#include <common/mapobjects/teleporters.qh>#include <common/mapobjects/triggers.qh>#include <common/notifications/all.qh>#include <common/util.qh>#include <common/vehicles/sv_vehicles.qh>#include <common/vehicles/vehicle.qh>#include <common/weapons/_all.qh>#include <common/weapons/weapon/porto.qh>#include <lib/csqcmodel/sv_model.qh>#include <lib/warpzone/anglestransform.qh>#include <lib/warpzone/common.qh>#include <lib/warpzone/util_server.qh>#include <server/client.qh>#include <server/damage.qh>#include <server/hook.qh>#include <server/mutators/_mod.qh>#include <server/player.qh>#include <server/weapons/common.qh>Go to the source code of this file.
Macros | |
| #define | PORTALS_ARE_NOT_SOLID |
Variables | |
| float | portal_activatetime |
| vector | portal_safe_origin |
| vector | portal_transform |
| float | portal_wants_to_vanish |
| vector | right_vector |
| const vector | SAFENUDGE = '1 1 1' |
| const vector | SAFERNUDGE = '8 8 8' |
| float | savemodelindex |
| #define PORTALS_ARE_NOT_SOLID |
Definition at line 26 of file portals.qc.
Definition at line 37 of file portals.qc.
References entity(), vec3, and vector.
Referenced by Portal_TeleportPlayer().
Definition at line 47 of file portals.qc.
References ang, AnglesTransform_Apply(), fixedmakevectors(), fixedvectoangles, v_forward, v_up, vector, and vectoyaw().
Referenced by Portal_TeleportPlayer().
Definition at line 588 of file portals.qc.
References entity(), Portal_ClearAll_PortalsOnly(), and W_Porto_Remove().
Referenced by checkpoint_passed(), ClientDisconnect(), and PutObserverInServer().
Definition at line 581 of file portals.qc.
References entity(), and Portal_Remove().
Referenced by Portal_ClearAll(), and W_Porto_Touch().
Definition at line 611 of file portals.qc.
References entity(), Portal_ClearAllLater_PortalsOnly(), and W_Porto_Remove().
Referenced by PlayerDamage().
Definition at line 604 of file portals.qc.
References entity(), and Portal_RemoveLater().
Referenced by Portal_ClearAllLater().
Definition at line 616 of file portals.qc.
References entity(), Portal_Disconnect(), and Portal_Remove().
Referenced by W_Porto_Fail().
Definition at line 389 of file portals.qc.
References AnglesTransform_RightDivide(), AnglesTransform_TurnDirectionFR(), autocvar_g_balance_portal_lifetime, entity(), Portal_MakeInPortal(), Portal_MakeOutPortal(), SOLID_BSP, SOLID_TRIGGER, and time.
Referenced by Portal_SetInPortal(), and Portal_SetOutPortal().
Definition at line 513 of file portals.qc.
References aiment, entity(), IS_INDEPENDENT_PLAYER, IS_SPEC, modelindex, and savemodelindex.
Referenced by Portal_Spawn().
| void Portal_Damage | ( | entity | this, |
| entity | inflictor, | ||
| entity | attacker, | ||
| float | damage, | ||
| int | deathtype, | ||
| .entity | weaponentity, | ||
| vector | hitloc, | ||
| vector | force ) |
Definition at line 443 of file portals.qc.
References aiment, entity(), GetResource(), IS_INDEPENDENT_PLAYER, Portal_Remove(), TakeResource(), and vector.
Referenced by Portal_Spawn().
Definition at line 381 of file portals.qc.
References entity(), NULL, and Portal_MakeBrokenPortal().
Referenced by Portal_ClearWithID(), Portal_Remove(), Portal_SetInPortal(), and Portal_SetOutPortal().
Definition at line 219 of file portals.qc.
References entity(), fixedmakevectors(), LOG_INFO, move_out_of_solid, PL_MAX_CONST, PL_MIN_CONST, SAFERNUDGE, v_forward, and vector.
Referenced by Portal_Spawn().
Definition at line 337 of file portals.qc.
References DAMAGE_NO, entity(), func_null(), setthink, settouch, and SOLID_NOT.
Referenced by Portal_Disconnect(), Portal_Remove(), and Portal_RemoveLater().
Definition at line 359 of file portals.qc.
References DAMAGE_NO, EF_RED, entity(), Portal_Think(), Portal_Touch(), setthink, settouch, SOLID_NOT, and time.
Referenced by Portal_Connect().
Definition at line 370 of file portals.qc.
References DAMAGE_YES, EF_BLUE, EF_STARDUST, entity(), func_null(), setthink, settouch, and SOLID_NOT.
Referenced by Portal_Connect().
Definition at line 348 of file portals.qc.
References DAMAGE_YES, EF_ADDITIVE, entity(), func_null(), setthink, settouch, and SOLID_NOT.
Referenced by Portal_Spawn().
Definition at line 410 of file portals.qc.
References ATTEN_NORM, CH_SHOTS, entity(), fixedmakevectors(), NULL, Portal_Disconnect(), Portal_MakeBrokenPortal(), Portal_Remove(), Send_Effect(), sound, SUB_SetFade(), time, v_forward, and VOL_BASE.
Referenced by Portal_ClearAll_PortalsOnly(), Portal_ClearWithID(), Portal_Damage(), Portal_Remove(), Portal_RemoveLater_Think(), Portal_SetInPortal(), Portal_SetOutPortal(), and Portal_Think().
Definition at line 597 of file portals.qc.
References entity(), Portal_MakeBrokenPortal(), Portal_RemoveLater_Think(), setthink, and time.
Referenced by Portal_ClearAllLater_PortalsOnly().
Definition at line 593 of file portals.qc.
References cnt, entity(), and Portal_Remove().
Referenced by Portal_RemoveLater().
Definition at line 549 of file portals.qc.
References entity(), Portal_Connect(), Portal_Disconnect(), and Portal_Remove().
Referenced by Portal_SpawnInPortalAtTrace().
Definition at line 565 of file portals.qc.
References entity(), Portal_Connect(), Portal_Disconnect(), and Portal_Remove().
Referenced by Portal_SpawnOutPortalAtTrace().
Definition at line 634 of file portals.qc.
References ang, autocvar_g_balance_portal_health, autocvar_g_balance_portal_lifetime, CheckWireframeBox(), DAMAGE_AIM, entity(), fixedmakevectors(), NULL, org, Portal_Customize(), Portal_Damage(), Portal_FindSafeOrigin(), Portal_MakeWaitingPortal(), Portal_Think(), setcefc, setmodel, SetResourceExplicit(), setthink, time, v_forward, v_right, v_up, and vector.
Referenced by Portal_SpawnInPortalAtTrace(), and Portal_SpawnOutPortalAtTrace().
Definition at line 671 of file portals.qc.
References ang, dir, entity(), fixedmakevectors(), fixedvectoangles2, org, Portal_SetInPortal(), Portal_Spawn(), trace_endpos, trace_plane_normal, and vector.
Referenced by W_Porto_Touch().
Definition at line 691 of file portals.qc.
References ang, dir, entity(), fixedmakevectors(), fixedvectoangles2, org, Portal_SetOutPortal(), Portal_Spawn(), trace_endpos, trace_plane_normal, and vector.
Referenced by W_Porto_Touch().
Definition at line 111 of file portals.qc.
References ang, AnglesTransform_Apply(), AnglesTransform_ApplyToAngles(), autocvar_g_balance_portal_health, autocvar_g_balance_portal_lifetime, autocvar_g_maxpushtime, backtrace, bound(), entity(), fixedmakevectors(), IS_PLAYER, LOG_INFO, MOVE_NOMONSTERS, MUTATOR_CALLHOOK, normalize(), PHYS_INPUT_BUTTON_CHAT, PlayerEdgeDistance(), Portal_ApplyTransformToPlayerAngle(), SAFENUDGE, Send_Notification(), SetResourceExplicit(), tdeath_hit, TELEPORT_FLAGS_PORTAL, TeleportPlayer(), time, trace_endpos, trace_startsolid, v_forward, v_right, v_up, and vector.
Referenced by Portal_Think_TryTeleportPlayer(), and Portal_Touch().
Definition at line 467 of file portals.qc.
References aiment, autocvar_sv_gravity, enemy, entity(), error, fade_time, fixedmakevectors(), FOREACH_CLIENT, frametime, IS_INDEPENDENT_PLAYER, IS_PLAYER, mangle, MAX_WEAPONSLOTS, nextthink, NULL, portal_activatetime, Portal_Remove(), Portal_Think_TryTeleportPlayer(), solid, SOLID_BBOX, SOLID_TRIGGER, time, vector, and weaponentities.
Referenced by Portal_MakeInPortal(), and Portal_Spawn().
Definition at line 455 of file portals.qc.
References entity(), frametime, MOVE_NORMAL, Portal_TeleportPlayer(), Portal_WillHitPlane(), trace_ent, v_forward, and vector.
Referenced by Portal_Think().
Definition at line 264 of file portals.qc.
References aiment, autocvar_g_vehicles_teleportable, autocvar_sv_gravity, EF_BLUE, EF_RED, enemy, entity(), error, fixedmakevectors(), frametime, IS_INDEPENDENT_PLAYER, IS_PLAYER, IS_VEHICLE, mangle, portal_activatetime, Portal_TeleportPlayer(), Portal_WillHitPlane(), solid, SOLID_TRIGGER, time, toucher, trace_fraction, v_forward, and vector.
Referenced by Portal_MakeInPortal().
| float Portal_WillHitPlane | ( | vector | eorg, |
| vector | emins, | ||
| vector | emaxs, | ||
| vector | evel, | ||
| vector | porg, | ||
| vector | pnorm, | ||
| float | psize ) |
Definition at line 239 of file portals.qc.
References min(), vector, and vlen().
Referenced by Portal_Think_TryTeleportPlayer(), and Portal_Touch().
| float portal_activatetime |
Definition at line 34 of file portals.qc.
Referenced by Portal_Think(), and Portal_Touch().
| vector portal_safe_origin |
Definition at line 32 of file portals.qc.
| vector portal_transform |
Definition at line 31 of file portals.qc.
| float portal_wants_to_vanish |
Definition at line 33 of file portals.qc.
| vector right_vector |
Definition at line 110 of file portals.qc.
| const vector SAFENUDGE = '1 1 1' |
Definition at line 28 of file portals.qc.
Referenced by Portal_TeleportPlayer().
| const vector SAFERNUDGE = '8 8 8' |
Definition at line 29 of file portals.qc.
Referenced by Portal_FindSafeOrigin().
| float savemodelindex |
Definition at line 35 of file portals.qc.
Referenced by Portal_Customize().