Implement the ProcessMovment forwards

This commit is contained in:
KiD Fearless 2020-11-23 13:56:30 -07:00
parent 069450d443
commit 06addf326f
2 changed files with 17 additions and 1 deletions

View File

@ -895,6 +895,22 @@ forward Action Shavit_OnCheckpointMenuSelect(int client, int param2, char[] info
*/
forward Action Shavit_OnPlaySound(int client, char[] sound, int maxlength, int[] clients, int &count);
/**
* Called before the server & timer handle the ProcessMovement method.
*
* @param client Client Index.
* @noreturn
*/
forward void Shavit_OnProcessMovement(int client);
/**
* Called After the server handles the ProcessMovement method, but before the timer handles the method.
*
* @param client Client Index.
* @noreturn
*/
forward void Shavit_OnProcessMovementPost(int client);
/**
* Returns the game type the server is running.
*

View File

@ -266,7 +266,7 @@ public void OnPluginStart()
gH_Forwards_OnTimescaleChanged = CreateGlobalForward("Shavit_OnTimescaleChanged", ET_Event, Param_Cell, Param_Cell, Param_Cell);
gH_Forwards_OnTimeOffsetCalculated = CreateGlobalForward("Shavit_OnTimeOffsetCalculated", ET_Event, Param_Cell, Param_Cell, Param_Cell, Param_Cell);
gH_Forwards_OnProcessMovement = CreateGlobalForward("Shavit_OnProcessMovement", ET_Event, Param_Cell);
gH_Forwards_OnProcessMovementPost = CreateGlobalForward("Shavit_OnProcessMovementPre", ET_Event, Param_Cell);
gH_Forwards_OnProcessMovementPost = CreateGlobalForward("Shavit_OnProcessMovementPost", ET_Event, Param_Cell);
LoadTranslations("shavit-core.phrases");
LoadTranslations("shavit-common.phrases");