X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fmutators%2Fgamemode_assault.qh;h=330707e67c949bf097192658d2c0d57c8a2048bb;hb=88713a575bd27dabc5926d636542b6145ab6f51c;hp=9aecf87f29824919cefe61c6f6cb79ca6d4f4a68;hpb=265b681e0fb49239df1bfc431a903f66244a3172;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/mutators/gamemode_assault.qh b/qcsrc/server/mutators/gamemode_assault.qh index 9aecf87f2..330707e67 100644 --- a/qcsrc/server/mutators/gamemode_assault.qh +++ b/qcsrc/server/mutators/gamemode_assault.qh @@ -1,13 +1,15 @@ +#ifndef GAMEMODE_ASSAULT_H +#define GAMEMODE_ASSAULT_H // sprites .entity assault_decreaser; .entity assault_sprite; // legacy bot defs -#define HAVOCBOT_AST_ROLE_NONE 0 -#define HAVOCBOT_AST_ROLE_DEFENSE 2 -#define HAVOCBOT_AST_ROLE_OFFENSE 4 +const int HAVOCBOT_AST_ROLE_NONE = 0; +const int HAVOCBOT_AST_ROLE_DEFENSE = 2; +const int HAVOCBOT_AST_ROLE_OFFENSE = 4; -.float havocbot_role_flags; +.int havocbot_role_flags; .float havocbot_attack_time; .void() havocbot_role; @@ -23,9 +25,10 @@ void(float ratingscale, vector org, float sradius) havocbot_goalrating_items; void(float ratingscale, vector org, float sradius) havocbot_goalrating_enemyplayers; // scoreboard stuff -#define ST_ASSAULT_OBJECTIVES 1 -#define SP_ASSAULT_OBJECTIVES 4 +const float ST_ASSAULT_OBJECTIVES = 1; +const float SP_ASSAULT_OBJECTIVES = 4; // predefined spawnfuncs void spawnfunc_func_breakable(); -void target_objective_decrease_activate(); \ No newline at end of file +void target_objective_decrease_activate(); +#endif