sloppy AI update to just add extra native giving the index of 1-4 for the autismbots
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user