X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fmutators%2Fgamemode_nexball.qh;h=e28fad883ca85f8f6afc30496aedc7b21c48a657;hb=5c99ce6fe3050cddf897e9988ff59dd0a7c1ba0a;hp=4b0b7eaa15c67a3dd686ce2e00474803730684a8;hpb=5a80c7ca1221f22c8890c3c144d6a665f807ed83;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/mutators/gamemode_nexball.qh b/qcsrc/server/mutators/gamemode_nexball.qh index 4b0b7eaa1..e28fad883 100644 --- a/qcsrc/server/mutators/gamemode_nexball.qh +++ b/qcsrc/server/mutators/gamemode_nexball.qh @@ -1,16 +1,18 @@ +#ifndef GAMEMODE_NEXBALL_H +#define GAMEMODE_NEXBALL_H + //EF_BRIGHTFIELD|EF_BRIGHTLIGHT|EF_DIMLIGHT|EF_BLUE|EF_RED|EF_FLAME -#define BALL_EFFECTMASK 1229 -#define BALL_MINS '-16 -16 -16' // The model is 24*24*24 -#define BALL_MAXS '16 16 16' -#define BALL_ATTACHORG '3 0 16' -#define BALL_SPRITECOLOR '.91 .85 .62' -#define BALL_FOOT 1 -#define BALL_BASKET 2 +const float BALL_EFFECTMASK = 1229; +const vector BALL_MINS = '-16 -16 -16'; // The model is 24*24*24 +const vector BALL_MAXS = '16 16 16'; +const vector BALL_ATTACHORG = '3 0 16'; +const float BALL_FOOT = 1; +const float BALL_BASKET = 2; //spawnflags -#define GOAL_TOUCHPLAYER 1 +const float GOAL_TOUCHPLAYER = 1; //goal types -#define GOAL_FAULT -1 -#define GOAL_OUT -2 +const float GOAL_FAULT = -1; +const float GOAL_OUT = -2; void DropBall(entity ball, vector org, vector vel); float autocvar_g_nexball_football_boost_forward; @@ -31,3 +33,4 @@ float nb_teams; .float nb_droptime; .float teamtime; +#endif