PC Stable Documentation
 
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Loading...
Searching...
No Matches
DeveloperTeleport Class Reference

Static Private Member Functions

static void TeleportAtCursor ()
 
static void TeleportAtCursorEx ()
 
static Object GetPlayerRootForTeleporting (PlayerBase player)
 
static void SetPlayerPosition (PlayerBase player, vector position, bool breakSync=false)
 
static void SetPlayerDirection (PlayerBase player, vector direction)
 
static void OnRPC (PlayerBase player, int rpc_type, ParamsReadContext ctx)
 
static protected void OnRPCSetPlayerPosition (PlayerBase player, ParamsReadContext ctx)
 
static protected void OnRPCSetPlayerDirection (PlayerBase player, ParamsReadContext ctx)
 

Static Private Attributes

static protected const float TELEPORT_DISTANCE_MAX = 1000
 
static protected const float TELEPORT_DISTANCE_MAX_EX = 500
 

Member Function Documentation

◆ GetPlayerRootForTeleporting()

static Object GetPlayerRootForTeleporting ( PlayerBase  player)
inlinestaticprivate

◆ OnRPC()

static void OnRPC ( PlayerBase  player,
int  rpc_type,
ParamsReadContext  ctx 
)
inlinestaticprivate

◆ OnRPCSetPlayerDirection()

static protected void OnRPCSetPlayerDirection ( PlayerBase  player,
ParamsReadContext  ctx 
)
inlinestaticprivate

References Serializer::Read(), and SetPlayerDirection().

Referenced by OnRPC().

◆ OnRPCSetPlayerPosition()

static protected void OnRPCSetPlayerPosition ( PlayerBase  player,
ParamsReadContext  ctx 
)
inlinestaticprivate

References Serializer::Read(), and SetPlayerPosition().

Referenced by OnRPC().

◆ SetPlayerDirection()

static void SetPlayerDirection ( PlayerBase  player,
vector  direction 
)
inlinestaticprivate

◆ SetPlayerPosition()

◆ TeleportAtCursor()

◆ TeleportAtCursorEx()

Field Documentation

◆ TELEPORT_DISTANCE_MAX

protected const float TELEPORT_DISTANCE_MAX = 1000
staticprivate

Referenced by TeleportAtCursor().

◆ TELEPORT_DISTANCE_MAX_EX

protected const float TELEPORT_DISTANCE_MAX_EX = 500
staticprivate

Referenced by TeleportAtCursorEx().


The documentation for this class was generated from the following file: