Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
sv_nexball.qh
Go to the documentation of this file.
1#pragma once
2
3#include "weapon.qh"
4
5void nb_Initialize();
6
8{
11 {
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
24const float BALL_EFFECTMASK = 1229;
25const vector BALL_MINS = '-16 -16 -16'; // The model is 24*24*24
26const vector BALL_MAXS = '16 16 16';
27const vector BALL_ATTACHORG = '3 0 16';
28const float BALL_FOOT = 1;
29const float BALL_BASKET = 2;
30//spawnflags
31const float GOAL_TOUCHPLAYER = 1;
32//goal types
33const float GOAL_FAULT = -1;
34const float GOAL_OUT = -2;
35
36void DropBall(entity ball, vector org, vector vel);
46
47float balls;
50
51.entity nb_dropper;
53
#define MUTATOR_ONADD
Definition base.qh:309
#define MUTATOR_ONROLLBACK_OR_REMOVE
Definition base.qh:311
#define REGISTER_MUTATOR(...)
Definition base.qh:295
#define MUTATOR_STATIC()
Definition base.qh:313
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
vector
Definition self.qh:92
vector org
Definition self.qh:92
float ball_scale
Definition sv_nexball.qh:48
float autocvar_g_nexball_basketball_teamsteal
Definition sv_nexball.qh:44
const vector BALL_MAXS
Definition sv_nexball.qh:26
float autocvar_g_nexball_basketball_effects_default
Definition sv_nexball.qh:43
float nb_teams
Definition sv_nexball.qh:49
float autocvar_g_nexball_delay_idle
Definition sv_nexball.qh:40
const float BALL_BASKET
Definition sv_nexball.qh:29
float g_nexball_meter_period
Definition sv_nexball.qh:54
float balls
Definition sv_nexball.qh:47
const vector BALL_ATTACHORG
Definition sv_nexball.qh:27
const float BALL_FOOT
Definition sv_nexball.qh:28
float autocvar_g_nexball_meter_period
Definition sv_nexball.qh:45
const float GOAL_OUT
Definition sv_nexball.qh:34
float autocvar_g_nexball_football_physics
Definition sv_nexball.qh:39
float autocvar_g_nexball_basketball_delay_hold_forteam
Definition sv_nexball.qh:42
entity nb_dropper
Definition sv_nexball.qh:51
const float GOAL_FAULT
Definition sv_nexball.qh:33
float autocvar_g_nexball_football_boost_forward
Definition sv_nexball.qh:37
float autocvar_g_nexball_football_boost_up
Definition sv_nexball.qh:38
void DropBall(entity ball, vector org, vector vel)
const float GOAL_TOUCHPLAYER
Definition sv_nexball.qh:31
float nb_droptime
Definition sv_nexball.qh:52
void nb_Initialize()
const vector BALL_MINS
Definition sv_nexball.qh:25
float autocvar_g_nexball_basketball_delay_hold
Definition sv_nexball.qh:41
const float BALL_EFFECTMASK
Definition sv_nexball.qh:24
const int WEP_FLAG_MUTATORBLOCKED
Definition weapon.qh:219