X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fdefs.qh;h=1e50f3edb224936e5d0047e68c801b12e4c08e8b;hb=53c87b81040e9c1d52320952a9c3a06d3429be3b;hp=b1d73f6a3124c87110d254d1f2bc73f739003d38;hpb=139a594d29f65508e5d6001e90d4ee4fad82ca66;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/defs.qh b/qcsrc/server/defs.qh index b1d73f6a3..1e50f3edb 100644 --- a/qcsrc/server/defs.qh +++ b/qcsrc/server/defs.qh @@ -50,7 +50,8 @@ float server_is_dedicated; .float pain_frame; //" .float crouch; // Crouching or not? -const .float superweapons_finished = _STAT(SUPERWEAPONS_FINISHED); +.float superweapons_finished; // NOTE: this field is used only by map entities, it does not directly apply the superweapons stat +const .float air_finished = _STAT(AIR_FINISHED); .float cnt; // used in too many places .float count; @@ -92,7 +93,6 @@ const float MAX_DAMAGEEXTRARADIUS = 16; .float railgunhitsolidbackup; .vector railgunhitloc; -.float air_finished; .float dmgtime; .float killcount; @@ -140,14 +140,13 @@ float blockSpectators; //if set, new or existing spectators or observers will be .float spectatortime; //point in time since the client is spectating or observing void checkSpectatorBlock(entity this); -float game_completion_ratio; // 0 at start, 1 near end .float winning; .float jointime; // time of connecting .float startplaytime; // time of switching from spectator to player .float alivetime; // time of being alive .float motd_actived_time; // used for both motd and campaign_message -bool nJoinAllowed(entity this, entity ignore); +int nJoinAllowed(entity this, entity ignore); .float spawnshieldtime; .float item_spawnshieldtime; @@ -196,7 +195,7 @@ void FixClientCvars(entity e); float bot_waypoints_for_items; -.float attack_finished_for[Weapons_MAX * MAX_WEAPONSLOTS]; +.float attack_finished_for[REGISTRY_MAX(Weapons) * MAX_WEAPONSLOTS]; .float attack_finished_single[MAX_WEAPONSLOTS]; #if INDEPENDENT_ATTACK_FINISHED #define ATTACK_FINISHED_FOR(ent, w, slot) ((ent).(attack_finished_for[((w) - WEP_FIRST) * MAX_WEAPONSLOTS + (slot)])) @@ -297,7 +296,7 @@ string matchid; bool radar_showennemies; -.float weapon_load[Weapons_MAX]; +.float weapon_load[REGISTRY_MAX(Weapons)]; .int ammo_none; // used by the reloading system, must always be 0 .int clip_load; .int old_clip_load; @@ -358,7 +357,6 @@ const int ACTIVE_TOGGLE = 3; .entity iceblock; .entity frozen_by; // for ice fields -.entity muzzle_flash; .float misc_bulletcounter; // replaces uzi & hlac bullet counter. void PlayerUseKey(entity this); @@ -412,6 +410,7 @@ IntrusiveList g_locations; IntrusiveList g_saved_team; IntrusiveList g_monster_targets; IntrusiveList g_pathlib_nodes; +IntrusiveList g_moveables; STATIC_INIT(defs) { g_monsters = IL_NEW(); @@ -433,4 +432,5 @@ STATIC_INIT(defs) g_saved_team = IL_NEW(); g_monster_targets = IL_NEW(); g_pathlib_nodes = IL_NEW(); + g_moveables = IL_NEW(); }