sloppy AI update to just add extra native giving the index of 1-4 for the autismbots

This commit is contained in:
jenz
2026-10-09 12:54:23 +02:00
parent 82d16c163a
commit a771e8633f
2 changed files with 62 additions and 16 deletions
@@ -3,8 +3,21 @@
#endif
#define _BotTargeting_Included
/**
* Returns whether the client is one of the autism bots.
* Throws an error if the client is invalid, not in-game or not authorized.
*/
native bool IsClientAutismBot(int client);
/**
* Returns which autism bot the client is.
* Throws an error if the client is invalid, not in-game or not authorized.
*
* @param client Client index.
* @return 1-4 for autism bot 1 to 4, 0 if the client is not an autism bot.
*/
native int GetClientAutismBotIndex(int client);
public SharedPlugin __pl_BotTargeting =
{
name = "BotTargeting",
@@ -20,5 +33,6 @@ public SharedPlugin __pl_BotTargeting =
public __pl_BotTargeting_SetNTVOptional()
{
MarkNativeAsOptional("IsClientAutismBot");
MarkNativeAsOptional("GetClientAutismBotIndex");
}
#endif