Allows you to use native and detour functions
- Day of Defeat: Source
- SourceMod 1.11 or later
- Download latest release
- Extract
gamedataandpluginsfolders toaddons/sourcemodfolder of your server
Default behavior of the forwards:
Plugin_Continue- Continue executionPlugin_Changed- The parameters have been changedPlugin_Handled- The same asPlugin_ContinuePlugin_Stop- Stop execution and return my value (if available)
Called before setting the winning team
forward Action GameRules_OnSetWinningTeam(int& team);Called when the team is checked that it is full
Returns the
fullvalue
forward Action GameRules_OnTeamFull(int team, bool& full);Called when the newTeam is checked that it is stacked
Returns the
stackedvalue
forward Action GameRules_OnTeamStacked(int newTeam, int currentTeam, bool& stacked);Called when the client is trying to join the class
Returns the
canJoinvalue
forward Action GameRules_OnCanPlayerJoinClass(int client, int class, bool& canJoin);Called before the client respawn
forward Action Player_OnRespawn(int client);Called before the client joins the team
forward Action Player_OnJoinTeam(int client, int& team);Called before the client joins the class
forward Action Player_OnJoinClass(int client, int& class);Called before the client uses the voiceCommand
forward Action Player_OnVoiceCommand(int client, int& voiceCommand);Set the winning team
native void GameRules_SetWinningTeam(int team);Respawn the dead client or alive if forceRespawn is set to true
Returns
trueon success andfalseotherwise
native bool Player_Respawn(int client, bool forceRespawn = true);Force the client to join the class
native void Player_JoinClass(int client, int class);Force the client to use the voiceCommand
native void Player_VoiceCommand(int client, int voiceCommand);