X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fbot%2Fapi.qc;h=274b0340335beed726f58bce67fc0d0db5fd0fc8;hb=75c1433de7d802bbb9a1212e30cd70596dac0aee;hp=85b0e46568ddad223ba9cce0d67808d616df82ac;hpb=2e2557d4f7fcbf008ec437fa3dfc98ded3c8f488;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/bot/api.qc b/qcsrc/server/bot/api.qc index 85b0e4656..274b03403 100644 --- a/qcsrc/server/bot/api.qc +++ b/qcsrc/server/bot/api.qc @@ -1,49 +1 @@ #include "api.qh" - -#if 1 - -#include "default/_mod.inc" -#include "default/havocbot/_mod.inc" - -#else - -bool bot_aim(entity this, float shotspeed, float shotspeedupward, float maxshottime, float applygravity) { return false; } -void bot_clientconnect(entity this) { } -void bot_clientdisconnect(entity this) { } -void bot_cmdhelp(string scmd) { } -void bot_endgame() { } -bool bot_fixcount() { return true; } -void bot_list_commands() { } -void bot_queuecommand(entity bot, string cmdstring) { } -void bot_relinkplayerlist() { } -void bot_resetqueues() { } -void bot_serverframe() { } -bool bot_shouldattack(entity this, entity e) { return false; } -void bot_think(entity this) { } - -entity find_bot_by_name(string name) { return NULL; } -entity find_bot_by_number(float number) { return NULL; } - -void havocbot_goalrating_controlpoints(entity this, float ratingscale, vector org, float sradius) { } -void havocbot_goalrating_enemyplayers(entity this, float ratingscale, vector org, float sradius) { } -void havocbot_goalrating_items(entity this, float ratingscale, vector org, float sradius) { } - -entity navigation_findnearestwaypoint(entity ent, float walkfromwp) { return NULL; } -void navigation_goalrating_end(entity this) { } -void navigation_goalrating_start(entity this) { } -void navigation_markroutes(entity this, entity fixed_source_waypoint) { } -void navigation_markroutes_inverted(entity fixed_source_waypoint) { } -void navigation_routerating(entity this, entity e, float f, float rangebias) { } - -bool tracewalk(entity e, vector start, vector m1, vector m2, vector end, float movemode) { return false; } - -void waypoint_remove(entity e) { } -void waypoint_saveall() { } -void waypoint_schedulerelinkall() { } -void waypoint_schedulerelink(entity wp) { } -void waypoint_spawnforitem(entity e) { } -void waypoint_spawnforitem_force(entity e, vector org) { } -void waypoint_spawnforteleporter(entity e, vector destination, float timetaken) { } -void waypoint_spawnforteleporter_v(entity e, vector org, vector destination, float timetaken) { } -entity waypoint_spawn(vector m1, vector m2, float f) { return NULL; } -#endif