Xonotic
|
#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 v, vec3, and vector().
Referenced by Portal_TeleportPlayer().
Definition at line 47 of file portals.qc.
References AnglesTransform_Apply(), fixedmakevectors, fixedvectoangles, v_forward, v_up, vector(), and vectoyaw().
Referenced by Portal_TeleportPlayer().
Definition at line 587 of file portals.qc.
References Portal_ClearAll_PortalsOnly().
Referenced by checkpoint_passed(), ClientDisconnect(), and PutObserverInServer().
Definition at line 580 of file portals.qc.
References Portal_Remove().
Referenced by Portal_ClearAll().
Definition at line 610 of file portals.qc.
References Portal_ClearAllLater_PortalsOnly().
Referenced by PlayerDamage().
Definition at line 603 of file portals.qc.
References Portal_RemoveLater().
Referenced by Portal_ClearAllLater().
Definition at line 615 of file portals.qc.
References Portal_Disconnect(), and Portal_Remove().
Definition at line 389 of file portals.qc.
References AnglesTransform_RightDivide(), AnglesTransform_TurnDirectionFR(), autocvar_g_balance_portal_lifetime, Portal_MakeInPortal(), Portal_MakeOutPortal(), SOLID_BSP, SOLID_TRIGGER, and time.
Referenced by Portal_SetInPortal(), and Portal_SetOutPortal().
Definition at line 512 of file portals.qc.
References aiment, 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 442 of file portals.qc.
References aiment, GetResource(), IS_INDEPENDENT_PLAYER, Portal_Remove(), RES_HEALTH, and TakeResource().
Referenced by Portal_Spawn().
Definition at line 381 of file portals.qc.
References NULL, and Portal_MakeBrokenPortal().
Referenced by Portal_ClearWithID(), Portal_Remove(), Portal_SetInPortal(), and Portal_SetOutPortal().
Definition at line 219 of file portals.qc.
References fixedmakevectors, LOG_INFO, move_out_of_solid, SAFERNUDGE, setorigin(), v_forward, and vector().
Referenced by Portal_Spawn().
Definition at line 337 of file portals.qc.
References DAMAGE_NO, func_null(), setthink, 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, Portal_Think(), Portal_Touch(), setthink, SOLID_NOT, and time.
Referenced by Portal_Connect().
Definition at line 370 of file portals.qc.
References DAMAGE_YES, EF_BLUE, EF_STARDUST, func_null(), setthink, and SOLID_NOT.
Referenced by Portal_Connect().
Definition at line 348 of file portals.qc.
References DAMAGE_YES, EF_ADDITIVE, func_null(), setthink, and SOLID_NOT.
Referenced by Portal_Spawn().
Definition at line 409 of file portals.qc.
References ATTEN_NORM, CH_SHOTS, entity(), fixedmakevectors, NULL, Portal_Disconnect(), Portal_MakeBrokenPortal(), sound, SUB_SetFade(), time, v_forward, and VOL_BASE.
Referenced by Portal_ClearAll_PortalsOnly(), Portal_ClearWithID(), Portal_Damage(), Portal_RemoveLater_Think(), Portal_SetInPortal(), Portal_SetOutPortal(), and Portal_Think().
Definition at line 596 of file portals.qc.
References Portal_MakeBrokenPortal(), Portal_RemoveLater_Think(), setthink, and time.
Referenced by Portal_ClearAllLater_PortalsOnly().
Definition at line 592 of file portals.qc.
References cnt, and Portal_Remove().
Referenced by Portal_RemoveLater().
Definition at line 548 of file portals.qc.
References Portal_Connect(), Portal_Disconnect(), and Portal_Remove().
Referenced by Portal_SpawnInPortalAtTrace().
Definition at line 564 of file portals.qc.
References Portal_Connect(), Portal_Disconnect(), and Portal_Remove().
Referenced by Portal_SpawnOutPortalAtTrace().
Definition at line 633 of file portals.qc.
References autocvar_g_balance_portal_health, autocvar_g_balance_portal_lifetime, DAMAGE_AIM, entity(), fixedmakevectors, NULL, Portal_Customize(), Portal_Damage(), Portal_FindSafeOrigin(), Portal_MakeWaitingPortal(), Portal_Think(), RES_HEALTH, setmodel, setorigin(), SetResourceExplicit(), setthink, time, v_forward, v_right, and v_up.
Referenced by Portal_SpawnInPortalAtTrace(), and Portal_SpawnOutPortalAtTrace().
Definition at line 670 of file portals.qc.
References entity(), fixedmakevectors, fixedvectoangles2, Portal_SetInPortal(), Portal_Spawn(), trace_endpos, trace_plane_normal, and vector().
Definition at line 690 of file portals.qc.
References entity(), fixedmakevectors, fixedvectoangles2, Portal_SetOutPortal(), Portal_Spawn(), trace_endpos, trace_plane_normal, and vector().
Definition at line 111 of file portals.qc.
References AnglesTransform_Apply(), AnglesTransform_ApplyToAngles(), autocvar_g_balance_portal_health, autocvar_g_balance_portal_lifetime, autocvar_g_maxpushtime, backtrace, bound(), fixedmakevectors, IS_PLAYER, LOG_INFO, MOVE_NOMONSTERS, MUTATOR_CALLHOOK, normalize(), PHYS_INPUT_BUTTON_CHAT, PlayerEdgeDistance(), Portal_ApplyTransformToPlayerAngle(), RES_HEALTH, SAFENUDGE, SetResourceExplicit(), TELEPORT_FLAGS_PORTAL, TeleportPlayer(), time, to, trace_endpos, trace_startsolid, v_forward, v_right, v_up, and vector().
Referenced by Portal_Think_TryTeleportPlayer(), and Portal_Touch().
Definition at line 466 of file portals.qc.
References aiment, 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 454 of file portals.qc.
References frametime, MOVE_NORMAL, Portal_TeleportPlayer(), Portal_WillHitPlane(), trace_ent, and v_forward.
Referenced by Portal_Think().
Definition at line 264 of file portals.qc.
References aiment, EF_BLUE, EF_RED, enemy, error(), fixedmakevectors, frametime, IS_INDEPENDENT_PLAYER, IS_PLAYER, IS_VEHICLE, mangle, portal_activatetime, Portal_TeleportPlayer(), Portal_WillHitPlane(), solid, SOLID_TRIGGER, time, 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(), v, 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().