X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fbot%2Fscripting.qh;h=cb6cd8731daab16ad2d43147a5c64ad0f5f3f71e;hb=37cf62041a76248472ef6a78feaaed33e35a2260;hp=d5cdda9d69859d483cd69786389e8236bb2bd701;hpb=1bc3ab0285f65c7ed0c75cbba00da2460921c973;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/bot/scripting.qh b/qcsrc/server/bot/scripting.qh index d5cdda9d6..cb6cd8731 100644 --- a/qcsrc/server/bot/scripting.qh +++ b/qcsrc/server/bot/scripting.qh @@ -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