Xonotic
sv_nexball.qh
Go to the documentation of this file.
1 #pragma once
2 
3 #include "weapon.qh"
4 
5 void nb_Initialize();
6 
7 REGISTER_MUTATOR(nb, false)
8 {
11  {
12  nb_Initialize();
13  WEP_NEXBALL.spawnflags &= ~WEP_FLAG_MUTATORBLOCKED;
14  }
15 
17  {
18  WEP_NEXBALL.spawnflags |= WEP_FLAG_MUTATORBLOCKED;
19  }
20  return 0;
21 }
22 
23 //EF_BRIGHTFIELD|EF_BRIGHTLIGHT|EF_DIMLIGHT|EF_BLUE|EF_RED|EF_FLAME
24 const float BALL_EFFECTMASK = 1229;
25 const vector BALL_MINS = '-16 -16 -16'; // The model is 24*24*24
26 const vector BALL_MAXS = '16 16 16';
27 const vector BALL_ATTACHORG = '3 0 16';
28 const float BALL_FOOT = 1;
29 const float BALL_BASKET = 2;
30 //spawnflags
31 const float GOAL_TOUCHPLAYER = 1;
32 //goal types
33 const float GOAL_FAULT = -1;
34 const float GOAL_OUT = -2;
35 
36 void DropBall(entity ball, vector org, vector vel);
46 
47 float balls;
48 float ball_scale;
49 float nb_teams;
50 
51 .entity nb_dropper;
52 .float nb_droptime;
53 
float autocvar_g_nexball_football_boost_up
Definition: sv_nexball.qh:38
#define MUTATOR_STATIC()
Definition: base.qh:288
float autocvar_g_nexball_football_boost_forward
Definition: sv_nexball.qh:37
float g_nexball_meter_period
Definition: sv_nexball.qh:54
const float GOAL_OUT
Definition: sv_nexball.qh:34
entity() spawn
const vector BALL_MAXS
Definition: sv_nexball.qh:26
const vector BALL_ATTACHORG
Definition: sv_nexball.qh:27
float ball_scale
Definition: sv_nexball.qh:48
float autocvar_g_nexball_delay_idle
Definition: sv_nexball.qh:40
REGISTER_MUTATOR(nb, false)
Definition: sv_nexball.qh:7
float nb_droptime
Definition: sv_nexball.qh:52
#define MUTATOR_ONROLLBACK_OR_REMOVE
Definition: base.qh:286
const float GOAL_FAULT
Definition: sv_nexball.qh:33
float autocvar_g_nexball_basketball_effects_default
Definition: sv_nexball.qh:43
void DropBall(entity ball, vector org, vector vel)
Definition: sv_nexball.qc:202
const float BALL_FOOT
Definition: sv_nexball.qh:28
entity nb_dropper
Definition: sv_nexball.qh:51
const float GOAL_TOUCHPLAYER
Definition: sv_nexball.qh:31
vector(float skel, float bonenum) _skel_get_boneabs_hidden
const float BALL_EFFECTMASK
Definition: sv_nexball.qh:24
const float BALL_BASKET
Definition: sv_nexball.qh:29
float balls
Definition: sv_nexball.qh:47
float autocvar_g_nexball_basketball_delay_hold
Definition: sv_nexball.qh:41
float nb_teams
Definition: sv_nexball.qh:49
const vector BALL_MINS
Definition: sv_nexball.qh:25
const int WEP_FLAG_MUTATORBLOCKED
Definition: weapon.qh:203
float autocvar_g_nexball_meter_period
Definition: sv_nexball.qh:45
#define MUTATOR_ONADD
Definition: base.qh:284
float autocvar_g_nexball_basketball_teamsteal
Definition: sv_nexball.qh:44
float autocvar_g_nexball_football_physics
Definition: sv_nexball.qh:39
void nb_Initialize()
Definition: sv_nexball.qc:943
float autocvar_g_nexball_basketball_delay_hold_forteam
Definition: sv_nexball.qh:42