Forwards - Phil25/RTD GitHub Wiki
Contents
^
Action TypeName | Description |
---|---|
RTD2_CanRollDice | Called to determine if the player can use the dice mod. |
RTD2_CanForcePerk | Called when a perk is about to be forced by an admin on a target. |
RTD2_CanRemovePerk | Called when a perk is about to be removed by an admin from a target. |
^
RegularName | Description |
---|---|
RTD2_Rolled | Called when a perk has just been activated on a player. |
RTD2_Removed | Called when a perk has just been removed from a player. |
^
External Perk ManagementName | Description |
---|---|
RTD2_OnRegOpen | Called when RTD is ready handle perk registration. |
^
RTD2_CanRollDiceCalled every client roll to determine if the they can use the dice mod.
sm_forcertd
command andRTD2_Force
native do not call this.
Action RTD2_CanRollDice(int client)
Parameters
int client
— Client index.
Return Plugin_Continue to allow, anything else denies access.
^
RTD2_CanForcePerkCalled when a perk is about to be forced by an admin (client) on a target (iTarget).
Called only by
sm_forcertd
command andRTD2_Force
native.
Action RTD2_CanForcePerk(int client, int iTarget, RTDPerk perk)
Parameters
int client
— Admin client index.int iTarget
— Target client index.RTDPerk perk
— RTDPerk object being forced.
Return Plugin_Continue to allow, anything else denies the force.
^
RTD2_CanRemovePerkCalled when a perk is about to be removed by an admin (client) from a target (iTarget).
Called only by
sm_removertd
command andRTD2_Remove
native.
Action RTD2_CanRemovePerk(int client, int iTarget, RTDPerk perk)
Parameters
int client
— Admin client index.int iTarget
— Target client index.RTDPerk perk
— RTDPerk object being removed.
Return Plugin_Continue to allow, anything else denies the removal.
^
RTD2_RolledCalled when a perk has just been activated on a player.
void RTD2_Rolled(int client, RTDPerk perk, int iDuration)
Parameters
int client
— Client index.RTDPerk perk
— RTDPerk object.int iDuration
— Duration in seconds, -1 if perk has no timer.
^
RTD2_RemovedCalled when a perk has just been removed from a player.
void RTD2_Removed(int client, RTDPerk perk, RTDRemoveReason reason)
Parameters
int client
— Client index.RTDPerk perk
— RTDPerk object.RTDRemoveReason reason
— RTDRemoveReason enum.
^
RTD2_OnRegOpenCalled when the plugin is ready to handle external perk registration.
If your module registers any, RTD2_ObtainPerk() should always be executed in this forward
void RTD2_OnRegOpen()