X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fbot%2Fbot.qh;h=ac89f06a7382dc91aec1d68427af2b4b0a6269c1;hb=95c7f3405f82d9975617acc0ca4d4bcf5c4acba2;hp=043f8332c9c1fe47b2bc3b086526eb64a457a8de;hpb=a7794afc2db05650096d9c22e55cb1ca6d82aa9b;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/bot/bot.qh b/qcsrc/server/bot/bot.qh index 043f8332c..ac89f06a7 100644 --- a/qcsrc/server/bot/bot.qh +++ b/qcsrc/server/bot/bot.qh @@ -1,22 +1,24 @@ +#ifndef BOT_H +#define BOT_H /* * Globals and Fields */ -const float AI_STATUS_ROAMING = 1; // Bot is just crawling the map. No enemies at sight -const float AI_STATUS_ATTACKING = 2; // There are enemies at sight -const float AI_STATUS_RUNNING = 4; // Bot is bunny hopping -const float AI_STATUS_DANGER_AHEAD = 8; // There is lava/slime/trigger_hurt ahead -const float AI_STATUS_OUT_JUMPPAD = 16; // Trying to get out of a "vertical" jump pad -const float AI_STATUS_OUT_WATER = 32; // Trying to get out of water -const float AI_STATUS_WAYPOINT_PERSONAL_LINKING = 64; // Waiting for the personal waypoint to be linked -const float AI_STATUS_WAYPOINT_PERSONAL_GOING = 128; // Going to a personal waypoint -const float AI_STATUS_WAYPOINT_PERSONAL_REACHED = 256; // Personal waypoint reached -const float AI_STATUS_JETPACK_FLYING = 512; -const float AI_STATUS_JETPACK_LANDING = 1024; -const float AI_STATUS_STUCK = 2048; // Cannot reach any goal +const int AI_STATUS_ROAMING = 1; // Bot is just crawling the map. No enemies at sight +const int AI_STATUS_ATTACKING = 2; // There are enemies at sight +const int AI_STATUS_RUNNING = 4; // Bot is bunny hopping +const int AI_STATUS_DANGER_AHEAD = 8; // There is lava/slime/trigger_hurt ahead +const int AI_STATUS_OUT_JUMPPAD = 16; // Trying to get out of a "vertical" jump pad +const int AI_STATUS_OUT_WATER = 32; // Trying to get out of water +const int AI_STATUS_WAYPOINT_PERSONAL_LINKING = 64; // Waiting for the personal waypoint to be linked +const int AI_STATUS_WAYPOINT_PERSONAL_GOING = 128; // Going to a personal waypoint +const int AI_STATUS_WAYPOINT_PERSONAL_REACHED = 256; // Personal waypoint reached +const int AI_STATUS_JETPACK_FLYING = 512; +const int AI_STATUS_JETPACK_LANDING = 1024; +const int AI_STATUS_STUCK = 2048; // Cannot reach any goal .float isbot; // true if this client is actually a bot -.float aistatus; +.int aistatus; // Skill system float skill; @@ -89,6 +91,7 @@ float bot_ignore_bots; // let bots not attack other bots (only works in non-team */ entity bot_spawn(); +float bot_fixcount(); void bot_think(); void bot_setnameandstuff(); @@ -111,8 +114,9 @@ void bot_serverframe(); void() havocbot_setupbot; -float c1, c2, c3, c4; +//float c1, c2, c3, c4; void CheckAllowedTeams(entity for_whom); void GetTeamCounts(entity other); float JoinBestTeam(entity pl, float only_return_best, float forcebestteam); void bot_calculate_stepheightvec(void); +#endif