SDKTools: Add explode parameter to ForcePlayerSuicide native (#1782)

* Expose CommitSuicide params

* A single space

* Validate param count

* Set force param to true by default
This commit is contained in:
Mikusch
2022-07-07 14:14:50 +02:00
committed by GitHub
parent c29e185d2a
commit 278998f7d0
2 changed files with 15 additions and 10 deletions
+2 -1
View File
@@ -102,9 +102,10 @@ native void TeleportEntity(int entity, const float origin[3] = NULL_VECTOR, cons
* Forces a player to commit suicide.
*
* @param client Client index.
* @param explode If true, explode the player.
* @error Invalid client or client not in game, or lack of mod support.
*/
native void ForcePlayerSuicide(int client);
native void ForcePlayerSuicide(int client, bool explode = false);
/**
* Slaps a player in a random direction.