3 #include "../gamemode.qh"
5 const int ST_ASSAULT_OBJECTIVES = 1;
7 REGISTER_MUTATOR(as, false)
12 GameRules_teams(true);
13 int teams = BITS(2); // always red vs blue
14 GameRules_scoring(teams, SFL_SORT_PRIO_SECONDARY, SFL_SORT_PRIO_SECONDARY, {
15 field_team(ST_ASSAULT_OBJECTIVES, "objectives", SFL_SORT_PRIO_PRIMARY);
16 field(SP_ASSAULT_OBJECTIVES, "objectives", SFL_SORT_PRIO_PRIMARY);
23 .entity assault_decreaser;
24 .entity assault_sprite;
27 const int HAVOCBOT_AST_ROLE_NONE = 0;
28 const int HAVOCBOT_AST_ROLE_DEFENSE = 2;
29 const int HAVOCBOT_AST_ROLE_OFFENSE = 4;
31 .int havocbot_role_flags;
32 .float havocbot_attack_time;
34 .void(entity this) havocbot_role;
35 .void(entity this) havocbot_previous_role;
37 void(entity this) havocbot_role_ast_defense;
38 void(entity this) havocbot_role_ast_offense;
40 void(entity bot) havocbot_ast_reset_role;
42 void(entity this, float ratingscale, vector org, float sradius) havocbot_goalrating_items;
43 void(entity this, float ratingscale, vector org, float sradius) havocbot_goalrating_enemyplayers;
45 // predefined spawnfuncs
46 void target_objective_decrease_activate(entity this);