Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
sv_assault.qh
Go to the documentation of this file.
1#pragma once
2
4#include <common/scores.qh>
5
6const int ASSAULT_VALUE_INACTIVE = 1000;
7
9
13
15{
18 {
22 GameRules_teams(true);
23 int teams = BITS(2); // always red vs blue
25 {
26 field_team(ST_ASSAULT_OBJECTIVES, "objectives", SFL_SORT_PRIO_PRIMARY);
27 field(SP_ASSAULT_OBJECTIVES, "objectives", SFL_SORT_PRIO_PRIMARY);
28 });
29 }
30 return 0;
31}
32
33// sprites
36
37// legacy bot defs
41
43
46
48
49void(entity this, float ratingscale, vector org, float sradius) havocbot_goalrating_items;
50void(entity this, float ratingscale, vector org, float sradius) havocbot_goalrating_enemyplayers;
51
52// assault gametype: Which team is attacking in this round?
54
55// predefined spawnfuncs
#define MUTATOR_ONADD
Definition base.qh:309
#define REGISTER_MUTATOR(...)
Definition base.qh:295
#define MUTATOR_STATIC()
Definition base.qh:313
#define BITS(n)
Definition bits.qh:9
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
limitations: NULL cannot be present elements can only be present once a maximum of IL_MAX lists can e...
entity teams
Definition main.qh:58
const int SFL_SORT_PRIO_SECONDARY
Scoring priority (NOTE: PRIMARY is used for fraglimit) NOTE: SFL_SORT_PRIO_SECONDARY value must be lo...
Definition scores.qh:133
const int SFL_SORT_PRIO_PRIMARY
Definition scores.qh:134
#define IL_NEW()
vector
Definition self.qh:92
vector org
Definition self.qh:92
void
Definition self.qh:72
void havocbot_role_ast_defense(entity this)
void havocbot_ast_reset_role(entity this)
void havocbot_role_ast_offense(entity this)
entity assault_decreaser
Definition sv_assault.qh:34
IntrusiveList g_assault_destructibles
Definition sv_assault.qh:10
const int ASSAULT_VALUE_INACTIVE
Definition sv_assault.qh:6
IntrusiveList g_assault_objectives
Definition sv_assault.qh:12
const int HAVOCBOT_AST_ROLE_OFFENSE
Definition sv_assault.qh:40
const int HAVOCBOT_AST_ROLE_DEFENSE
Definition sv_assault.qh:39
float havocbot_attack_time
Definition sv_assault.qh:42
IntrusiveList g_assault_objectivedecreasers
Definition sv_assault.qh:11
entity assault_sprite
Definition sv_assault.qh:35
void target_objective_decrease_activate(entity this)
const int ST_ASSAULT_OBJECTIVES
Definition sv_assault.qh:8
const int HAVOCBOT_AST_ROLE_NONE
Definition sv_assault.qh:38
int assault_attacker_team
Definition sv_assault.qh:53
void havocbot_goalrating_items(entity this, float ratingscale, vector org, float sradius)
Definition roles.qc:106
void havocbot_goalrating_enemyplayers(entity this, float ratingscale, vector org, float sradius)
Definition roles.qc:176
void GameRules_teams(bool value)
Definition sv_rules.qc:3
#define GameRules_scoring(teams, spprio, stprio, fields)
Definition sv_rules.qh:58