Xonotic
|
#include "defs.qh"
Go to the source code of this file.
Macros | |
#define | TELEPORT_FLAGS_PORTAL (TELEPORT_FLAG_SOUND | TELEPORT_FLAG_PARTICLES | TELEPORT_FLAG_TDEATH | TELEPORT_FLAG_FORCE_TDEATH) |
#define | TELEPORT_FLAGS_TELEPORTER (TELEPORT_FLAG_SOUND | TELEPORT_FLAG_PARTICLES | TELEPORT_FLAG_TDEATH) |
#define | TELEPORT_FLAGS_WARPZONE 0 |
Functions | |
entity | Simple_TeleportPlayer (entity teleporter, entity player) |
STATIC_INIT (g_teleporters) | |
entity | Teleport_Find (vector mi, vector ma) |
void | teleport_findtarget (entity this) |
void | Teleport_Touch (entity this, entity toucher) |
void | TeleportPlayer (entity teleporter, entity player, vector to, vector to_angles, vector to_velocity, vector telefragmin, vector telefragmax, float tflags) |
void | WarpZone_PostTeleportPlayer_Callback (entity pl) |
Variables | |
IntrusiveList | g_teleporters |
entity | pusher |
const int | TELEPORT_FLAG_FORCE_TDEATH = BIT(3) |
const int | TELEPORT_FLAG_PARTICLES = BIT(1) |
const int | TELEPORT_FLAG_SOUND = BIT(0) |
const int | TELEPORT_FLAG_TDEATH = BIT(2) |
const int | TELEPORT_NORMAL = 1 |
const int | TELEPORT_SIMPLE = 2 |
float | teleportable |
#define TELEPORT_FLAGS_PORTAL (TELEPORT_FLAG_SOUND | TELEPORT_FLAG_PARTICLES | TELEPORT_FLAG_TDEATH | TELEPORT_FLAG_FORCE_TDEATH) |
Definition at line 21 of file teleporters.qh.
Referenced by Portal_TeleportPlayer().
#define TELEPORT_FLAGS_TELEPORTER (TELEPORT_FLAG_SOUND | TELEPORT_FLAG_PARTICLES | TELEPORT_FLAG_TDEATH) |
Definition at line 22 of file teleporters.qh.
Referenced by Simple_TeleportPlayer().
#define TELEPORT_FLAGS_WARPZONE 0 |
Definition at line 20 of file teleporters.qh.
Definition at line 180 of file teleporters.qc.
References entity(), FOREACH_ENTITY_STRING, LOG_INFO, makevectors, max(), normalize(), NULL, RandomSelection_AddEnt, RandomSelection_chosen_ent, RandomSelection_Init(), sprint(), targetname, TELEPORT_FLAGS_TELEPORTER, TeleportPlayer(), v_forward, vdist, vector(), and vlen().
Referenced by CheatCommand(), Teleport_Touch(), and WarpZone_Projectile_Touch().
STATIC_INIT | ( | g_teleporters | ) |
Definition at line 285 of file teleporters.qc.
References g_teleporters, IL_EACH, NULL, and WarpZoneLib_BoxTouchesBrush().
Referenced by WarpZone_Projectile_Touch().
Definition at line 237 of file teleporters.qc.
References DPCONTENTS_BODY, DPCONTENTS_BOTCLIP, DPCONTENTS_PLAYERCLIP, DPCONTENTS_SOLID, enemy, entity(), find(), LOG_INFO, MOVETYPE_NONE, NULL, objerror(), solid, SOLID_TRIGGER, spawn(), target, targetname, Teleport_Touch(), and waypoint_spawnforteleporter().
Referenced by CheatCommand(), and Teleport_Touch().
Definition at line 45 of file teleport.qc.
References active, ACTIVE_ACTIVE, angles, classname, enemy, entity(), EXACTTRIGGER_INIT, EXACTTRIGGER_TOUCH, FOREACH_ENTITY_STRING, FOREACH_WORD, g_teleporters, IL_PUSH(), InitializeEntity(), IS_PLAYER, mangle, move_time, NET_HANDLE, noise, objerror(), precache_sound(), RemoveGrapplingHooks(), Simple_TeleportPlayer(), solid, SOLID_TRIGGER, spawnflags, spawnfunc(), speed, string_null, SUB_UseTargets(), target, targetname, team, Teleport_Active(), teleport_findtarget(), time, to, use, WriteByte(), and WriteCoord().
Referenced by teleport_findtarget().
void TeleportPlayer | ( | entity | teleporter, |
entity | player, | ||
vector | to, | ||
vector | to_angles, | ||
vector | to_velocity, | ||
vector | telefragmin, | ||
vector | telefragmax, | ||
float | tflags | ||
) |
Definition at line 67 of file teleporters.qc.
References _sound, ATTEN_NORM, autocvar_g_maxpushtime, BITXOR_ASSIGN, bot_aim_reset(), CH_TRIGGER, csqcplayer, EF_TELEPORT_BIT, entity(), FOREACH_WORD, g_cts, g_race, IFLAG_ANGLES, IFLAG_TELEPORTED, IFLAG_V_ANGLE, IS_BOT_CLIENT, IS_DEAD, IS_PLAYER, makevectors, PHYS_INPUT_BUTTON_CHAT, RandomSelection_chosen_string, RandomSelection_Init(), Reset_ArcBeam(), round_handler_IsActive, round_handler_IsRoundStarted, setorigin(), SND, TELEPORT_FLAG_FORCE_TDEATH, TELEPORT_FLAG_PARTICLES, TELEPORT_FLAG_SOUND, TELEPORT_FLAG_TDEATH, TELEPORT_NORMAL, time, to, UNSET_ONGROUND, UpdateCSQCProjectileAfterTeleport(), UpdateItemAfterTeleport(), v_forward, vector(), VF_ANGLES, VF_CL_VIEWANGLES, and VOL_BASE.
Referenced by Portal_TeleportPlayer(), and Simple_TeleportPlayer().
Definition at line 294 of file teleporters.qc.
References anticheat_fixangle(), BIT, IS_PLAYER, LOG_INFO, makevectors, NULL, Reset_ArcBeam(), UpdateCSQCProjectileAfterTeleport(), UpdateItemAfterTeleport(), and v_forward.
Referenced by WarpZone_TeleportPlayer().
IntrusiveList g_teleporters |
Definition at line 10 of file teleporters.qh.
Referenced by havocbot_moveto(), Teleport_Find(), and Teleport_Touch().
entity pusher |
Definition at line 13 of file teleporters.qh.
Referenced by football_touch(), InitBall(), PlayerDamage(), and UpdatePlayerSounds().
Definition at line 18 of file teleporters.qh.
Referenced by TeleportPlayer().
Definition at line 16 of file teleporters.qh.
Referenced by TeleportPlayer().
Definition at line 15 of file teleporters.qh.
Referenced by TeleportPlayer().
Definition at line 17 of file teleporters.qh.
Referenced by TeleportPlayer().
const int TELEPORT_NORMAL = 1 |
Definition at line 26 of file teleporters.qh.
Referenced by ctf_FlagSetup(), PutPlayerInServer(), TeleportPlayer(), and vehicles_exit().
const int TELEPORT_SIMPLE = 2 |
Definition at line 27 of file teleporters.qh.
Referenced by PlayerDamage(), and PutObserverInServer().
float teleportable |
Definition at line 24 of file teleporters.qh.
Referenced by CopyBody(), Monster_Spawn(), PlayerDamage(), PutObserverInServer(), PutPlayerInServer(), vehicle_initialize(), and vehicles_spawn().