X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fbot%2Fbot.qh;h=043f8332c9c1fe47b2bc3b086526eb64a457a8de;hb=39380aa9e45dbc545f5fe241c0002ce65a6f635e;hp=55f3250ee167294272ed9464c3d6657b23bcdda1;hpb=6ace6194875c750e6ac26b2f9353d259845aa4fd;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/bot/bot.qh b/qcsrc/server/bot/bot.qh index 55f3250ee..043f8332c 100644 --- a/qcsrc/server/bot/bot.qh +++ b/qcsrc/server/bot/bot.qh @@ -2,18 +2,18 @@ * 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; -float AI_STATUS_STUCK = 2048; // Cannot reach any goal +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 .float isbot; // true if this client is actually a bot .float aistatus; @@ -114,3 +114,5 @@ void() havocbot_setupbot; 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);