3 #include "../gamemode.qh"
5 void assault_ScoreRules();
7 REGISTER_MUTATOR(as, false)
10 have_team_spawns = -1; // request team spawns
14 if (time > 1) // game loads at time 1
15 error("This is a game type and it cannot be added at runtime.");
19 MUTATOR_ONROLLBACK_OR_REMOVE
21 // we actually cannot roll back assault_Initialize here
22 // BUT: we don't need to! If this gets called, adding always
28 LOG_INFO("This is a game type and it cannot be removed at runtime.");
36 .entity assault_decreaser;
37 .entity assault_sprite;
40 const int HAVOCBOT_AST_ROLE_NONE = 0;
41 const int HAVOCBOT_AST_ROLE_DEFENSE = 2;
42 const int HAVOCBOT_AST_ROLE_OFFENSE = 4;
44 .int havocbot_role_flags;
45 .float havocbot_attack_time;
47 .void(entity this) havocbot_role;
48 .void(entity this) havocbot_previous_role;
50 void(entity this) havocbot_role_ast_defense;
51 void(entity this) havocbot_role_ast_offense;
52 .entity havocbot_ast_target;
54 void(entity bot) havocbot_ast_reset_role;
56 void(entity this, float ratingscale, vector org, float sradius) havocbot_goalrating_items;
57 void(entity this, float ratingscale, vector org, float sradius) havocbot_goalrating_enemyplayers;
60 const float ST_ASSAULT_OBJECTIVES = 1;
62 // predefined spawnfuncs
63 void target_objective_decrease_activate(entity this);