]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Ensure headers are always #included
authorTimePath <andrew.hardaker1995@gmail.com>
Sun, 21 Aug 2016 06:01:29 +0000 (16:01 +1000)
committerTimePath <andrew.hardaker1995@gmail.com>
Sun, 21 Aug 2016 06:01:29 +0000 (16:01 +1000)
117 files changed:
qcsrc/common/campaign_file.qc
qcsrc/common/campaign_setup.qc
qcsrc/common/command/generic.qc
qcsrc/common/command/markup.qc
qcsrc/common/command/rpn.qc
qcsrc/common/effects/effectinfo.qc
qcsrc/common/effects/qc/casings.qc
qcsrc/common/gamemodes/gamemode/onslaught/sv_onslaught.qc
qcsrc/common/mapinfo.qc
qcsrc/common/minigames/minigame/bd.qc
qcsrc/common/minigames/minigame/c4.qc
qcsrc/common/minigames/minigame/nmm.qc
qcsrc/common/minigames/minigame/pong.qc
qcsrc/common/minigames/minigame/pp.qc
qcsrc/common/minigames/minigame/ps.qc
qcsrc/common/minigames/minigame/snake.qc
qcsrc/common/minigames/minigame/ttt.qc
qcsrc/common/minigames/sv_minigames.qc
qcsrc/common/monsters/all.qc
qcsrc/common/monsters/spawn.qc
qcsrc/common/mutators/mutator/overkill/overkill.qc
qcsrc/common/notifications/all.qc
qcsrc/common/physics/movetypes/follow.qc
qcsrc/common/physics/movetypes/movetypes.qc
qcsrc/common/physics/movetypes/step.qc
qcsrc/common/physics/movetypes/toss.qc
qcsrc/common/physics/movetypes/walk.qc
qcsrc/common/playerstats.qc
qcsrc/common/sounds/all.qc
qcsrc/common/triggers/func/bobbing.qc
qcsrc/common/triggers/func/breakable.qc
qcsrc/common/triggers/func/button.qc
qcsrc/common/triggers/func/conveyor.qc
qcsrc/common/triggers/func/door.qc
qcsrc/common/triggers/func/door_rotating.qc
qcsrc/common/triggers/func/door_secret.qc
qcsrc/common/triggers/func/fourier.qc
qcsrc/common/triggers/func/ladder.qc
qcsrc/common/triggers/func/pendulum.qc
qcsrc/common/triggers/func/plat.qc
qcsrc/common/triggers/func/pointparticles.qc
qcsrc/common/triggers/func/rainsnow.qc
qcsrc/common/triggers/func/rotating.qc
qcsrc/common/triggers/func/stardust.qc
qcsrc/common/triggers/func/train.qc
qcsrc/common/triggers/func/vectormamamam.qc
qcsrc/common/triggers/misc/corner.qc
qcsrc/common/triggers/misc/follow.qc
qcsrc/common/triggers/misc/include.qc
qcsrc/common/triggers/misc/laser.qc
qcsrc/common/triggers/misc/teleport_dest.qc
qcsrc/common/triggers/platforms.qc
qcsrc/common/triggers/subs.qc
qcsrc/common/triggers/target/changelevel.qc
qcsrc/common/triggers/target/location.qc
qcsrc/common/triggers/target/music.qc
qcsrc/common/triggers/target/spawn.qc
qcsrc/common/triggers/target/speaker.qc
qcsrc/common/triggers/target/voicescript.qc
qcsrc/common/triggers/trigger/counter.qc
qcsrc/common/triggers/trigger/delay.qc
qcsrc/common/triggers/trigger/disablerelay.qc
qcsrc/common/triggers/trigger/flipflop.qc
qcsrc/common/triggers/trigger/gamestart.qc
qcsrc/common/triggers/trigger/gravity.qc
qcsrc/common/triggers/trigger/heal.qc
qcsrc/common/triggers/trigger/hurt.qc
qcsrc/common/triggers/trigger/impulse.qc
qcsrc/common/triggers/trigger/jumppads.qc
qcsrc/common/triggers/trigger/keylock.qc
qcsrc/common/triggers/trigger/magicear.qc
qcsrc/common/triggers/trigger/monoflop.qc
qcsrc/common/triggers/trigger/multi.qc
qcsrc/common/triggers/trigger/multivibrator.qc
qcsrc/common/triggers/trigger/relay.qc
qcsrc/common/triggers/trigger/relay_activators.qc
qcsrc/common/triggers/trigger/relay_if.qc
qcsrc/common/triggers/trigger/relay_teamcheck.qc
qcsrc/common/triggers/trigger/secret.qc
qcsrc/common/triggers/trigger/swamp.qc
qcsrc/common/triggers/trigger/teleport.qc
qcsrc/common/triggers/trigger/viewloc.qc
qcsrc/common/triggers/triggers.qc
qcsrc/common/turrets/checkpoint.qc
qcsrc/common/turrets/cl_turrets.qc
qcsrc/common/turrets/config.qc
qcsrc/common/turrets/sv_turrets.qc
qcsrc/common/turrets/targettrigger.qc
qcsrc/common/turrets/turrets.qc
qcsrc/common/turrets/util.qc
qcsrc/common/vehicles/all.qc
qcsrc/common/vehicles/cl_vehicles.qc
qcsrc/common/vehicles/vehicles.qc
qcsrc/common/viewloc.qc
qcsrc/common/weapons/all.qc
qcsrc/common/weapons/config.qc
qcsrc/common/weapons/weapon/arc.qc
qcsrc/common/weapons/weapon/blaster.qc
qcsrc/common/weapons/weapon/crylink.qc
qcsrc/common/weapons/weapon/devastator.qc
qcsrc/common/weapons/weapon/electro.qc
qcsrc/common/weapons/weapon/fireball.qc
qcsrc/common/weapons/weapon/hagar.qc
qcsrc/common/weapons/weapon/hlac.qc
qcsrc/common/weapons/weapon/hook.qc
qcsrc/common/weapons/weapon/machinegun.qc
qcsrc/common/weapons/weapon/minelayer.qc
qcsrc/common/weapons/weapon/mortar.qc
qcsrc/common/weapons/weapon/porto.qc
qcsrc/common/weapons/weapon/rifle.qc
qcsrc/common/weapons/weapon/seeker.qc
qcsrc/common/weapons/weapon/shockwave.qc
qcsrc/common/weapons/weapon/shotgun.qc
qcsrc/common/weapons/weapon/tuba.qc
qcsrc/common/weapons/weapon/vaporizer.qc
qcsrc/common/weapons/weapon/vortex.qc
qcsrc/tools/headerstyle.sh

index a8bbe8e856c430a7fdfaf85e9ab5a4988c96a13d..af81942a2001753c36e9fb1cebdadc6ae283b2bb 100644 (file)
@@ -1,3 +1,4 @@
+#include "campaign_file.qh"
 #if defined(CSQC)
 #elif defined(MENUQC)
 #elif defined(SVQC)
index 8c20c755c31a33881a6b37933d464b63ab5bb329..258d47f452bef14facee6dc58a693086b05caded 100644 (file)
@@ -1,3 +1,4 @@
+#include "campaign_setup.qh"
 #if defined(CSQC)
 #elif defined(MENUQC)
 #elif defined(SVQC)
index bce5ea8e8d3457096dbf5f897426400b2ebf014b..49a9d130989015125f171c6dedfa59561fd7ace2 100644 (file)
@@ -1,3 +1,4 @@
+#include "generic.qh"
 #include "_mod.qh"
 #include "reg.qh"
 
index 583c61e5517d89d046869c1d3ca3050714beeff0..95a3b53c54b9950b7b7dc525669c40b583f08895 100644 (file)
@@ -1,5 +1,5 @@
-#include "command.qh"
 #include "markup.qh"
+#include "command.qh"
 
 // =========================================================
 //  Markup chat characters command code, reworked by Samual
index 12bb99d1d3e862b43904298c57627bb1e874b05c..f88bf635ee665b9628f0e69f0a6b1d1d58b430a8 100644 (file)
@@ -1,5 +1,5 @@
-#include "command.qh"
 #include "rpn.qh"
+#include "command.qh"
 
 
 // ========================================
index cf6d5fca9395a29b8985a1e059522bd1a5f8206e..f662aee7b2a0e4b8d097537308cf96a98f6a1e41 100644 (file)
@@ -1,3 +1,4 @@
+#include "effectinfo.qh"
 #define EFFECTINFO_PARSER(on, MY) \
     on(type,                                        MY(type) \
     ,{ demand(n == 1 && "type");                    MY(type) = strzone(argv(1)); \
index f92df7cd0edba6770769114dba75f8a4d4970fd9..d0befbb7ed04705feb92bb01e63d291011003bed 100644 (file)
@@ -1,3 +1,4 @@
+#include "casings.qh"
 #ifdef SVQC
 void SpawnCasing(vector vel, float randomvel, vector ang, vector avel, float randomavel, int casingtype, entity casingowner, .entity weaponentity);
 #endif
index f57625607a4114333779798d067adbcc23bba5a6..570bc3645fdbbe1104e201b0a2a94fce3a410e44 100644 (file)
@@ -1,3 +1,4 @@
+#include "sv_onslaught.qh"
 #include "sv_controlpoint.qh"
 #include "sv_generator.qh"
 
index cffa348936904e03f518e7c4a2e71c5df93d3b92..f3213527ba48167611a8f842e45af3738e9dad85 100644 (file)
@@ -1,13 +1,12 @@
+#include "mapinfo.qh"
 #if defined(CSQC)
     #include "../client/defs.qh"
     #include "util.qh"
     #include <common/weapons/_all.qh>
-    #include "mapinfo.qh"
 #elif defined(MENUQC)
 #elif defined(SVQC)
     #include "util.qh"
     #include <common/monsters/all.qh>
-    #include "mapinfo.qh"
 #endif
 
 // generic string stuff
index 041e56339c3039be7f7207c642510a7638202951..a0a93b1910870b8cb4ca9ea9069a20da5a9aeed0 100644 (file)
@@ -1,3 +1,4 @@
+#include "bd.qh"
 REGISTER_MINIGAME(bd, "Bulldozer");
 
 const int BD_TURN_MOVE  = 0x0100; // player must move the bulldozer
index 497ef2afc394d24bbe2a46ee0292a94ff0941e11..86c9f1889fd5ecc803b7789442a6cc35d1ce6046 100644 (file)
@@ -1,3 +1,4 @@
+#include "c4.qh"
 REGISTER_MINIGAME(c4, "Connect Four");
 
 const float C4_TURN_PLACE = 0x0100; // player has to place a piece on the board
index 78fb30f1df65b4bfc40cf6921d33a25316b97d89..bdb02ab96273682819017d43864356295a3caf8d 100644 (file)
@@ -1,3 +1,4 @@
+#include "nmm.qh"
 REGISTER_MINIGAME(nmm, "Nine Men's Morris");
 
 const int NMM_TURN_PLACE = 0x0100; // player has to place a piece on the board
index d535b8c85dca031a59c460d118aee7838f001c66..3574b9f74bd659c4d0fe568b5a9bec830b606701 100644 (file)
@@ -1,3 +1,4 @@
+#include "pong.qh"
 REGISTER_MINIGAME(pong, "Pong");
 
 // minigame flags
index f9e0f79b9a92c29459333113448238a826764404..66898838757c12278d92dc4cd4617e852e21ee6f 100644 (file)
@@ -1,3 +1,4 @@
+#include "pp.qh"
 REGISTER_MINIGAME(pp, "Push-Pull");
 
 const int PP_TURN_PLACE = 0x0100; // player has to place a piece on the board
index c9ef8bd67a4ae9fad1bed23776646f2485b1bad1..b2831744de97fbd473a84341be2c6292db1e9dc5 100644 (file)
@@ -1,3 +1,4 @@
+#include "ps.qh"
 REGISTER_MINIGAME(ps, "Peg Solitaire");
 
 const float PS_TURN_MOVE  = 0x0100; // player has to click on a piece on the board
index 4248d589a13391c0f6218d518a155f0cf5727556..d5f0ea0787bf63b8ec5887756b098495745a4be7 100644 (file)
@@ -1,3 +1,4 @@
+#include "snake.qh"
 REGISTER_MINIGAME(snake, "Snake"); // SNAAAAKE
 
 const float SNAKE_TURN_MOVE  = 0x0100; // the snake is moving, player must control it
index 9c0ece163343e840075cb463f79086113ba90e49..9db2201a3f98c9678de04f977b14d9d3e24fab9d 100644 (file)
@@ -1,3 +1,4 @@
+#include "ttt.qh"
 REGISTER_MINIGAME(ttt, "Tic Tac Toe");
 
 const int TTT_TURN_PLACE = 0x0100; // player has to place a piece on the board
index da04340a63c3bcbc21c8ed6d7f7a9f60aa6565eb..5f1d1280b9f5a35dd85e2e4d99b6127767ee93c2 100644 (file)
@@ -1,3 +1,4 @@
+#include "sv_minigames.qh"
 #include "minigames.qh"
 
 void player_clear_minigame(entity player)
index fa3f65193ae5725bc0e4a87806433875344a23f3..a262a234505008acf2d80c49b0617bd947695ce2 100644 (file)
@@ -1,3 +1,4 @@
+#include "all.qh"
 #ifndef MONSTERS_ALL_C
 #define MONSTERS_ALL_C
 
index 23fc845ac75d3f35c9b0ad7e77ca1a9fa98e6057..6c72ada3026700b0b2579b5b788f2607488ec003 100644 (file)
@@ -1,3 +1,4 @@
+#include "spawn.qh"
 #if defined(CSQC)
 #elif defined(MENUQC)
 #elif defined(SVQC)
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..3cb64ce9234761703a1876d0310c873fa2bbe5e8 100644 (file)
@@ -0,0 +1 @@
+#include "overkill.qh"
index 5d8e9341ce9523f9c3ee55e10b0fc32ecc427821..acd570d0b67aeb7318267717b08ca924e1b7c949 100644 (file)
@@ -1,3 +1,4 @@
+#include "all.qh"
 #if defined(CSQC)
        #include <client/announcer.qh>
 #elif defined(MENUQC)
@@ -7,7 +8,6 @@
        #include <server/autocvars.qh>
        #include <server/constants.qh>
        #include <server/defs.qh>
-       #include "all.qh"
        #include <server/mutators/_mod.qh>
 #endif
 
index 51520898705e99e3d9a9c8ca1f7da9a00c948ee3..3009069052f7de48c7a4e7a0fa25f69f993cac21 100644 (file)
@@ -1,3 +1,4 @@
+#include "follow.qh"
 void _Movetype_Physics_Follow(entity this) // SV_Physics_Follow
 {
        entity e = this.aiment;
index 1810fb841d3126ec2b1811915d963da2f9aeaa56..8ac17d883b559449230adb05d0168b798a4571f4 100644 (file)
@@ -1,10 +1,10 @@
+#include "movetypes.qh"
 #include "../player.qh"
 
 #if defined(CSQC)
        #include <client/defs.qh>
        #include <common/stats.qh>
        #include <common/util.qh>
-       #include "movetypes.qh"
        #include <lib/csqcmodel/common.qh>
        #include <common/t_items.qh>
 #elif defined(MENUQC)
index 7eb553bfaa983cbffc9eb28e352a5a7f2e3ced52..a41269f79c562122fe8f01e6745cfa7df2180748 100644 (file)
@@ -1,3 +1,4 @@
+#include "step.qh"
 void _Movetype_Physics_Step(entity this, float dt) // SV_Physics_Step
 {
        if(IS_ONGROUND(this))
index 4821e34f6ac8929ae610ddc00ab35cd188223ce6..498852135b40fd0607ee78d1b86daff703e48ac5 100644 (file)
@@ -1,3 +1,4 @@
+#include "toss.qh"
 #include "../player.qh"
 
 void _Movetype_Physics_Toss(entity this, float dt)  // SV_Physics_Toss
index bf58ca5824419938d4b7ff5dd598273507860516..c20e82e8342825a9282142d288281ceffea2583d 100644 (file)
@@ -1,3 +1,4 @@
+#include "walk.qh"
 void _Movetype_Physics_Walk(entity this, float dt)  // SV_WalkMove
 {
        vector stepnormal = '0 0 0';
index 56ffccea773c012b3dd4464442a8f0f2baf77caf..4dab61164e4b3f7e94b6a2880df0f1d232269e9d 100644 (file)
@@ -1,3 +1,4 @@
+#include "playerstats.qh"
 #if defined(CSQC)
 #elif defined(MENUQC)
 #elif defined(SVQC)
@@ -6,7 +7,6 @@
     #include <common/weapons/_all.qh>
     #include "../server/weapons/accuracy.qh"
     #include "../server/defs.qh"
-    #include "playerstats.qh"
     #include "../server/scores.qh"
 #endif
 
index 9096dddfa8c0e6a31dd1dc2d3f5f8ba069df4b56..b3bdf99e9177e765d1280e880fa6b5ecdef1fbed 100644 (file)
@@ -1,3 +1,4 @@
+#include "all.qh"
 #ifdef SVQC
 
 bool autocvar_bot_sound_monopoly;
index 094673b5bb4612f0b2dcb25f9b0afb7840ca42b0..b7034939ae8863806fc49fb2d326488e70d2a84f 100644 (file)
@@ -1,3 +1,4 @@
+#include "bobbing.qh"
 #ifdef SVQC
 .float height;
 void func_bobbing_controller_think(entity this)
index 29d6c6a269ec3d4181a3ae8a9bb168b7e8682c50..2b7a1155f483b101c8b122a5986df60f8d270219 100644 (file)
@@ -1,3 +1,4 @@
+#include "breakable.qh"
 #ifdef SVQC
 
 #include <server/g_subs.qh>
index b186066e602b1523586a6d4f299a162445ee7efa..916ff8ca1f1434c4f5053f995484df4bcb43cec2 100644 (file)
@@ -1,3 +1,4 @@
+#include "button.qh"
 #ifdef SVQC
 // button and multiple button
 
index 73ceb639408ea20361504d6489d80fc569223a12..4902deea5c27307dac17b4e673db17a76da8a400 100644 (file)
@@ -1,3 +1,4 @@
+#include "conveyor.qh"
 REGISTER_NET_LINKED(ENT_CLIENT_CONVEYOR)
 
 void conveyor_think(entity this)
index 706784eda7b18b13918269cbece6bad46d0bc3eb..8a82802607bdcdb09f505d11248419d5e4d20977 100644 (file)
@@ -1,3 +1,4 @@
+#include "door.qh"
 /*
 
 Doors are similar to buttons, but can spawn a fat trigger field around them
index 31171899fc691a889e204ff06cee003b68b21bea..2c72dc9cf07c1b249d91648683f0e3f4396017a9 100644 (file)
@@ -1,3 +1,4 @@
+#include "door_rotating.qh"
 #ifdef SVQC
 /*QUAKED spawnfunc_func_door_rotating (0 .5 .8) ? START_OPEN BIDIR DOOR_DONT_LINK BIDIR_IN_DOWN x TOGGLE X_AXIS Y_AXIS
 if two doors touch, they are assumed to be connected and operate as a unit.
index 600949fe5c0528f598c0c7692108cae2578058f9..efe997c855350d402a9e4a9a0221eb0099e79862 100644 (file)
@@ -1,3 +1,4 @@
+#include "door_secret.qh"
 #ifdef SVQC
 void fd_secret_move1(entity this);
 void fd_secret_move2(entity this);
index 52eab115a0655790538c6c43471dabaafbe32be8..600f3937301fdbd6695e1272e1623bfbd76ea41b 100644 (file)
@@ -1,3 +1,4 @@
+#include "fourier.qh"
 #ifdef SVQC
 /*QUAKED spawnfunc_func_fourier (0 .5 .8) ?
 Brush model that moves in a pattern of added up sine waves, can be used e.g. for circular motions.
index ae9160dfdab1300e6e0aa0142dc08fdc848dae54..5ff2bdcc247133ac99b9c7a95f1ae4da3fe38a82 100644 (file)
@@ -1,3 +1,4 @@
+#include "ladder.qh"
 REGISTER_NET_LINKED(ENT_CLIENT_LADDER)
 
 void func_ladder_touch(entity this, entity toucher)
index 05f7b75a67602ead968210b1bcf94343d4c32d3c..946712509b0fbea3b1a5752cdcf6da94531a3e3e 100644 (file)
@@ -1,3 +1,4 @@
+#include "pendulum.qh"
 #ifdef SVQC
 .float freq;
 void func_pendulum_controller_think(entity this)
index 396636e8cd214cf8c96e8f7f95b0ae90a920e192..5d90924daa248b0e079f8ff4bc99bf5b6c4e125e 100644 (file)
@@ -1,3 +1,4 @@
+#include "plat.qh"
 REGISTER_NET_LINKED(ENT_CLIENT_PLAT)
 
 #ifdef SVQC
index 0cf0615da8e66fae26ea186239ede6f0c28ca7b0..a0773f249a82ccfe6bc52f0fac17cb063381cbd6 100644 (file)
@@ -1,3 +1,4 @@
+#include "pointparticles.qh"
 REGISTER_NET_LINKED(ENT_CLIENT_POINTPARTICLES)
 
 #ifdef SVQC
index cc7dc09228b872efe428a0704d62764e353f6889..c8b4e2924376fb510b27ba4ffb2c6d4dc1cba511 100644 (file)
@@ -1,3 +1,4 @@
+#include "rainsnow.qh"
 REGISTER_NET_LINKED(ENT_CLIENT_RAINSNOW)
 
 #ifdef SVQC
index 22f3dedea282926edb76fd55ec172d740aad02af..1adaea91d354db13b259a0109fb86da46efd3352 100644 (file)
@@ -1,3 +1,4 @@
+#include "rotating.qh"
 #ifdef SVQC
 void func_rotating_setactive(entity this, int astate)
 {
index db5081b61b474659b09a7f98f0cd58742d98f86f..9c2fba8ada8ed27ca928ba17218beadffcd70111 100644 (file)
@@ -1,3 +1,4 @@
+#include "stardust.qh"
 #ifdef SVQC
 spawnfunc(func_stardust)
 {
index 247bfb0fc1e5e34703fc23f42e751e0d57be681a..dd9eaac860a5efe24dc0f7d09b71569b356f5fc2 100644 (file)
@@ -1,3 +1,4 @@
+#include "train.qh"
 .float train_wait_turning;
 void train_next(entity this);
 #ifdef SVQC
index accdc998350a556af775d72eac796ef9675abfb2..18d58d649177124543cec55d6834644e99ec58f9 100644 (file)
@@ -1,3 +1,4 @@
+#include "vectormamamam.qh"
 #ifdef SVQC
 // reusing some fields havocbots declared
 .entity wp00, wp01, wp02, wp03;
index 38772a295562e09ec2138f05f7e54dec1a445e79..dcc44710fc4e2fe6f746d3c8fd85b0d8da06f7de 100644 (file)
@@ -1,3 +1,4 @@
+#include "corner.qh"
 REGISTER_NET_LINKED(ENT_CLIENT_CORNER)
 
 #ifdef SVQC
index d19d9da0853c856dd5132dff40fa42d22945c042..63db2c18fa83ac172f62dce5a7b187fccc0c63c4 100644 (file)
@@ -1,3 +1,4 @@
+#include "follow.qh"
 // the way this entity works makes it no use to CSQC, as it removes itself instantly
 
 #ifdef SVQC
index 8965c62906e01e349fb2b5f85867746414907878..bbe5ce03d6d18fca6344507904a0c22dac1d081e 100644 (file)
@@ -1,3 +1,4 @@
+#include "include.qh"
 #include "corner.qc"
 #include "follow.qc"
 #include "laser.qc"
index d10ff11280b2aa82efd6babfd450c7e996786422..2059a8126d53101672aec3410e6560e8812d2891 100644 (file)
@@ -1,3 +1,4 @@
+#include "laser.qh"
 #if defined(CSQC)
        #include <lib/csqcmodel/interpolate.qh>
        #include <client/main.qh>
index ab15a689192c50ac21e2c639b54c3d26f951d8ac..fc3cec863a26920d0547df1143e75af283631f88 100644 (file)
@@ -1,3 +1,4 @@
+#include "teleport_dest.qh"
 REGISTER_NET_LINKED(ENT_CLIENT_TELEPORT_DEST)
 
 #ifdef SVQC
index 7b9ffd9c5007d573e724e8c0462c83698bbc2ccd..10af3e1944316a7f1b6299297cfbd6a3686cb3d3 100644 (file)
@@ -1,3 +1,4 @@
+#include "platforms.qh"
 void generic_plat_blocked(entity this, entity blocker)
 {
 #ifdef SVQC
index 66f0253d95e1bcce3987fc33c2f1f50943905e4b..67eb18a6782b84f54abedd8813e258c51b846fb4 100644 (file)
@@ -1,3 +1,4 @@
+#include "subs.qh"
 void SUB_NullThink(entity this) { }
 
 void SUB_CalcMoveDone(entity this);
index d4bc850de11eef0766ec3aeeefca3aca59ac75e6..6c006d42a91610e70cd3984bc076cdc61312885c 100644 (file)
@@ -1,3 +1,4 @@
+#include "changelevel.qh"
 #ifdef SVQC
 .string chmap, gametype;
 .entity chlevel_targ;
index 5a24d2c5ed6e4e709ba4d2b5d445b1905e59ab23..5259276e43c0f1bb7c47ae87ea9365577e89bbc8 100644 (file)
@@ -1,3 +1,4 @@
+#include "location.qh"
 #ifdef SVQC
 void target_push_init(entity this);
 
index ff195f03f9bff35a12f6adad94dfe66e1cec8656..c8e3539283d76652c719e3ce0f82c9c5669f441d 100644 (file)
@@ -1,3 +1,4 @@
+#include "music.qh"
 #if defined(CSQC)
 #elif defined(MENUQC)
 #elif defined(SVQC)
index bc5271040c691516623d68240c241faad5fb6b32..4eed8ef345872f3726bcb03fd4904fdcb63a871e 100644 (file)
@@ -1,3 +1,4 @@
+#include "spawn.qh"
 #if defined(CSQC)
 #elif defined(MENUQC)
 #elif defined(SVQC)
index f8f1c0ace5d32f38da5e6f3086b1f82011618eab..af327b443bc21febb1c8494829bfd10e1fb4543a 100644 (file)
@@ -1,3 +1,4 @@
+#include "speaker.qh"
 #ifdef SVQC
 // TODO add a way to do looped sounds with sound(); then complete this entity
 void target_speaker_use_off(entity this, entity actor, entity trigger);
index bdf1e0f1fb40e856f89823b0d3e347aae9a3be03..fe7155cc546ff60349f4ed22b164a5ca313ca73c 100644 (file)
@@ -1,3 +1,4 @@
+#include "voicescript.qh"
 #ifdef SVQC
 .entity voicescript; // attached voice script
 .float voicescript_index; // index of next voice, or -1 to use the randomized ones
index a4f850ba9ad548d9b76e14f67f64fd6f4851054a..8246aed7c329a67c8eaa10cf3f4822186ba62cfc 100644 (file)
@@ -1,3 +1,4 @@
+#include "counter.qh"
 #ifdef SVQC
 void counter_use(entity this, entity actor, entity trigger)
 {
index d6742fed3298c03f70882ee07871ed566a54beb5..c5049da3931f73b8eab4288601d30fd71426d25a 100644 (file)
@@ -1,3 +1,4 @@
+#include "delay.qh"
 #ifdef SVQC
 void delay_use(entity this, entity actor, entity trigger)
 {
index 1d30db0e08f919a703a1d11da5d5b35bb0369802..6154f6bf0aa073e67c3aa522bb7a96501c541f6a 100644 (file)
@@ -1,3 +1,4 @@
+#include "disablerelay.qh"
 #ifdef SVQC
 void trigger_disablerelay_use(entity this, entity actor, entity trigger)
 {
index e4923bdf545bdf8cb43740858ffc384071191539..af212ff5a42b7449bea067a2c755d4c86374782f 100644 (file)
@@ -1,3 +1,4 @@
+#include "flipflop.qh"
 #ifdef SVQC
 /*QUAKED spawnfunc_trigger_flipflop (.5 .5 .5) (-8 -8 -8) (8 8 8) START_ENABLED
 "Flip-flop" trigger gate... lets only every second trigger event through
index 62b21e66f4fe4dbe8bcc5010c83e1b6c1500ce8d..72d76d183326437bdd4f5bcd7a38393d0a578268 100644 (file)
@@ -1,3 +1,4 @@
+#include "gamestart.qh"
 #ifdef SVQC
 void gamestart_use(entity this, entity actor, entity trigger)
 {
index 88b73c4dfcdd1d15c979c3bf2cebda4172ce0020..3ea1562f084a93e4c73b7fdb0c9a26ac64dad90e 100644 (file)
@@ -1,3 +1,4 @@
+#include "gravity.qh"
 #ifdef SVQC
 .entity trigger_gravity_check;
 void trigger_gravity_remove(entity own)
index 5a2bc78de8a16017afc95b71b8be8d2fa643f24a..e7b309062848d0fe673b8d797f4039512f292372 100644 (file)
@@ -1,3 +1,4 @@
+#include "heal.qh"
 #ifdef SVQC
 .float triggerhealtime;
 void trigger_heal_touch(entity this, entity toucher)
index 4579fd7524af53601118a5e3e11f2c57dc780f58..d0ba4ebd19b252e925e425bb6cd2089475cffeff 100644 (file)
@@ -1,3 +1,4 @@
+#include "hurt.qh"
 #ifdef SVQC
 void trigger_hurt_use(entity this, entity actor, entity trigger)
 {
index 43bac947e127908930ca816e0f9115b82b5f4127..cb9c2d293558fad6829c7e888a08c9cfc63c0f40 100644 (file)
@@ -1,3 +1,4 @@
+#include "impulse.qh"
 // targeted (directional) mode
 void trigger_impulse_touch1(entity this, entity toucher)
 {
index 519ba2691586fb5e5d0d99a99021361310b8c5bb..ef13dd5bec0d95af57d2432ba25e83953335cfa5 100644 (file)
@@ -1,3 +1,4 @@
+#include "jumppads.qh"
 // TODO: split target_push and put it in the target folder
 #ifdef SVQC
 #include "jumppads.qh"
index eabb84f57ac4bb5c06960e855659ba34a1bbce96..bf20d1e9732e4dfe133ed4fc5473ae50b5021bd9 100644 (file)
@@ -1,3 +1,4 @@
+#include "keylock.qh"
 /**
  * trigger given targets
  */
index 53fda30e4285bfb27d74113dbe343288a40248da..065d8c932ac1ffdd04c2cf0b1054cf231877b6d4 100644 (file)
@@ -1,3 +1,4 @@
+#include "magicear.qh"
 #ifdef SVQC
 float magicear_matched;
 float W_Tuba_HasPlayed(entity pl, string melody, float instrument, float ignorepitch, float mintempo, float maxtempo);
index 018e20884b25938e7d17fba6fc0764948c2aad1d..a67baca16a2f152d69877823eee144bfd076724a 100644 (file)
@@ -1,3 +1,4 @@
+#include "monoflop.qh"
 #ifdef SVQC
 /*QUAKED spawnfunc_trigger_monoflop (.5 .5 .5) (-8 -8 -8) (8 8 8)
 "Mono-flop" trigger gate... turns one trigger event into one "on" and one "off" event, separated by a delay of "wait"
index b801e9f4f35cb169470cd0c87e62061ae19bb3f3..7aa13c13ebfc2aec22b8d7a7382607877cd0d5e2 100644 (file)
@@ -1,3 +1,4 @@
+#include "multi.qh"
 // NOTE: also contains trigger_once at bottom
 
 #ifdef SVQC
index 1a1850537d4f29cd7bdde118395ea007e1d1716d..d946efe5f17cc533c2b104b52fb1dc2c2e37ba82 100644 (file)
@@ -1,3 +1,4 @@
+#include "multivibrator.qh"
 #ifdef SVQC
 void multivibrator_send(entity this)
 {
index 1df446ba32ee4345a936fc0512c98eb5aa191a65..794f4dc112d017a4e9759dbe84095d628662602e 100644 (file)
@@ -1,3 +1,4 @@
+#include "relay.qh"
 #ifdef SVQC
 /*QUAKED spawnfunc_trigger_relay (.5 .5 .5) (-8 -8 -8) (8 8 8)
 This fixed size trigger cannot be touched, it can only be fired by other events.  It can contain killtargets, targets, delays, and messages.
index bbb49d0e5c29a3aafe79595510a684666fd25a27..d713a05837728245f18a604f96647b5a300d40ca 100644 (file)
@@ -1,3 +1,4 @@
+#include "relay_activators.qh"
 #ifdef SVQC
 void relay_activators_use(entity this, entity actor, entity trigger)
 {
index ea90a06cb70d19865b24365bf582ebfbcadcfaee..728252c70400972a4259b3f49eea02c5100027d2 100644 (file)
@@ -1,3 +1,4 @@
+#include "relay_if.qh"
 #ifdef SVQC
 void trigger_relay_if_use(entity this, entity actor, entity trigger)
 {
index 2972d32bbf79b3e23fa6da66e4e9569e982a6824..4f9dab7fd1e500a4228297b82ba9e6dab1be6dc6 100644 (file)
@@ -1,3 +1,4 @@
+#include "relay_teamcheck.qh"
 #ifdef SVQC
 void trigger_relay_teamcheck_use(entity this, entity actor, entity trigger)
 {
index 9260c01ac2817e1f6920139f1f7b9c1c42895056..e6e35c295a9f8d723285699de7db0972e850ea9c 100644 (file)
@@ -1,9 +1,9 @@
+#include "secret.qh"
 #if defined(CSQC)
 #elif defined(MENUQC)
 #elif defined(SVQC)
     #include <common/util.qh>
     #include <server/defs.qh>
-    #include "secret.qh"
 #endif
 
 #ifdef SVQC
index e204d3a25aee8b2f71c4c0898651990143ef5dc1..71c5247c7446c5332d12e62b7f9084e105e47bd9 100644 (file)
@@ -1,3 +1,4 @@
+#include "swamp.qh"
 #if defined(CSQC)
 #elif defined(MENUQC)
 #elif defined(SVQC)
index 69e2c49c1d9c83b3ceb2b13fb3a14bc9f96e8f65..05bb13c710e7ed4c4289f92acbd137c82da3505c 100644 (file)
@@ -1,3 +1,4 @@
+#include "teleport.qh"
 REGISTER_NET_LINKED(ENT_CLIENT_TRIGGER_TELEPORT)
 
 #ifdef SVQC
index f2a0e86cc33be9aadae80058f36ddd603e53ac0b..d53ac5dca6720b9d3669088704da27e04e9bd744 100644 (file)
@@ -1,3 +1,4 @@
+#include "viewloc.qh"
 #if defined(CSQC)
 #elif defined(MENUQC)
 #elif defined(SVQC)
index 81144aae7f883b382cdf903aabd6cc64e32ca084..54e1e09919f06666bb6ff1b22c379b5f7577bc0c 100644 (file)
@@ -1,3 +1,4 @@
+#include "triggers.qh"
 void SUB_DontUseTargets(entity this, entity actor, entity trigger) { }
 
 void SUB_UseTargets(entity this, entity actor, entity trigger);
index fb56d3ecc93026e892066e1d193d9030791bb3c1..6c246a75b83a5c8b6229f475c32c82bd173f1556 100644 (file)
@@ -1,3 +1,4 @@
+#include "checkpoint.qh"
 /**
     turret_checkpoint
 **/
index 29658b56b459ade61ef0f89a2e8a3f58fed3d2ec..a893b3e8a77d30c281ef602770dc6098319947f6 100644 (file)
@@ -1,3 +1,4 @@
+#include "cl_turrets.qh"
 void turret_remove(entity this)
 {
        delete(this.tur_head);
index f5989b48d157221c0e1fea3b629e3ee8911b6c4f..2b1e00c8a7d29d9db05b175bd357b4547786c480 100644 (file)
@@ -1,3 +1,4 @@
+#include "config.qh"
 // ==========================
 //  Turret Config Generator
 // ==========================
index a387fefc47c459797da84069f3476fbe5dd0ffe8..dabb7ee35dfcdbcb8845f4014355be79168ae8de 100644 (file)
@@ -1,3 +1,4 @@
+#include "sv_turrets.qh"
 #ifdef SVQC
 #include <server/autocvars.qh>
 
index ca94f2b4e1fbee55b2a219b1959d2f5bd8c9c94f..f2a97d4a12529e6fd576819d7509b5bd55597937 100644 (file)
@@ -1,3 +1,4 @@
+#include "targettrigger.qh"
 spawnfunc(turret_targettrigger);
 void turret_targettrigger_touch(entity this, entity toucher);
 
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..a53f859524446a496fccab2a976f08fb76e974b9 100644 (file)
@@ -0,0 +1 @@
+#include "turrets.qh"
index 8a6a5ee87bc06716cfebceb362af3217420a4476..5fef364580860b256d624eb552b32a13c55fc098 100644 (file)
@@ -1,3 +1,4 @@
+#include "util.qh"
 /*
 * Update this.tur_shotorg by getting up2date bone info
 * NOTICE this func overwrites the global v_forward, v_right and v_up vectors.
index 251df22839e750646abef244455aa63d7e846df5..4aef11cad56ed35fc49ca0b037842aceb861a74b 100644 (file)
@@ -1,8 +1,7 @@
+#include "all.qh"
 #ifndef VEHICLES_ALL_C
 #define VEHICLES_ALL_C
 
-#include "all.qh"
-
 REGISTER_NET_LINKED(ENT_CLIENT_AUXILIARYXHAIR)
 
 #if defined(SVQC)
index e08490976d15b253e303441933f2b122c69cac4c..afb48c918b89f74e353d3c2f624ecfafdb69e65d 100644 (file)
@@ -1,3 +1,4 @@
+#include "cl_vehicles.qh"
 const string vCROSS_BURST = "gfx/vehicles/crosshair_burst.tga";
 const string vCROSS_DROP  = "gfx/vehicles/crosshair_drop.tga";
 const string vCROSS_GUIDE = "gfx/vehicles/crosshair_guide.tga";
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..5e7736501b28e6c2ae3a8e6ed19ee0a521cd4b24 100644 (file)
@@ -0,0 +1 @@
+#include "vehicles.qh"
index 4b6a6997a4c86a800b5c9a3692d7193a8375ec7e..7d6a3818e0ee8fd5024587e37107569a92db7306 100644 (file)
@@ -1,3 +1,4 @@
+#include "viewloc.qh"
 #include "util.qh"
 
 #if defined(CSQC)
index 3e90bfe15548f016bd632f3c3d9b7a35988f1eec..dfdbd765665a1b09322afd0b28b62f4d6dcd8998 100644 (file)
@@ -1,8 +1,7 @@
+#include "all.qh"
 #ifndef WEAPONS_ALL_C
 #define WEAPONS_ALL_C
 
-#include "all.qh"
-
 #if defined(CSQC)
        #include <client/defs.qh>
        #include "../constants.qh"
index 26a05d10ac739f4b609a5ce39384be48e9ef86d8..4f6177b478f17bc870366358618c21d44133f3a7 100644 (file)
@@ -1,8 +1,8 @@
+#include "config.qh"
 #if defined(CSQC)
 #elif defined(MENUQC)
 #elif defined(SVQC)
     #include "../util.qh"
-    #include "config.qh"
     #include "all.qh"
 #endif
 
index fa8e83168d56538135e3c8ec41acb68243036d2a..895d2c13b0b009aadbe205c7580fa72ec01fb5e3 100644 (file)
@@ -1,3 +1,4 @@
+#include "arc.qh"
 #ifndef IMPLEMENTATION
 CLASS(Arc, Weapon)
 /* ammotype  */ ATTRIB(Arc, ammo_field, .int, ammo_cells);
index c5911b89f3bb6f35742154f323f53eac41f314f2..2f24e9e254bcb495b4c53782f4434771ed1269b8 100644 (file)
@@ -1,3 +1,4 @@
+#include "blaster.qh"
 #ifndef IMPLEMENTATION
 CLASS(Blaster, Weapon)
 /* ammotype  */ //ATTRIB(Blaster, ammo_field, .int, ammo_none);
index 1a3fb3fa414450fb02e9263ca0837a5f145392f7..be5b2ec28f2d96c9cfb8a4270315dda36d1e9306 100644 (file)
@@ -1,3 +1,4 @@
+#include "crylink.qh"
 #ifndef IMPLEMENTATION
 CLASS(Crylink, Weapon)
 /* ammotype  */ ATTRIB(Crylink, ammo_field, .int, ammo_cells);
index 9462070aad83ca8d7264e432f761a9d7ed230a86..5ffe08bad9613ee7303ab9c256d8726e97b13f52 100644 (file)
@@ -1,3 +1,4 @@
+#include "devastator.qh"
 #ifndef IMPLEMENTATION
 CLASS(Devastator, Weapon)
 /* ammotype  */ ATTRIB(Devastator, ammo_field, .int, ammo_rockets);
index aa66f50c8de71777316d954c6d80db515293aa44..bd6fb89694bda3bb0d4a265cc3d525c66218822d 100644 (file)
@@ -1,3 +1,4 @@
+#include "electro.qh"
 #ifndef IMPLEMENTATION
 CLASS(Electro, Weapon)
 /* ammotype  */ ATTRIB(Electro, ammo_field, .int, ammo_cells);
index bfc0207152796e574e5c2be32cc3ce889dc732aa..db87ee445f8b9a379f267017ca4eaa072d7dc5e2 100644 (file)
@@ -1,3 +1,4 @@
+#include "fireball.qh"
 #ifndef IMPLEMENTATION
 CLASS(Fireball, Weapon)
 /* ammotype  */ //ATTRIB(Fireball, ammo_field, .int, ammo_none);
index 72fb60db62717054813e156fe6d27a342ecd7678..ece4b358950281f125ab71561799b9afb9142e4b 100644 (file)
@@ -1,3 +1,4 @@
+#include "hagar.qh"
 #ifndef IMPLEMENTATION
 CLASS(Hagar, Weapon)
 /* ammotype  */ ATTRIB(Hagar, ammo_field, .int, ammo_rockets);
index 4ed2ee9f4b3c6a13f8ffb768139676993d1fd793..c77ccc98e4d12377da82b75aff8ffefb1ba46f1c 100644 (file)
@@ -1,3 +1,4 @@
+#include "hlac.qh"
 #ifndef IMPLEMENTATION
 CLASS(HLAC, Weapon)
 /* ammotype  */ ATTRIB(HLAC, ammo_field, .int, ammo_cells);
index 6409e94ff1e0304774658281c58cce27413d1818..b2c317459935f818088d5d9feaa7773232257b3a 100644 (file)
@@ -1,3 +1,4 @@
+#include "hook.qh"
 #ifndef IMPLEMENTATION
 CLASS(Hook, Weapon)
 /* ammotype  */ ATTRIB(Hook, ammo_field, .int, ammo_fuel);
index 96c873a07fe3d3eef2e8383273f607657aca6569..81da28ddb05b3741fa0d68f180829f8b49380130 100644 (file)
@@ -1,3 +1,4 @@
+#include "machinegun.qh"
 #ifndef IMPLEMENTATION
 CLASS(MachineGun, Weapon)
 /* ammotype  */ ATTRIB(MachineGun, ammo_field, .int, ammo_nails);
index c47838842540d0aba4e2563ab72c897f58d9d8f3..a3b356954af68f47a0b07d76ac61aa5d81e4f204 100644 (file)
@@ -1,3 +1,4 @@
+#include "minelayer.qh"
 #ifndef IMPLEMENTATION
 CLASS(MineLayer, Weapon)
 /* ammotype  */ ATTRIB(MineLayer, ammo_field, .int, ammo_rockets);
index f3613e554dece88770d83278cfc044ddbd124702..81be156541cb7f31c40d9dd5081ad76c3b41677d 100644 (file)
@@ -1,3 +1,4 @@
+#include "mortar.qh"
 #ifndef IMPLEMENTATION
 CLASS(Mortar, Weapon)
 /* ammotype  */ ATTRIB(Mortar, ammo_field, .int, ammo_rockets);
index 98bebaac6ab888c7488f83df93bc273506508435..8a689e05109086704ecf726a751aafea27463aee 100644 (file)
@@ -1,3 +1,4 @@
+#include "porto.qh"
 #ifndef IMPLEMENTATION
 CLASS(PortoLaunch, Weapon)
 /* ammotype  */ ATTRIB(PortoLaunch, ammo_field, .int, ammo_none);
index 3eee2d4ba6186f30a47cdaee24b85bbf053560be..478a3152536945aedae9ccbd9a53c369e52b8065 100644 (file)
@@ -1,3 +1,4 @@
+#include "rifle.qh"
 #ifndef IMPLEMENTATION
 CLASS(Rifle, Weapon)
 /* ammotype  */ ATTRIB(Rifle, ammo_field, .int, ammo_nails);
index 4b9e2d81a987c5c37b8f71d5e43fc8b0ea7df004..850659069a30cd71a6c259aa3c4c49775787515a 100644 (file)
@@ -1,3 +1,4 @@
+#include "seeker.qh"
 #ifndef IMPLEMENTATION
 CLASS(Seeker, Weapon)
 /* ammotype  */ ATTRIB(Seeker, ammo_field, .int, ammo_rockets);
index ae44e907ee79b9a1a7b775a731e73fa2430e8a63..28cbe69bbe5a1a04a7a52f400127070ff5d49732 100644 (file)
@@ -1,3 +1,4 @@
+#include "shockwave.qh"
 #ifndef IMPLEMENTATION
 CLASS(Shockwave, Weapon)
 /* ammotype  */ //ATTRIB(Shockwave, ammo_field, .int, ammo_none);
index fa166aee672e0d31cfadc46724c2d9c387e42838..9ae0c6069ab7b748b8f63a8c4c147891533ec8cf 100644 (file)
@@ -1,3 +1,4 @@
+#include "shotgun.qh"
 #ifndef IMPLEMENTATION
 CLASS(Shotgun, Weapon)
 /* ammotype  */ ATTRIB(Shotgun, ammo_field, .int, ammo_shells);
index 2570c7ba783b0a9d50342b5c897a73bb735ff2af..546e59f2410099f36f94129c8e2e51fca53409a1 100644 (file)
@@ -1,3 +1,4 @@
+#include "tuba.qh"
 #ifndef IMPLEMENTATION
 CLASS(Tuba, Weapon)
 /* impulse   */ ATTRIB(Tuba, impulse, int, 1);
index 8289ccbbd09921b28ce49e319533f564d16fc9b9..91cf8e9da4353e30556ba7d520d2d1f5015c88a6 100644 (file)
@@ -1,3 +1,4 @@
+#include "vaporizer.qh"
 #ifndef IMPLEMENTATION
 CLASS(Vaporizer, Weapon)
 /* ammotype  */ ATTRIB(Vaporizer, ammo_field, .int, ammo_cells);
index cd493b493fa1acc70bd50cfbaef531f01c199bec..3e2c1a094e7795dd7e3f99b84ad18a7cd683cece 100644 (file)
@@ -1,3 +1,4 @@
+#include "vortex.qh"
 #ifndef IMPLEMENTATION
 CLASS(Vortex, Weapon)
 /* ammotype  */ ATTRIB(Vortex, ammo_field, .int, ammo_cells);
index 7f86db1ee1347eac6874bbd4db5ef924dc6edca3..924083166f08e0650e4c08f624eded6b6835822c 100755 (executable)
@@ -17,7 +17,7 @@ function check() {
     find "$base" -type f -name '*.qc' -print0 | sort -z | while read -r -d '' file; do
         echo "$file"
         declare -l file_h="${file%.qc}.qh"
-        if [ ! -f "$file_h" ]; then echo "#pragma once" > "$file_h"; fi
+        if [[ ! -f "$file_h" ]]; then echo "#pragma once" > "$file_h"; fi
 
         include=$(basename "$file")
         include="${include%.qc}.qh"
@@ -28,21 +28,9 @@ function check() {
         echo "$file"
         startswith "$file" "#pragma once"
     done
-    find "$base" -type f -name '_mod.inc' -print0 | sort -z | while read -r -d '' file; do
-        echo "$file"
-        declare -l file_inc="${file%_mod.inc}_all.inc"
-        if [ ! -f "$file_inc" ]; then
-            echo '#include "_all.qh"' > "$file_inc"
-            echo '#include "_mod.inc"' >> "$file_inc"
-        fi
-        declare -l file_qh="${file%_mod.inc}_all.qh"
-        if [ ! -f "$file_qh" ]; then
-            echo '#pragma once' > "$file_qh"
-            echo '#include "_mod.qh"' >> "$file_qh"
-        fi
-    done
 }
 
 check client
 check server
 check menu
+check common