]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/bot/scripting.qh
Merge branch 'master' into Mario/hagar_notfixed
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / bot / scripting.qh
index d5cdda9d69859d483cd69786389e8236bb2bd701..cb6cd8731daab16ad2d43147a5c64ad0f5f3f71e 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef BOT_SCRIPTING_H
-#define BOT_SCRIPTING_H
+#pragma once
 
 #define BOT_EXEC_STATUS_IDLE 0
 #define BOT_EXEC_STATUS_PAUSED 1
@@ -43,8 +42,8 @@ const int BOT_CMD_COUNTER             = 24;   // Update this value if you add/remove a comma
 
 // NOTE: Following commands should be implemented on the bot ai
 //              If a new command should be handled by the target ai(s) please declare it here
-.float(vector) cmd_moveto;
-.float() cmd_resetgoal;
+.float(entity, vector) cmd_moveto;
+.float(entity) cmd_resetgoal;
 
 //
 const int BOT_CMD_PARAMETER_NONE = 0;
@@ -77,7 +76,6 @@ void bot_resetqueues();
 void bot_queuecommand(entity bot, string cmdstring);
 void bot_cmdhelp(string scmd);
 void bot_list_commands();
-float bot_execute_commands();
+float bot_execute_commands(entity this);
 entity find_bot_by_name(string name);
 entity find_bot_by_number(float number);
-#endif