Added TF2_CanPlayerTeleport forward to the TF2 game extension (bug 5283, r=asherkin).

This commit is contained in:
Ryan Stecker
2012-05-28 01:14:46 +01:00
parent 70994cb4b2
commit 3d25938dd7
11 changed files with 192 additions and 1 deletions
+13
View File
@@ -339,6 +339,19 @@ forward TF2_OnWaitingForPlayersStart();
*/
forward TF2_OnWaitingForPlayersEnd();
/**
* 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'
*
* @param client Client index.
* @param teleporter Teleporter entity index.
* @param result Buffer param for the result of the decision.
* This is prepopulated with the game's original decision to let a player teleport.
* @return Plugin_Continue for original calculation, higher value to use 'result'.
*/
forward Action:TF2_OnPlayerTeleport(client, teleporter, &bool:result);
/**
* Do not edit below this line!
*/