TF2_OnPlayerTeleport Forward

Called when a player attempts to use a teleporter to decide if the player should be allowed to teleport. Return Plugin_Continue to let the original calculation or return a higher action to override the decision with the value of 'result'

Action TF2_OnPlayerTeleport(int client, int teleporter, bool &result)

Parameters

int client

Client index.

int teleporter

Teleporter entity index.

bool& result

Buffer param for the result of the decision. This is prepopulated with the game's original decision to let a player teleport.

Return Value

Plugin_Continue for original calculation, higher value to use 'result'.