3 #include "../gamemode.qh"
5 void assault_ScoreRules();
7 REGISTER_MUTATOR(as, false)
13 if (time > 1) // game loads at time 1
14 error("This is a game type and it cannot be added at runtime.");
18 MUTATOR_ONROLLBACK_OR_REMOVE
20 // we actually cannot roll back assault_Initialize here
21 // BUT: we don't need to! If this gets called, adding always
27 LOG_INFO("This is a game type and it cannot be removed at runtime.");
35 .entity assault_decreaser;
36 .entity assault_sprite;
39 const int HAVOCBOT_AST_ROLE_NONE = 0;
40 const int HAVOCBOT_AST_ROLE_DEFENSE = 2;
41 const int HAVOCBOT_AST_ROLE_OFFENSE = 4;
43 .int havocbot_role_flags;
44 .float havocbot_attack_time;
46 .void(entity this) havocbot_role;
47 .void(entity this) havocbot_previous_role;
49 void(entity this) havocbot_role_ast_defense;
50 void(entity this) havocbot_role_ast_offense;
52 void(entity bot) havocbot_ast_reset_role;
54 void(entity this, float ratingscale, vector org, float sradius) havocbot_goalrating_items;
55 void(entity this, float ratingscale, vector org, float sradius) havocbot_goalrating_enemyplayers;
58 const float ST_ASSAULT_OBJECTIVES = 1;
60 // predefined spawnfuncs
61 void target_objective_decrease_activate(entity this);