Xonotic
|
#include "roles.qh"
#include <common/resources/sv_resources.qh>
#include <common/stats.qh>
#include <common/mutators/mutator/powerups/_mod.qh>
#include <common/mutators/mutator/status_effects/_mod.qh>
#include <common/weapons/_all.qh>
#include <server/bot/default/bot.qh>
#include <server/bot/default/cvars.qh>
#include <server/bot/default/havocbot/havocbot.qh>
#include <server/bot/default/navigation.qh>
#include <server/items/items.qh>
#include <server/items/spawning.qh>
#include <server/mutators/_mod.qh>
Go to the source code of this file.
Functions | |
void | havocbot_chooserole (entity this) |
void | havocbot_chooserole_generic (entity this) |
void | havocbot_goalrating_enemyplayers (entity this, float ratingscale, vector org, float sradius) |
bool | havocbot_goalrating_item_can_be_left_to_teammate (entity this, entity player, entity item) |
bool | havocbot_goalrating_item_pickable_check_players (entity this, vector org, entity item, vector item_org) |
void | havocbot_goalrating_items (entity this, float ratingscale, vector org, float sradius) |
void | havocbot_goalrating_waypoints (entity this, float ratingscale, vector org, float sradius) |
void | havocbot_role_generic (entity this) |
Definition at line 241 of file roles.qc.
References havocbot_chooserole_generic(), LOG_TRACE, MUTATOR_CALLHOOK, and navigation_goalrating_timeout_force().
Referenced by havocbot_setupbot().
Definition at line 236 of file roles.qc.
References havocbot_role_generic().
Referenced by havocbot_chooserole().
Definition at line 176 of file roles.qc.
References autocvar_bot_nofire, BOT_RATING_ENEMY, bot_shouldattack(), bound(), FOREACH_CLIENT, GetResource(), IS_PLAYER, max(), navigation_routerating(), RES_HEALTH, skill, time, vdist, vec2, waterlevel, and WATERLEVEL_WETFEET.
Referenced by havocbot_role_ast_defense(), havocbot_role_ast_offense(), havocbot_role_ctf_defense(), havocbot_role_ctf_middle(), havocbot_role_ft_freeing(), havocbot_role_ft_offense(), havocbot_role_generic(), havocbot_role_ka_carrier(), havocbot_role_ka_collector(), and havocbot_role_ons_offense().
Definition at line 45 of file roles.qc.
References GetResource(), and RES_HEALTH.
bool havocbot_goalrating_item_pickable_check_players | ( | entity | this, |
vector | org, | ||
entity | item, | ||
vector | item_org | ||
) |
Definition at line 60 of file roles.qc.
References autocvar_bot_ai_friends_aware_pickup_radius, FLOAT_MAX, FOREACH_CLIENT, IS_DEAD, IS_PLAYER, teamplay, and vlen2.
Referenced by havocbot_goalrating_items(), and navigation_goalrating_timeout_can_be_anticipated().
Definition at line 106 of file roles.qc.
References g_items, havocbot_goalrating_item_pickable_check_players(), ignoregoal, ignoregoaltime, IL_EACH, IN_LAVA, IS_ONGROUND, Item_IsLoot(), navigation_routerating(), NULL, time, trace_endpos, vdist, and vector().
Referenced by havocbot_goalrating_kh(), havocbot_role_ast_defense(), havocbot_role_ast_offense(), havocbot_role_ctf_carrier(), havocbot_role_ctf_defense(), havocbot_role_ctf_escort(), havocbot_role_ctf_middle(), havocbot_role_ctf_offense(), havocbot_role_ctf_retriever(), havocbot_role_dom(), havocbot_role_ft_freeing(), havocbot_role_ft_offense(), havocbot_role_generic(), havocbot_role_ka_carrier(), havocbot_role_ka_collector(), and havocbot_role_ons_offense().
Definition at line 16 of file roles.qc.
References g_waypoints, IL_EACH, max(), navigation_bestgoal, random(), vdist, and WAYPOINTFLAG_TELEPORT.
Referenced by havocbot_role_dom(), havocbot_role_ft_freeing(), havocbot_role_ft_offense(), havocbot_role_generic(), and havocbot_role_ka_carrier().
Definition at line 219 of file roles.qc.
References havocbot_goalrating_enemyplayers(), havocbot_goalrating_items(), havocbot_goalrating_waypoints(), IS_DEAD, navigation_goalrating_end(), navigation_goalrating_start(), navigation_goalrating_timeout(), navigation_goalrating_timeout_set(), and origin.
Referenced by havocbot_chooserole_generic().