Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_FastTravelComponent.c File Reference

Go to the source code of this file.

Classes

class  SCR_FastTravelComponentClass

Functions

void SetDestination (RplId id, string name)
 Destination must be a replicated item with valid RplId.
string GetDestinationName ()
int GetCooldown ()
void DisableAfterUse ()
void OnSelectionChanged (MapItem item)
RplId FindDestinationId (IEntity entity)
void FastTravel ()
void RpcAsk_FastTravel (RplId destinationId)
IEntity GetEntityByDestinationId (RplId id)
bool ServerSanityCheck (notnull IEntity target)
WorldTimestamp GetNextTransportTimestamp ()
void SetNextTransportTimestamp (WorldTimestamp timestamp)
void RpcDo_FastTravel (vector position)
void FadeOut ()
void Teleport ()
vector CalculateDestinationVector (notnull IEntity destination)
vector CalculateDestinationVector (vector targetOrigin)
override void OnPostInit (IEntity owner)
 Editable Mine.
override void EOnInit (IEntity owner)
void ~SCR_FastTravelComponent ()

Variables

SCR_FastTravelComponentClass m_PlayerController
RplId m_iDestinationId = RplId.Invalid()
string m_sDestinationName
bool m_bIsDestinationValid
bool m_bDisableAfterUse
vector m_vTeleportCoordinates
int m_iCooldown
int m_iDistanceToTarget
string m_sDestinationType
WorldTimestamp m_fNextTravelAvailableAt

Function Documentation

◆ CalculateDestinationVector() [1/2]

vector CalculateDestinationVector ( notnull IEntity destination)
protected

Find coordinates for player teleport some distance away from the target, azimuth relative to previous player location

Parameters
[in]destination

Definition at line 301 of file SCR_FastTravelComponent.c.

◆ CalculateDestinationVector() [2/2]

vector CalculateDestinationVector ( vector targetOrigin)
protected

Definition at line 307 of file SCR_FastTravelComponent.c.

◆ DisableAfterUse()

void DisableAfterUse ( )
protected

Definition at line 74 of file SCR_FastTravelComponent.c.

◆ FadeOut()

void FadeOut ( )
protected

Definition at line 264 of file SCR_FastTravelComponent.c.

◆ FastTravel()

void FastTravel ( )
protected

Definition at line 168 of file SCR_FastTravelComponent.c.

◆ FindDestinationId()

RplId FindDestinationId ( IEntity entity)
protected
Parameters
[in]entity
Returns

Definition at line 151 of file SCR_FastTravelComponent.c.

◆ GetCooldown()

int GetCooldown ( )
protected
Returns

Definition at line 67 of file SCR_FastTravelComponent.c.

◆ GetDestinationName()

string GetDestinationName ( )
protected
Returns

Definition at line 60 of file SCR_FastTravelComponent.c.

◆ GetEntityByDestinationId()

IEntity GetEntityByDestinationId ( RplId id)
protected
Parameters
[in]id
Returns

Definition at line 206 of file SCR_FastTravelComponent.c.

◆ GetNextTransportTimestamp()

WorldTimestamp GetNextTransportTimestamp ( )
protected

Definition at line 237 of file SCR_FastTravelComponent.c.

◆ OnSelectionChanged()

void OnSelectionChanged ( MapItem item)
protected
Parameters
[in]item

Definition at line 108 of file SCR_FastTravelComponent.c.

◆ RpcAsk_FastTravel()

void RpcAsk_FastTravel ( RplId destinationId)
protected

Definition at line 178 of file SCR_FastTravelComponent.c.

◆ RpcDo_FastTravel()

void RpcDo_FastTravel ( vector position)
protected

Definition at line 252 of file SCR_FastTravelComponent.c.

◆ ServerSanityCheck()

bool ServerSanityCheck ( notnull IEntity target)
protected

Sanity check before the actual teleport

Parameters
[in]target

Definition at line 229 of file SCR_FastTravelComponent.c.

◆ SetDestination()

void SetDestination ( RplId id,
string name )
protected

Destination must be a replicated item with valid RplId.

Definition at line 51 of file SCR_FastTravelComponent.c.

◆ SetNextTransportTimestamp()

void SetNextTransportTimestamp ( WorldTimestamp timestamp)
protected
Parameters
[in]timestamp

Definition at line 244 of file SCR_FastTravelComponent.c.

◆ Teleport()

void Teleport ( )
protected

Definition at line 279 of file SCR_FastTravelComponent.c.

◆ ~SCR_FastTravelComponent()

void ~SCR_FastTravelComponent ( )
protected

Definition at line 347 of file SCR_FastTravelComponent.c.

Variable Documentation

◆ m_bDisableAfterUse

bool m_bDisableAfterUse
protected

Definition at line 15 of file SCR_FastTravelComponent.c.

◆ m_bIsDestinationValid

bool m_bIsDestinationValid
protected

Definition at line 14 of file SCR_FastTravelComponent.c.

◆ m_fNextTravelAvailableAt

WorldTimestamp m_fNextTravelAvailableAt
protected

Definition at line 29 of file SCR_FastTravelComponent.c.

◆ m_iCooldown

int m_iCooldown
protected

Definition at line 20 of file SCR_FastTravelComponent.c.

◆ m_iDestinationId

RplId m_iDestinationId = RplId.Invalid()
protected

Definition at line 10 of file SCR_FastTravelComponent.c.

◆ m_iDistanceToTarget

int m_iDistanceToTarget
protected

Definition at line 23 of file SCR_FastTravelComponent.c.

◆ m_PlayerController

SCR_FastTravelComponentClass m_PlayerController

◆ m_sDestinationName

string m_sDestinationName
protected

Definition at line 12 of file SCR_FastTravelComponent.c.

◆ m_sDestinationType

string m_sDestinationType
protected

Definition at line 26 of file SCR_FastTravelComponent.c.

◆ m_vTeleportCoordinates

vector m_vTeleportCoordinates
protected

Definition at line 17 of file SCR_FastTravelComponent.c.