X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fbot%2Fbot.qh;h=bcae58dc181e0c89b9db7ef02e729d2660516e04;hb=390d33b5f587dc807ae08ffe39adc1d762fc7f4c;hp=0550431e968bd8b31b49a7c7546a89faed272bd5;hpb=715202f719f244160bfc0b004013fa6e1bcc5668;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/bot/bot.qh b/qcsrc/server/bot/bot.qh index 0550431e9..bcae58dc1 100644 --- a/qcsrc/server/bot/bot.qh +++ b/qcsrc/server/bot/bot.qh @@ -1,21 +1,24 @@ +#ifndef BOT_H +#define BOT_H /* * Globals and Fields */ -float AI_STATUS_ROAMING = 1; // Bot is just crawling the map. No enemies at sight -float AI_STATUS_ATTACKING = 2; // There are enemies at sight -float AI_STATUS_RUNNING = 4; // Bot is bunny hopping -float AI_STATUS_DANGER_AHEAD = 8; // There is lava/slime/trigger_hurt ahead -float AI_STATUS_OUT_JUMPPAD = 16; // Trying to get out of a "vertical" jump pad -float AI_STATUS_OUT_WATER = 32; // Trying to get out of water -float AI_STATUS_WAYPOINT_PERSONAL_LINKING = 64; // Waiting for the personal waypoint to be linked -float AI_STATUS_WAYPOINT_PERSONAL_GOING = 128; // Going to a personal waypoint -float AI_STATUS_WAYPOINT_PERSONAL_REACHED = 256; // Personal waypoint reached -float AI_STATUS_JETPACK_FLYING = 512; -float AI_STATUS_JETPACK_LANDING = 1024; +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; @@ -108,10 +111,11 @@ void bot_serverframe(); * Imports */ -float sv_maxspeed; - 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