Xonotic
|
#include <common/mutators/base.qh>
Go to the source code of this file.
Macros | |
#define | CPGEN_SPAWN_OFFSET ('0 0 1' * (PL_MAX_CONST.z - 13)) |
Functions | |
void | havocbot_goalrating_enemyplayers (entity this, float ratingscale, vector org, float sradius) |
void | havocbot_goalrating_items (entity this, float ratingscale, vector org, float sradius) |
void | havocbot_ons_reset_role (entity this) |
void | havocbot_role_ons_assistant (entity this) |
void | havocbot_role_ons_defense (entity this) |
void | havocbot_role_ons_offense (entity this) |
bool | ons_ControlPoint_Attackable (entity cp, int teamnum) |
void | ons_ControlPoint_UpdateSprite (entity e) |
void | ons_Generator_UpdateSprite (entity e) |
void | ons_Initialize () |
REGISTER_MUTATOR (ons, false) | |
#define CPGEN_SPAWN_OFFSET ('0 0 1' * (PL_MAX_CONST.z - 13)) |
Definition at line 27 of file sv_onslaught.qh.
Referenced by ons_GeneratorSetup().
Definition at line 176 of file roles.qc.
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_ka_carrier(), havocbot_role_ka_collector(), and havocbot_role_ons_offense().
Definition at line 106 of file roles.qc.
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_ka_carrier(), havocbot_role_ka_collector(), and havocbot_role_ons_offense().
Definition at line 1472 of file sv_onslaught.qc.
References HAVOCBOT_ONS_ROLE_OFFENSE, havocbot_ons_target, havocbot_role_ons_setrole(), IS_DEAD, and NULL.
Referenced by havocbot_role_ons_assistant(), havocbot_role_ons_defense(), havocbot_role_ons_offense(), and MUTATOR_HOOKFUNCTION().
Definition at line 1462 of file sv_onslaught.qc.
References havocbot_ons_reset_role().
Referenced by havocbot_role_ons_setrole().
Definition at line 1467 of file sv_onslaught.qc.
References havocbot_ons_reset_role().
Referenced by havocbot_role_ons_setrole().
Definition at line 1427 of file sv_onslaught.qc.
References havocbot_attack_time, havocbot_goalrating_enemyplayers(), havocbot_goalrating_items(), havocbot_goalrating_ons_controlpoints_attack(), havocbot_goalrating_ons_generator_attack(), havocbot_ons_reset_role(), havocbot_role_timeout, IS_DEAD, navigation_goalrating_end(), navigation_goalrating_start(), navigation_goalrating_timeout(), navigation_goalrating_timeout_set(), origin, and time.
Referenced by havocbot_goalrating_ons_controlpoints_attack(), and havocbot_role_ons_setrole().
Definition at line 330 of file sv_onslaught.qc.
References ons_ControlPoint_CanBeLinked().
Referenced by MUTATOR_HOOKFUNCTION(), ons_CaptureShield_Customize(), ons_CaptureShield_Touch(), ons_ControlPoint_Touch(), and ons_ControlPoint_Waypoint().
Definition at line 651 of file sv_onslaught.qc.
References colormapPaletteColor, entity(), GetResource(), NUM_TEAM_1, NUM_TEAM_2, NUM_TEAM_3, NUM_TEAM_4, ons_ControlPoint_CanBeLinked(), ons_ControlPoint_Waypoint(), RES_HEALTH, and s1.
Referenced by onslaught_updatelinks().
Definition at line 829 of file sv_onslaught.qc.
References colormapPaletteColor, entity(), ons_Generator_Waypoint(), and s1.
Referenced by onslaught_updatelinks().
void ons_Initialize | ( | ) |
Definition at line 2151 of file sv_onslaught.qc.
References autocvar_g_onslaught_shield_force, cam, g_onslaught, g_onsshields, IL_NEW, InitializeEntity(), NULL, ons_captureshield_force, and ons_DelayedInit().
Referenced by REGISTER_MUTATOR().
REGISTER_MUTATOR | ( | ons | , |
false | |||
) |
Definition at line 9 of file sv_onslaught.qh.
References autocvar_g_onslaught_point_limit, GameRules_limit_score(), GameRules_teams(), MUTATOR_ONADD, MUTATOR_STATIC, and ons_Initialize().
int arecpsneighbor |
Definition at line 61 of file sv_onslaught.qh.
int aregensneighbor |
Definition at line 60 of file sv_onslaught.qh.
float autocvar_g_onslaught_point_limit |
Definition at line 5 of file sv_onslaught.qh.
Referenced by REGISTER_MUTATOR().
const vector CPGEN_WAYPOINT_OFFSET = ('0 0 128') |
Definition at line 28 of file sv_onslaught.qh.
Referenced by ons_ControlPoint_Setup(), and ons_GeneratorSetup().
const vector CPICON_OFFSET = ('0 0 96') |
Definition at line 29 of file sv_onslaught.qh.
Referenced by ons_ControlPoint_Icon_Spawn().
IntrusiveList g_onsshields |
Definition at line 6 of file sv_onslaught.qh.
Referenced by ons_CaptureShield_Spawn(), ons_Initialize(), and onslaught_updatelinks().
const float GEN_THINKRATE = 1 |
Definition at line 26 of file sv_onslaught.qh.
Referenced by ons_GeneratorReset(), ons_GeneratorSetup(), and ons_GeneratorThink().
float havocbot_attack_time |
Definition at line 86 of file sv_onslaught.qh.
const int HAVOCBOT_ONS_ROLE_ASSISTANT = 4 |
Definition at line 81 of file sv_onslaught.qh.
Referenced by havocbot_role_ons_setrole().
const int HAVOCBOT_ONS_ROLE_DEFENSE = 2 |
Definition at line 80 of file sv_onslaught.qh.
Referenced by havocbot_role_ons_setrole().
const int HAVOCBOT_ONS_ROLE_NONE = 0 |
Definition at line 79 of file sv_onslaught.qh.
const int HAVOCBOT_ONS_ROLE_OFFENSE = 8 |
Definition at line 82 of file sv_onslaught.qh.
Referenced by havocbot_ons_reset_role(), and havocbot_role_ons_setrole().
entity havocbot_ons_target |
Definition at line 84 of file sv_onslaught.qh.
Referenced by havocbot_goalrating_ons_controlpoints_attack(), and havocbot_ons_reset_role().
int iscaptured |
Definition at line 46 of file sv_onslaught.qh.
int islinked |
Definition at line 47 of file sv_onslaught.qh.
Referenced by ons_ControlPoint_Reset(), ons_GeneratorDamage(), and ons_GeneratorReset().
int isshielded |
Definition at line 48 of file sv_onslaught.qh.
Referenced by ons_ControlPoint_Reset(), ons_GeneratorDamage(), ons_GeneratorReset(), and ons_GeneratorThink().
int lastcaptured |
Definition at line 52 of file sv_onslaught.qh.
float lasthealth |
Definition at line 49 of file sv_onslaught.qh.
Referenced by ons_GeneratorDamage(), and ons_GeneratorReset().
int lastshielded |
Definition at line 51 of file sv_onslaught.qh.
int lastteam |
Definition at line 50 of file sv_onslaught.qh.
float ons_captureshield_force |
Definition at line 76 of file sv_onslaught.qh.
Referenced by ons_CaptureShield_Touch(), and ons_Initialize().
const float ONS_CP_THINKRATE = 0.2 |
Definition at line 25 of file sv_onslaught.qh.
Referenced by ons_ControlPoint_Icon_BuildThink(), ons_ControlPoint_Icon_Damage(), ons_ControlPoint_Icon_Heal(), ons_ControlPoint_Icon_Spawn(), ons_ControlPoint_Icon_Think(), ons_ControlPoint_Reset(), ons_ControlPoint_Setup(), and ons_ControlPoint_Think().
vector ons_deathloc |
Definition at line 66 of file sv_onslaught.qh.
float ons_notification_time[17] |
Definition at line 62 of file sv_onslaught.qh.
Referenced by ons_ControlPoint_Icon_Damage().
float ons_overtime_damagedelay |
Definition at line 64 of file sv_onslaught.qh.
entity ons_spawn_by |
Definition at line 68 of file sv_onslaught.qh.
bool ons_stalemate |
Definition at line 56 of file sv_onslaught.qh.
Referenced by MUTATOR_HOOKFUNCTION(), and Onslaught_CheckWinner().
entity ons_toucher |
Definition at line 22 of file sv_onslaught.qh.
Referenced by ons_ControlPoint_Reset(), and ons_ControlPoint_Touch().
entity ons_worldcplist |
Definition at line 36 of file sv_onslaught.qh.
Referenced by havocbot_goalrating_ons_controlpoints_attack(), MUTATOR_HOOKFUNCTION(), ons_ControlPoint_Setup(), ons_Count_SelfControlPoints(), ons_Nearest_ControlPoint(), ons_Nearest_ControlPoint_2D(), Onslaught_CheckWinner(), Onslaught_RoundStart(), and onslaught_updatelinks().
entity ons_worldcpnext |
Definition at line 37 of file sv_onslaught.qh.
entity ons_worldgeneratorlist |
Definition at line 32 of file sv_onslaught.qh.
Referenced by havocbot_goalrating_ons_generator_attack(), MUTATOR_HOOKFUNCTION(), ons_Count_SelfControlPoints(), ons_GeneratorSetup(), ons_Nearest_ControlPoint(), ons_Nearest_ControlPoint_2D(), Onslaught_CheckWinner(), Onslaught_count_generators(), Onslaught_RoundStart(), and onslaught_updatelinks().
entity ons_worldgeneratornext |
Definition at line 33 of file sv_onslaught.qh.
entity ons_worldlinklist |
Definition at line 40 of file sv_onslaught.qh.
Referenced by onslaught_updatelinks(), and spawnfunc().
entity ons_worldlinknext |
Definition at line 41 of file sv_onslaught.qh.
Referenced by spawnfunc().
entity sprite |
Definition at line 44 of file sv_onslaught.qh.
const int ST_ONS_CAPS = 1 |
Definition at line 97 of file sv_onslaught.qh.
Referenced by ons_ScoreRules(), and Onslaught_CheckWinner().
string target2 |
Definition at line 45 of file sv_onslaught.qh.
Referenced by DelayThink(), Monster_Damage(), Monster_Move(), Monster_Spawn(), ons_DelayedLinkSetup(), spawnfunc(), SUB_UseTargets_Ex(), and trigger_keylock_touch().
float teleport_antispam |
Definition at line 58 of file sv_onslaught.qh.
bool waslinked |
Definition at line 54 of file sv_onslaught.qh.