|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
#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 entity(), 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 entity(), and havocbot_role_generic().
Referenced by havocbot_chooserole().
Definition at line 176 of file roles.qc.
References autocvar_bot_nofire, autocvar_sv_maxspeed, BOT_RATING_ENEMY, bot_shouldattack(), bound(), entity(), FOREACH_CLIENT, GetResource(), IS_PLAYER, max(), navigation_routerating(), org, RES_ARMOR, skill, StatusEffects_gettime(), time, vdist, vec2, vector, 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(), havocbot_role_ons_offense(), havocbot_role_tka_carrier(), havocbot_role_tka_collector(), and void().
Definition at line 45 of file roles.qc.
References entity(), GetResource(), IT_UNLIMITED_AMMO, items, RES_ARMOR, and STAT.
Referenced by havocbot_goalrating_item_pickable_check_players().
| 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, entity(), FLOAT_MAX, FOREACH_CLIENT, havocbot_goalrating_item_can_be_left_to_teammate(), IS_DEAD, IS_PLAYER, IS_REAL_CLIENT, org, STAT, teamplay, vector, and vlen2.
Referenced by havocbot_goalrating_items(), and navigation_goalrating_timeout_can_be_anticipated().
Definition at line 106 of file roles.qc.
References entity(), g_items, havocbot_goalrating_item_pickable_check_players(), ignoregoal, ignoregoaltime, IL_EACH, IN_LAVA, IS_ONGROUND, ITEM_IS_LOOT, navigation_routerating(), NULL, org, 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(), havocbot_role_ons_offense(), havocbot_role_tka_carrier(), havocbot_role_tka_collector(), and void().
Definition at line 16 of file roles.qc.
References entity(), g_waypoints, IL_EACH, max(), navigation_bestgoal, org, random(), vdist, vector, and WAYPOINTFLAG_TELEPORT.
Referenced by havocbot_role_dom(), havocbot_role_ft_freeing(), havocbot_role_ft_offense(), havocbot_role_generic(), havocbot_role_ka_carrier(), and havocbot_role_tka_carrier().
Definition at line 219 of file roles.qc.
References entity(), 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().