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#include <server/teamplay.qh>
6
7const int ASSAULT_VALUE_INACTIVE = 1000;
8
10
14
16{
19 {
23 GameRules_teams(true);
24 teamplay_bitmask = BITS(2); // always red vs blue
26 {
27 field_team(ST_ASSAULT_OBJECTIVES, "objectives", SFL_SORT_PRIO_PRIMARY);
28 field(SP_ASSAULT_OBJECTIVES, "objectives", SFL_SORT_PRIO_PRIMARY);
29 });
30 }
31 return 0;
32}
33
34// sprites
37
38// legacy bot defs
42
44
47
49
50void(entity this, float ratingscale, vector org, float sradius) havocbot_goalrating_items;
51void(entity this, float ratingscale, vector org, float sradius) havocbot_goalrating_enemyplayers;
52
53// assault gametype: Which team is attacking in this round?
55
56// 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...
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:96
vector org
Definition self.qh:96
void
Definition self.qh:76
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:35
IntrusiveList g_assault_destructibles
Definition sv_assault.qh:11
const int ASSAULT_VALUE_INACTIVE
Definition sv_assault.qh:7
IntrusiveList g_assault_objectives
Definition sv_assault.qh:13
const int HAVOCBOT_AST_ROLE_OFFENSE
Definition sv_assault.qh:41
const int HAVOCBOT_AST_ROLE_DEFENSE
Definition sv_assault.qh:40
float havocbot_attack_time
Definition sv_assault.qh:43
IntrusiveList g_assault_objectivedecreasers
Definition sv_assault.qh:12
entity assault_sprite
Definition sv_assault.qh:36
void target_objective_decrease_activate(entity this)
const int ST_ASSAULT_OBJECTIVES
Definition sv_assault.qh:9
const int HAVOCBOT_AST_ROLE_NONE
Definition sv_assault.qh:39
int assault_attacker_team
Definition sv_assault.qh:54
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
int teamplay_bitmask
The set of currently available teams (AVAILABLE_TEAMS is the number of them).
Definition teamplay.qh:18