Xonotic
sv_assault.qh
Go to the documentation of this file.
1 #pragma once
2 
4 #include <common/scores.qh>
5 
6 const int ASSAULT_VALUE_INACTIVE = 1000;
7 
8 const int ST_ASSAULT_OBJECTIVES = 1;
9 
13 
14 REGISTER_MUTATOR(as, false)
15 {
18  {
19  g_assault_destructibles = IL_NEW();
20  g_assault_objectivedecreasers = IL_NEW();
21  g_assault_objectives = IL_NEW();
22  GameRules_teams(true);
23  int teams = BITS(2); // always red vs blue
25  field_team(ST_ASSAULT_OBJECTIVES, "objectives", SFL_SORT_PRIO_PRIMARY);
26  field(SP_ASSAULT_OBJECTIVES, "objectives", SFL_SORT_PRIO_PRIMARY);
27  });
28  }
29  return 0;
30 }
31 
32 // sprites
35 
36 // legacy bot defs
37 const int HAVOCBOT_AST_ROLE_NONE = 0;
40 
42 
45 
47 
48 void(entity this, float ratingscale, vector org, float sradius) havocbot_goalrating_items;
49 void(entity this, float ratingscale, vector org, float sradius) havocbot_goalrating_enemyplayers;
50 
51 // assault game mode: Which team is attacking in this round?
53 
54 // predefined spawnfuncs
#define GameRules_scoring(teams, spprio, stprio, fields)
Definition: sv_rules.qh:53
void havocbot_goalrating_items(entity this, float ratingscale, vector org, float sradius)
Definition: roles.qc:106
#define MUTATOR_STATIC()
Definition: base.qh:288
void havocbot_role_ast_offense(entity this)
Definition: sv_assault.qc:459
#define IL_NEW()
const int SFL_SORT_PRIO_SECONDARY
Scoring priority (NOTE: PRIMARY is used for fraglimit)
Definition: scores.qh:126
const int ASSAULT_VALUE_INACTIVE
Definition: sv_assault.qh:6
entity() spawn
const int ST_ASSAULT_OBJECTIVES
Definition: sv_assault.qh:8
const int SFL_SORT_PRIO_PRIMARY
Definition: scores.qh:127
limitations: NULL cannot be present elements can only be present once a maximum of IL_MAX lists can e...
void havocbot_goalrating_enemyplayers(entity this, float ratingscale, vector org, float sradius)
Definition: roles.qc:176
IntrusiveList g_assault_objectives
Definition: sv_assault.qh:12
float havocbot_attack_time
Definition: sv_assault.qh:41
REGISTER_MUTATOR(as, false)
Definition: sv_assault.qh:14
entity assault_decreaser
Definition: sv_assault.qh:33
void target_objective_decrease_activate(entity this)
Definition: sv_assault.qc:106
entity teams
Definition: main.qh:44
const int HAVOCBOT_AST_ROLE_NONE
Definition: sv_assault.qh:37
const int HAVOCBOT_AST_ROLE_DEFENSE
Definition: sv_assault.qh:38
void(entity this) havocbot_role_ast_defense
void GameRules_teams(bool value)
Definition: sv_rules.qc:6
void havocbot_ast_reset_role(entity this)
Definition: sv_assault.qc:544
const int HAVOCBOT_AST_ROLE_OFFENSE
Definition: sv_assault.qh:39
entity assault_sprite
Definition: sv_assault.qh:34
vector(float skel, float bonenum) _skel_get_boneabs_hidden
IntrusiveList g_assault_destructibles
Definition: sv_assault.qh:10
#define MUTATOR_ONADD
Definition: base.qh:284
void havocbot_role_ast_defense(entity this)
Definition: sv_assault.qc:494
#define BITS(n)
Definition: bits.qh:9
float assault_attacker_team
Definition: sv_assault.qh:52
IntrusiveList g_assault_objectivedecreasers
Definition: sv_assault.qh:11