]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Some more defs.qh cleanup, update gameplay hash (again)
authorMario <mario.mario@y7mail.com>
Sun, 2 Aug 2020 07:48:46 +0000 (17:48 +1000)
committerMario <mario.mario@y7mail.com>
Sun, 2 Aug 2020 07:48:46 +0000 (17:48 +1000)
55 files changed:
.gitlab-ci.yml
qcsrc/common/gamemodes/gamemode/assault/sv_assault.qc
qcsrc/common/gamemodes/gamemode/ctf/sv_ctf.qc
qcsrc/common/gamemodes/gamemode/domination/sv_domination.qc
qcsrc/common/gamemodes/gamemode/keyhunt/sv_keyhunt.qc
qcsrc/common/gamemodes/gamemode/lms/sv_lms.qc
qcsrc/common/gamemodes/gamemode/nexball/sv_nexball.qc
qcsrc/common/gamemodes/gamemode/nexball/sv_nexball.qh
qcsrc/common/gamemodes/gamemode/onslaught/sv_onslaught.qc
qcsrc/common/gamemodes/sv_rules.qc
qcsrc/common/mapobjects/func/rotating.qc
qcsrc/common/mapobjects/func/train.qh
qcsrc/common/mapobjects/platforms.qh
qcsrc/common/mapobjects/triggers.qh
qcsrc/common/monsters/sv_monsters.qc
qcsrc/common/stats.qh
qcsrc/common/turrets/sv_turrets.qc
qcsrc/common/vehicles/sv_vehicles.qc
qcsrc/common/vehicles/sv_vehicles.qh
qcsrc/common/weapons/weapon/vortex.qh
qcsrc/server/bot/default/havocbot/havocbot.qc
qcsrc/server/bot/default/havocbot/roles.qc
qcsrc/server/cheats.qh
qcsrc/server/client.qc
qcsrc/server/client.qh
qcsrc/server/command/common.qc
qcsrc/server/command/vote.qc
qcsrc/server/command/vote.qh
qcsrc/server/compat/quake3.qc
qcsrc/server/defs.qh
qcsrc/server/g_damage.qc
qcsrc/server/g_damage.qh
qcsrc/server/g_hook.qc
qcsrc/server/g_world.qc
qcsrc/server/g_world.qh
qcsrc/server/impulse.qc
qcsrc/server/items/items.qc
qcsrc/server/items/items.qh
qcsrc/server/items/spawning.qc
qcsrc/server/miscfunctions.qc
qcsrc/server/miscfunctions.qh
qcsrc/server/player.qc
qcsrc/server/portals.qc
qcsrc/server/race.qc
qcsrc/server/spawnpoints.qc
qcsrc/server/spawnpoints.qh
qcsrc/server/sv_main.qc
qcsrc/server/sv_main.qh
qcsrc/server/weapons/accuracy.qc
qcsrc/server/weapons/common.qh
qcsrc/server/weapons/hitplot.qc
qcsrc/server/weapons/selection.qh
qcsrc/server/weapons/tracing.qh
qcsrc/server/weapons/weaponsystem.qc
qcsrc/server/weapons/weaponsystem.qh

index cbd7e78f567aefca1fd211a6f7659c06e3ecbfd1..2f2fd4f2f5d9c43bf212ed09f420eb3178fec310 100644 (file)
@@ -29,7 +29,7 @@ test_sv_game:
     - wget -O data/maps/stormkeep.waypoints https://gitlab.com/xonotic/xonotic-maps.pk3dir/raw/master/maps/stormkeep.waypoints
     - wget -O data/maps/stormkeep.waypoints.cache https://gitlab.com/xonotic/xonotic-maps.pk3dir/raw/master/maps/stormkeep.waypoints.cache
     - make
-    - EXPECT=339f4bfdb1d6e302024e1a260336557a
+    - EXPECT=040aeef53953a85c5891c0c39cf9860f
     - HASH=$(${ENGINE} -noconfig -nohome +exec serverbench.cfg
       | tee /dev/stderr
       | grep '^:'
index 89dfa6f1e6f0380eed1b250543ba93d95ee30cfe..ca92bc6229c973310c2742f273c9b518ae917b50 100644 (file)
@@ -1,5 +1,6 @@
 #include "sv_assault.qh"
 
+#include <server/command/vote.qh>
 #include <common/mapobjects/func/breakable.qh>
 #include <server/g_damage.qh>
 #include <server/spawnpoints.qh>
index 16f9299f1540b3022fd79a40963c43c93526fbff..e4256c68f90ecf8a65bf5415b9e3cf94e1300cc0 100644 (file)
@@ -3,9 +3,11 @@
 #include <common/effects/all.qh>
 #include <common/mapobjects/teleporters.qh>
 #include <common/vehicles/all.qh>
+#include <server/command/vote.qh>
 #include <server/gamelog.qh>
 #include <server/g_damage.qh>
 #include <server/g_world.qh>
+#include <server/items/items.qh>
 #include <server/race.qh>
 #include <server/teamplay.qh>
 
index 6e333c17e119e81f75291b611b4f75fc11a4be3c..88e20af000bf076851aa22a52374c48dad842e04 100644 (file)
@@ -1,7 +1,9 @@
 #include "sv_domination.qh"
 
+#include <server/command/vote.qh>
 #include <server/gamelog.qh>
 #include <server/teamplay.qh>
+#include <common/mapobjects/platforms.qh>
 
 bool g_domination;
 
index d13ec1ac8982c315fbb2e11cf41fcc6d602e32b0..df538cbe494464273ab7e2e44803467ad283ad14 100644 (file)
@@ -1,5 +1,6 @@
 #include "sv_keyhunt.qh"
 
+#include <server/command/vote.qh>
 #include <server/gamelog.qh>
 #include <server/g_damage.qh>
 
index 3a7bc1dfe8e1c9bc0f36398d8a93b0b4e6e325bc..5af6044337d50f46c9735d960ef18f92883f6b9a 100644 (file)
@@ -3,6 +3,7 @@
 #include <common/mutators/mutator/instagib/items.qh>
 #include <server/campaign.qh>
 #include <server/command/_mod.qh>
+#include <server/items/items.qh>
 
 int autocvar_g_lms_extra_lives;
 bool autocvar_g_lms_join_anytime;
index 6ae5b2763e4f6d1651eb0c92bdfdb43b649c7b6c..2144a0008b40a983eeebc456e6047c2bf977ae17 100644 (file)
@@ -1,5 +1,6 @@
 #include "sv_nexball.qh"
 
+#include <server/command/vote.qh>
 #include <server/gamelog.qh>
 #include <common/ent_cs.qh>
 
index d7cde3a7349454fa630ae70b0901c0efab4706ac..864e89138aef001775eb6434db52b55ac8a2f73d 100644 (file)
@@ -32,3 +32,5 @@ float nb_teams;
 .float nb_droptime;
 
 .float teamtime;
+
+float g_nexball_meter_period;
index 1c051855ef1ea5c5535faaeea2405b11175d7518..975c1192fe65937515edc14d8143258810a84b87 100644 (file)
@@ -2,7 +2,9 @@
 #include "sv_controlpoint.qh"
 #include "sv_generator.qh"
 
+#include <server/command/vote.qh>
 #include <server/g_damage.qh>
+#include <server/items/items.qh>
 #include <common/mapobjects/defs.qh>
 
 bool g_onslaught;
index a4a4bcd196deb0ac37eb3dad58e807a980908b89..c6048b808a21510bccf0f438a4f4afa3cbb618a3 100644 (file)
@@ -1,5 +1,6 @@
 #include "sv_rules.qh"
 
+#include <server/spawnpoints.qh>
 #include <server/teamplay.qh>
 
 void GameRules_teams(bool value)
index 1864b6dfe43062131b27f718971800b0414a97b0..cf1710249b0f30b70cf86aef2106a0f031246956 100644 (file)
@@ -55,7 +55,7 @@ void func_rotating_init_for_player(entity this, entity player)
 Brush model that spins in place on one axis (default Z).
 speed   : speed to rotate (in degrees per second)
 noise   : path/name of looping .wav file to play.
-dmg     : Do this mutch dmg every .dmgtime intervall when blocked
+dmg     : Do this much damage every .dmgtime interval when blocked
 dmgtime : See above.
 */
 
index 0b2a099c53576f46aff7a0968965b2dccccaad95..a25c33198bea51e4b96a8b0e36ec827f59398687 100644 (file)
@@ -4,7 +4,3 @@
 const int TRAIN_CURVE = BIT(0);
 const int TRAIN_TURN = BIT(1);
 const int TRAIN_NEEDACTIVATION = BIT(2);
-
-#ifdef CSQC
-.float dmgtime;
-#endif
index 346cebc7163dfade8657cba5caa5e3cc455838c6..3276cf45380ac1db11c3b7808bb0057020d4395c 100644 (file)
@@ -3,13 +3,15 @@
 
 const int PLAT_LOW_TRIGGER = BIT(0);
 
+.float dmg;
+.float dmgtime;
 .float dmgtime2;
 
+.float phase;
+
 void plat_center_touch(entity this, entity toucher);
 void plat_outside_touch(entity this, entity toucher);
 void plat_trigger_use(entity this, entity actor, entity trigger);
 void plat_go_up(entity this);
 void plat_go_down(entity this);
 void plat_crush(entity this, entity blocker);
-
-.float dmg;
index 513ff127edf5c3cae15ac41663c127bf02f33de7..2ca91a09b3d902e79b41ac3a979cc62401598386 100644 (file)
@@ -12,6 +12,8 @@
 
 // used elsewhere (will fix)
 #ifdef SVQC
+.string message2;
+
 void trigger_common_write(entity this, bool withtarget);
 
 string trigger_magicear_processmessage_forallears(entity source, float teamsay, entity privatesay, string msgin);
index 1bc1b8d9828220054c245bae4075f421f21cd0af..974f69e5b3a3a2122295768509914e81aa4defd3 100644 (file)
@@ -19,6 +19,7 @@
 #include "../turrets/util.qh"
 #include "../vehicles/all.qh"
 #include <server/campaign.qh>
+#include <server/cheats.qh>
 #include <server/command/_mod.qh>
 #include <common/mapobjects/teleporters.qh>
 #include "../mapobjects/triggers.qh"
index 5bbc4dd26317ff9a663fee894fbeef2e5398dd67..37ef7d13b5d41c48aace0557e5b4b9f584a90152 100644 (file)
@@ -64,8 +64,8 @@ REGISTER_STAT(KH_KEYS, int)
 #ifdef SVQC
 float W_WeaponRateFactor(entity this);
 float game_stopped;
-float game_starttime;
-float round_starttime;
+float game_starttime; //point in time when the countdown to game start is over
+float round_starttime; //point in time when the countdown to round start is over
 bool autocvar_g_allow_oldvortexbeam;
 int autocvar_leadlimit;
 #endif
index e72b625590622f5fe9f5d538966e4ea034d183e0..20af4197c7a8a32129984e60f217345b6280b117 100644 (file)
@@ -2,6 +2,7 @@
 #ifdef SVQC
 #include <server/autocvars.qh>
 #include <server/g_damage.qh>
+#include <server/weapons/common.qh>
 #include <server/weapons/weaponsystem.qh>
 #include <common/mapobjects/defs.qh>
 
index 5c3e913c62e18877b2bcad4e4591bbf5aed2b9a9..46a604ae29698c7ecb072b0099b00162d92ae8ca 100644 (file)
@@ -1,6 +1,7 @@
 #include "sv_vehicles.qh"
 
 #include <server/g_damage.qh>
+#include <server/items/items.qh>
 #include <common/mapobjects/defs.qh>
 #include <common/mapobjects/teleporters.qh>
 #include <server/sv_main.qh>
index 0d707b52fc15af238e7f156772b12a0d58f929fb..a92da29fb03b237f34ba4a4d8be5b0fbc8e90a84 100644 (file)
@@ -67,6 +67,8 @@ const float VHSF_FACTORY = 2;
 
 .float dmg_time;
 
+.float pain_frame;
+
 .float play_time;
 
 .int volly_counter;
index a2b0a4b1db0689513c614286f020264ecfc41b93..74bf35ce4337c9ab1bf31778c4892529a2e2183b 100644 (file)
@@ -68,6 +68,8 @@ SPAWNFUNC_WEAPON(weapon_vortex, WEP_VORTEX)
 SPAWNFUNC_WEAPON(weapon_nex, WEP_VORTEX)
 
 #ifdef SVQC
+.float vortex_charge_rottime;
+
 .float vortex_lasthit;
 
 void W_Vortex_Charge(entity actor, .entity weaponentity, float dt);
index d388b150526a34e7f7f44525d9283927546e8c4f..341ba7ac6ca5f18efe17c95a5ad7482e8e14c669 100644 (file)
@@ -2,7 +2,9 @@
 
 #include "roles.qh"
 
+#include <server/client.qh>
 #include <server/defs.qh>
+#include <server/g_damage.qh>
 #include <server/miscfunctions.qh>
 #include <server/weapons/selection.qh>
 #include <server/weapons/weaponsystem.qh>
index 8081097b46eba9d06d50d52c7d261ecc99ba6e46..33d6ec1e7518182e29a367db5c404f1ecde75e27 100644 (file)
@@ -2,6 +2,7 @@
 
 #include <server/defs.qh>
 #include <server/miscfunctions.qh>
+#include <server/items/items.qh>
 #include <server/items/spawning.qh>
 #include <server/resources.qh>
 #include "havocbot.qh"
index 3ff0f6a775f78dc7f52c72f4aa6727dc8a9f96c6..4a730d77f9196a3da6e0be888d2aa9b0ab96cb52 100644 (file)
@@ -17,6 +17,10 @@ const float CHRAME_DRAG = 8;
 // speedrun: when 1, player auto teleports back when capture timeout happens
 .bool speedrunning;
 
+.entity personal;
+
+.int grab; // 0 = can't grab, 1 = owner can grab, 2 = owner and team mates can grab, 3 = anyone can grab
+
 bool drag_undraggable(entity draggee, entity dragger);
 
 .bool(entity this, entity dragger) draggable;
index 245ada1e1a4a521d0b526e95bb1c241197333c35..5c8baee6d3a7da1b1fd27ec0a963924afb98a288 100644 (file)
@@ -49,6 +49,7 @@
 #include "../common/vehicles/all.qh"
 
 #include "weapons/hitplot.qh"
+#include "weapons/selection.qh"
 #include "weapons/weaponsystem.qh"
 
 #include "../common/net_notice.qh"
@@ -59,6 +60,8 @@
 
 #include "../common/items/_mod.qh"
 
+#include <common/gamemodes/gamemode/nexball/sv_nexball.qh>
+
 #include "../common/mutators/mutator/waypoints/all.qh"
 #include "../common/mutators/mutator/instagib/sv_instagib.qh"
 #include <common/gamemodes/_mod.qh>
@@ -77,6 +80,8 @@
 
 #include <common/mutators/mutator/overkill/oknex.qh>
 
+#include <common/weapons/weapon/vortex.qh>
+
 STATIC_METHOD(Client, Add, void(Client this, int _team))
 {
     ClientConnect(this);
@@ -335,7 +340,6 @@ void PutObserverInServer(entity this)
        this.alpha = 0;
        this.scale = 0;
        this.fade_time = 0;
-       this.pain_frame = 0;
        this.pain_finished = 0;
        STAT(STRENGTH_FINISHED, this) = 0;
        STAT(INVINCIBLE_FINISHED, this) = 0;
@@ -618,7 +622,6 @@ void PutPlayerInServer(entity this)
        bool q3dfcompat = autocvar_sv_q3defragcompat && autocvar_sv_q3defragcompat_changehitbox;
        this.scale = ((q3dfcompat) ? 0.9 : autocvar_sv_player_scale);
        this.fade_time = 0;
-       this.pain_frame = 0;
        this.pain_finished = 0;
        this.pushltime = 0;
        setthink(this, func_null); // players have no think function
index 83de3f024d619746f1072302da47beead46a6047..0823e9214749499feaeecc8d1fb1304be9e6d868 100644 (file)
 .float alivetime; // time of being alive
 .float motd_actived_time; // used for both motd and campaign_message
 
+.bool wasplayer;
+
+.int spectatee_status;
+.bool zoomstate;
+
+.bool just_joined;
+
+.int pressedkeys;
+
 void ClientState_attach(entity this);
 
 IntrusiveList g_players;
@@ -271,6 +280,14 @@ METHOD(Client, m_unwind, bool(Client this))
     return false;
 }
 
+int autocvar__independent_players;
+bool independent_players;
+#define INDEPENDENT_PLAYERS (autocvar__independent_players ? (autocvar__independent_players > 0) : independent_players)
+#define IS_INDEPENDENT_PLAYER(e) ((e).solid == SOLID_TRIGGER)
+#define MAKE_INDEPENDENT_PLAYER(e) (((e).solid = SOLID_TRIGGER), ((e).frags = FRAGS_PLAYER_OUT_OF_GAME))
+
+.int killcount;
+
 //flood fields
 .float nickspamtime; // time of last nick change
 .float nickspamcount;
index c9e8b595e289c71e71be84753164447a054ba78f..8fd39070fd293fbd9be39bc5efc3ffd3e959198a 100644 (file)
@@ -2,6 +2,7 @@
 
 #include <server/client.qh>
 #include <server/defs.qh>
+#include <server/g_world.qh>
 #include <server/miscfunctions.qh>
 
 #include <common/command/_mod.qh>
index f98242ad668166f3089c15ada94bc0b774ecfd58..b31b4ed0de1521c908e01d646fdf286bdf7fa13f 100644 (file)
@@ -1,5 +1,6 @@
 #include "vote.qh"
 
+#include <server/client.qh>
 #include <server/defs.qh>
 #include <server/gamelog.qh>
 #include <server/miscfunctions.qh>
index 988e91bbce615648873186adf6fb5306d4641c54..99f0acb3ee6b5b1ec5bbcf3356455e6f2010df2a 100644 (file)
@@ -50,6 +50,9 @@ float readycount;                  // amount of players who are ready
 float readyrestart_happened;       // keeps track of whether a restart has already happened
 float restart_mapalreadyrestarted; // bool, indicates whether reset_map() was already executed
 .float ready;                      // flag for if a player is ready
+.int team_saved;                   // team number to restore upon map reset
+.void(entity this) reset;             // if set, an entity is reset using this
+.void(entity this) reset2;         // if set, an entity is reset using this (after calling ALL the reset functions for other entities)
 void reset_map(float dorespawn);
 void ReadyCount();
 void ReadyRestart_force();
index 4c8073b1ad35cfbef5d393d9ebdaf9d6532ef338..0433636d6195818aba776195b079313cfcfae542 100644 (file)
@@ -1,5 +1,6 @@
 #include "quake3.qh"
 
+#include <server/client.qh>
 #include <server/defs.qh>
 #include <server/miscfunctions.qh>
 #include <server/items/items.qh>
index 1e91f635d34270bdadd69f8176107064922e0a86..d65ebf2a54c7c8efd9eb11185d574fdfba97996b 100644 (file)
@@ -3,34 +3,12 @@
 #include <common/weapons/_all.qh>
 #include <common/stats.qh>
 
-// Globals
-
-float g_footsteps, g_grappling_hook;
-float g_warmup_allguns;
-float g_warmup_allow_timeout;
-float warmup_stage;
-float g_jetpack;
-
-bool sv_ready_restart;
-bool sv_ready_restart_after_countdown;
-bool sv_ready_restart_repeatable;
-
-float sv_clones;
-float sv_foginterval;
-
 // Fields
 
-//.string      wad;
-//.string      map;
-
-//.float       worldtype;
-
 .float pain_finished;                  //Added by Supajoe
-.float pain_frame;                     //"
 
 .float cnt; // used in too many places
 .float count;
-//.float cnt2;
 
 .float fade_time;
 .float fade_rate;
@@ -42,26 +20,6 @@ float sv_foginterval;
 
 .float species;
 
-.float scheduledrespawntime;
-.float respawntime;
-.float respawntimejitter;
-.float respawntimestart;
-//.float       chasecam;
-
-//.float          gravity;
-
-.float         dmg;
-
-// for railgun damage (hitting multiple enemies)
-.bool railgunhit;
-.float railgunhitsolidbackup;
-.vector railgunhitloc;
-
-.float         dmgtime;
-
-.float         killcount;
-.float damage_dealt, typehitsound, killsound;
-
 // string overrides entity
 .string item_pickupsound;
 .entity item_pickupsound_ent;
@@ -69,89 +27,17 @@ float sv_foginterval;
 
 .float winning;
 
-.float spawnshieldtime;
-
 .int playerid;
-.float noalign;                // if set to 1, the item or spawnpoint won't be dropped to the floor
-
-.vector death_origin;
 
 float default_player_alpha;
 float default_weapon_alpha;
 
-.int team_saved;
-
-bool some_spawn_has_been_used;
-int have_team_spawns; // 0 = no team spawns requested, -1 = team spawns requested but none found, 1 = team spawns requested and found
-int have_team_spawns_forteams; // if Xth bit is 1 then team X has spawns else it has no spawns; team 0 is the "no-team"
-
-.bool canteamdamage;
-
-int autocvar__independent_players;
-bool independent_players;
-#define INDEPENDENT_PLAYERS (autocvar__independent_players ? (autocvar__independent_players > 0) : independent_players)
-#define IS_INDEPENDENT_PLAYER(e) ((e).solid == SOLID_TRIGGER)
-#define MAKE_INDEPENDENT_PLAYER(e) (((e).solid = SOLID_TRIGGER), ((e).frags = FRAGS_PLAYER_OUT_OF_GAME))
-
-string clientstuff;
-.float phase;
-.int pressedkeys;
-
-.string fog;
-
-string cvar_changes;
-string cvar_purechanges;
-float cvar_purechanges_count;
-
-//float game_starttime; //point in time when the countdown to game start is over
-//float round_starttime; //point in time when the countdown to round start is over
-
-.int projectiledeathtype;
-
-.string message2;
-
-// reset to 0 on weapon switch
-// may be useful to all weapons
-.float bulletcounter;
-
-// Nexball
-float g_nexball_meter_period;
-
-.void(entity this) reset; // if set, an entity is reset using this
-.void(entity this) reset2; // if set, an entity is reset using this (after calling ALL the reset functions for other entities)
-
-.bool wasplayer;
-
-string matchid;
-
-.int minelayer_mines;
-.float vortex_charge;
-.float vortex_charge_rottime;
-.float vortex_chargepool_ammo;
-.float oknex_charge;
-.float oknex_charge_rottime;
-.float oknex_chargepool_ammo;
-.int hagar_load;
-
-.int grab; // 0 = can't grab, 1 = owner can grab, 2 = owner and team mates can grab, 3 = anyone can grab
-
-.int spectatee_status;
-.bool zoomstate;
-
-.entity personal;
-
-.bool just_joined;
-
 .entity realowner;
 
-//float serverflags;
-
 .bool player_blocked;
 
 ////
 
-.WepSet dual_weapons;
-
 IntrusiveList g_monsters;
 IntrusiveList g_waypoints;
 IntrusiveList g_vehicles;
index a7ebbcb77a4ea081b0335677055af347e5972075..30e8d51aeaca83843e3f868a7ee08653a576fd9e 100644 (file)
@@ -3,6 +3,7 @@
 #include <common/effects/all.qh>
 #include "bot/api.qh"
 #include "g_hook.qh"
+#include <server/client.qh>
 #include <server/gamelog.qh>
 #include <server/items/items.qh>
 #include <server/mutators/_mod.qh>
index 2209bada1281feeaa39ba68e4527cc8ee72cceac..f6ae1d5e075069e40732912dfd8141bd228c74c8 100644 (file)
@@ -59,8 +59,16 @@ float damage_gooddamage;
 .bool istypefrag;
 .float taunt_soundtime;
 
+.float spawnshieldtime;
+
 .int totalfrags;
 
+.bool canteamdamage;
+
+.vector death_origin;
+
+.float damage_dealt, typehitsound, killsound;
+
 // used for custom deathtype
 string deathmessage;
 
index e1b4352078137b01642c157008c68c4b5d7513ad..79572f63bddb9ee3dc93213a28953bf853e6eb18 100644 (file)
@@ -11,6 +11,7 @@
 #include "weapons/tracing.qh"
 #include "player.qh"
 #include "command/common.qh"
+#include "command/vote.qh"
 #include "round_handler.qh"
 #include "../common/state.qh"
 #include "../common/physics/player.qh"
index 5dddc2fb3d00924ec3e257d83717c672ace9c1e4..00ee7205bfd1e2281a65055be2cde17cb44100a1 100644 (file)
 #include "command/vote.qh"
 #include "g_hook.qh"
 #include <server/gamelog.qh>
+#include <server/g_damage.qh>
 #include "ipban.qh"
 #include "mapvoting.qh"
 #include <server/mutators/_mod.qh>
 #include "race.qh"
 #include "scores.qh"
 #include "scores_rules.qh"
+#include "spawnpoints.qh"
 #include "teamplay.qh"
 #include "weapons/weaponstats.qh"
 #include "../common/constants.qh"
index 3d6276384e3344c74e65551cf732ba85e1ffdde7..ceb7a4a4b95b09dc4453efd47da009a098943fd9 100644 (file)
@@ -8,10 +8,20 @@ float checkrules_overtimesadded; //how many overtimes have been already added
 // flag set on worldspawn so that the code knows if it is dedicated or not
 bool server_is_dedicated;
 
+string cvar_changes;
+string cvar_purechanges;
+float cvar_purechanges_count;
+
 string modname;
 
 string gamemode_name;
 
+string clientstuff;
+
+string matchid;
+
+.string fog;
+
 float intermission_running;
 float intermission_exittime;
 float alreadychangedlevel;
index f066615f326b270e81b4e98b8161aeb4312c689a..521c2223f7eab73582b4326fc2ba33e6cf73d66c 100644 (file)
@@ -6,6 +6,7 @@
 #include "cheats.qh"
 #include "client.qh"
 #include "clientkill.qh"
+#include "g_damage.qh"
 #include "weapons/selection.qh"
 #include "weapons/tracing.qh"
 #include "weapons/weaponsystem.qh"
index ffd7c132080167d7502b2843dbf9ca546be80c83..44cd6ba2859fa4948ff68c0f0b6fbd94d480d5d0 100644 (file)
@@ -4,6 +4,8 @@
 
 #include <server/bot/api.qh>
 
+#include <server/command/vote.qh>
+
 #include <server/g_damage.qh>
 
 #include <server/mutators/_mod.qh>
index 96d61b0c29dad51bd93dea4dd5d78080cb2c642f..0fbfab3ecc2b7a538e6b0ed59cc38eb8e38ba9c7 100644 (file)
@@ -16,8 +16,15 @@ const float ITEM_RESPAWN_TICKS = 10;
 .float max_armorvalue;
 .float pickup_anyway;
 
+.float scheduledrespawntime;
+.float respawntime;
+.float respawntimejitter;
+.float respawntimestart;
+
 .float item_respawncounter;
 
+.float noalign; // if set to 1, the item or spawnpoint won't be dropped to the floor
+
 .float superweapons_finished; // NOTE: this field is used only by map entities, it does not directly apply the superweapons stat
 
 // delay before this item can be picked up
index f1c8796c7211ece944ef334be60266c8a661e7b4..d2f1530c652bca617368eef6a877b52febe07d62 100644 (file)
@@ -5,6 +5,7 @@
 /// creation of game items.
 /// \copyright GNU GPLv2 or any later version.
 
+#include <server/items/items.qh>
 #include <server/mutators/_mod.qh>
 #include <server/weapons/spawning.qh>
 #include <common/weapons/all.qh>
index 6983803dcebe3de3250244bc2f518bdbec414583..a2409290f2ff11ae5d8a5456029a84c4f8c3cf61 100644 (file)
@@ -4,6 +4,7 @@
 #include "command/common.qh"
 #include "client.qh"
 #include "constants.qh"
+#include "g_damage.qh"
 #include "g_hook.qh"
 #include "g_world.qh"
 #include <server/gamelog.qh>
index c73a107b5b9b0c8cd2e3cb9bf67376e574adb39b..aab5081d5f4d45beb837ba15a7a06808ae9672ef 100644 (file)
@@ -199,6 +199,19 @@ void readplayerstartcvars();
 float sv_autotaunt;
 float sv_taunt;
 
+float g_footsteps, g_grappling_hook;
+float g_warmup_allguns;
+float g_warmup_allow_timeout;
+float warmup_stage;
+float g_jetpack;
+
+bool sv_ready_restart;
+bool sv_ready_restart_after_countdown;
+bool sv_ready_restart_repeatable;
+
+float sv_clones;
+float sv_foginterval;
+
 void readlevelcvars()
 {
        if(cvar("sv_allow_fullbright"))
index 3138ffd43e4c6e5ab3fad696f6a4da51da10e1f9..3795066fe5502494bc48361776dc405da79aa882 100644 (file)
@@ -13,6 +13,7 @@
 #include <server/sv_main.qh>
 #include "weapons/throwing.qh"
 #include "command/common.qh"
+#include "command/vote.qh"
 #include "../common/state.qh"
 #include "../common/anim.qh"
 #include "../common/animdecide.qh"
index 83a0d3425aaafebae984dabbe5ce4c5ae918825b..6e997d6b3329aa923c9f31793160d1d1cfc54a2d 100644 (file)
@@ -3,6 +3,7 @@
 #include <common/effects/all.qh>
 #include "g_hook.qh"
 #include "mutators/_mod.qh"
+#include <server/client.qh>
 #include "../common/constants.qh"
 #include "../common/deathtypes/all.qh"
 #include "../common/notifications/all.qh"
index eb4b8742e91878e3a2b7a7bfa3fad0c69e680b10..d2eeecbb4cfe9d819c4cb77563fbc90993e851db 100644 (file)
@@ -5,6 +5,7 @@
 #include <server/g_world.qh>
 #include <server/miscfunctions.qh>
 #include "client.qh"
+#include "cheats.qh"
 #include "portals.qh"
 #include "scores.qh"
 #include "spawnpoints.qh"
index 3dc76afc0df832d926703f7ffd1fa2611af803ce..12c0a6b3cc6d60bc96a89b940a0a439cb08f25ae 100644 (file)
@@ -15,6 +15,7 @@
 #include "../lib/warpzone/common.qh"
 #include "../lib/warpzone/util_server.qh"
 #include <server/utils.qh>
+#include <server/command/vote.qh>
 
 bool SpawnPoint_Send(entity this, entity to, int sf)
 {
index b9e20ec0f5a3e7ca4447d478d327e3cd8422819c..1221db6b2f599f94ac769aba765461b3da39f0df 100644 (file)
@@ -6,6 +6,10 @@ const int SPAWN_PRIO_NEAR_TEAMMATE_SAMETEAM = 100;
 const int SPAWN_PRIO_RACE_PREVIOUS_SPAWN = 50;
 const int SPAWN_PRIO_GOOD_DISTANCE = 10;
 
+bool some_spawn_has_been_used;
+int have_team_spawns; // 0 = no team spawns requested, -1 = team spawns requested but none found, 1 = team spawns requested and found
+int have_team_spawns_forteams; // if Xth bit is 1 then team X has spawns else it has no spawns; team 0 is the "no-team"
+
 .vector spawnpoint_score;
 float spawnpoint_nag;
 bool SpawnEvent_Send(entity this, entity to, int sf);
index 09446203db69cf85d1588c0cdb459625244ff80e..e43eb532054c73ab41311c17645429e220ab61bc 100644 (file)
@@ -4,6 +4,7 @@
 #include "g_hook.qh"
 #include "g_damage.qh"
 #include "g_world.qh"
+#include "spawnpoints.qh"
 #include <server/gamelog.qh>
 
 #include "bot/api.qh"
 
 void CreatureFrame_hotliquids(entity this)
 {
-       if (this.dmgtime >= time)
+       if (this.contents_damagetime >= time)
        {
                return;
        }
 
-       this.dmgtime = time + autocvar_g_balance_contents_damagerate;
+       this.contents_damagetime = time + autocvar_g_balance_contents_damagerate;
 
        if (this.flags & FL_PROJECTILE)
        {
@@ -84,7 +85,7 @@ void CreatureFrame_Liquids(entity this)
                if (!(this.flags & FL_INWATER))
                {
                        this.flags |= FL_INWATER;
-                       this.dmgtime = 0;
+                       this.contents_damagetime = 0;
                }
 
                CreatureFrame_hotliquids(this);
@@ -95,7 +96,7 @@ void CreatureFrame_Liquids(entity this)
                {
                        // play leave water sound
                        this.flags &= ~FL_INWATER;
-                       this.dmgtime = 0;
+                       this.contents_damagetime = 0;
                }
        }
 }
index 04630374b3ac18778c1f507e6f987ff06f3c3617..628684585f95ba47ad7db2823125992caf2e5adc 100644 (file)
@@ -15,6 +15,8 @@ float servertime, serverprevtime, serverframetime;
 
 .bool iscreature;
 
+.float contents_damagetime;
+
 /*
 ==================
 main
index a53adb6246c508875095c8c0d4f29da81825f343..0b895ea37bc9778f2532f613734dc36f03831415 100644 (file)
@@ -1,5 +1,6 @@
 #include "accuracy.qh"
 
+#include <server/client.qh>
 #include <server/mutators/_mod.qh>
 #include <server/g_damage.qh>
 #include <common/constants.qh>
index d9b3b0cd4ddc58db40ee6e2f8a807bceabb11cb2..d26eb5cb8a2ad37c3496ef0af7a0e389a5f64a34 100644 (file)
@@ -10,6 +10,8 @@ void W_PrepareExplosionByDamage(entity this, entity attacker, void(entity this)
 
 .float misc_bulletcounter;
 
+.int projectiledeathtype;
+
 #define PROJECTILE_MAKETRIGGER(e) (e).solid = SOLID_CORPSE; (e).dphitcontentsmask = DPCONTENTS_SOLID | DPCONTENTS_BODY | DPCONTENTS_CORPSE
 // when doing this, hagar can go through clones
 // #define PROJECTILE_MAKETRIGGER(e) (e).solid = SOLID_BBOX
index e79e9ddb6413bb2b86e98e84e4e04793fa1ca5a5..b90a855e1cd90a6a25c28f598522f23f8168f48f 100644 (file)
@@ -1,6 +1,7 @@
 #include "hitplot.qh"
 
 #include <server/defs.qh>
+#include <server/g_world.qh>
 #include <server/miscfunctions.qh>
 #include "../antilag.qh"
 #include <common/weapons/_all.qh>
index 4fdb9af90afb7c0d1d1e070e9822f9b7b319cbd8..94987d20a4087bbbbf0226e235e6cfaa585d7cf6 100644 (file)
@@ -5,6 +5,8 @@
 
 .int selectweapon; // last selected weapon of the player
 
+.WepSet dual_weapons;
+
 // switch between weapons
 void Send_WeaponComplain(entity e, float wpn, float type);
 
index b8575ecae5c1598aa5325482e7246e218a4f0882..c786798ac18253a71b87e703c1730ec0405df800 100644 (file)
@@ -64,6 +64,11 @@ void W_SetupProjVelocity_Explicit(entity proj, vector dir, vector upDir, float p
 
 .float ballistics_density;
 
+// for railgun damage (hitting multiple enemies)
+.bool railgunhit;
+.float railgunhitsolidbackup;
+.vector railgunhitloc;
+
 .float railgundistance;
 .vector railgunforce;
 void FireRailgunBullet (entity this, .entity weaponentity, vector start, vector end, float bdamage, bool headshot_notify, float bforce, float mindist, float maxdist, float halflifedist, float forcehalflifedist, int deathtype);
index 73727759bfedea454bb387b6249a51d3648ea08e..cbfba4c9f3ef4ae7b2b75d29b4bb559a53c7ab44 100644 (file)
@@ -3,6 +3,7 @@
 #include "selection.qh"
 
 #include "../command/common.qh"
+#include <server/g_damage.qh>
 #include <server/items/items.qh>
 #include <server/mutators/_mod.qh>
 #include "../round_handler.qh"
@@ -11,6 +12,7 @@
 #include <common/animdecide.qh>
 #include <common/constants.qh>
 #include <common/net_linked.qh>
+#include <common/mapobjects/platforms.qh>
 #include <common/monsters/_mod.qh>
 #include <common/notifications/all.qh>
 #include <common/util.qh>
index 23d1e5972ffe74f86298f5fb22f206635bcfe49d..d1223c6d575eff72083363b2666dec77667fbcbf 100644 (file)
@@ -14,6 +14,10 @@ const int W_TICSPERFRAME = 2;
 float internalteam;
 entity weapon_dropevent_item;
 
+// reset to 0 on weapon switch
+// may be useful to all weapons
+.float bulletcounter;
+
 ..entity weaponentity_fld;
 
 .float weapon_load[REGISTRY_MAX(Weapons)];