]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix compile
authorMario <mario@smbclan.net>
Wed, 23 Dec 2015 08:55:56 +0000 (18:55 +1000)
committerMario <mario@smbclan.net>
Wed, 23 Dec 2015 08:55:56 +0000 (18:55 +1000)
34 files changed:
qcsrc/client/csqcmodel_hooks.qc
qcsrc/client/t_items.qc
qcsrc/client/view.qc
qcsrc/client/weapons/projectile.qc
qcsrc/common/effects/qc/casings.qc
qcsrc/common/effects/qc/damageeffects.qc
qcsrc/common/effects/qc/gibs.qc
qcsrc/common/monsters/sv_monsters.qc
qcsrc/common/mutators/mutator/bugrigs/bugrigs.qc
qcsrc/common/mutators/mutator/dodging/dodging.qc
qcsrc/common/mutators/mutator/doublejump/doublejump.qc
qcsrc/common/mutators/mutator/multijump/multijump.qc
qcsrc/common/physics/all.inc
qcsrc/common/physics/movelib.qc
qcsrc/common/physics/movelib.qh
qcsrc/common/physics/movetypes/all.inc [new file with mode: 0644]
qcsrc/common/physics/movetypes/include.qc [deleted file]
qcsrc/common/physics/movetypes/include.qh [deleted file]
qcsrc/common/physics/movetypes/movetypes.qc
qcsrc/common/physics/movetypes/push.qc
qcsrc/common/physics/movetypes/toss.qc
qcsrc/common/physics/movetypes/walk.qc
qcsrc/common/physics/player.qc
qcsrc/common/stats.qh
qcsrc/common/triggers/trigger/jumppads.qc
qcsrc/common/turrets/turret/ewheel.qc
qcsrc/common/turrets/turret/walker.qc
qcsrc/common/vehicles/vehicle/spiderbot.qc
qcsrc/common/weapons/all.qc
qcsrc/lib/csqcmodel/cl_player.qc
qcsrc/server/cl_client.qc
qcsrc/server/command/cmd.qc
qcsrc/server/g_damage.qc
qcsrc/server/g_world.qc

index 83c3f448a2ec802378a09d238b62d0afdcf26de1..7ebc11fe6afdc5000f24a97ba89f795d15ec233c 100644 (file)
@@ -2,7 +2,7 @@
 #include "player_skeleton.qh"
 #include "weapons/projectile.qh"
 #include "../common/animdecide.qh"
-#include "../common/movetypes/movetypes.qh"
+#include "../common/physics/movetypes/movetypes.qh"
 #include "../common/viewloc.qh"
 #include "../lib/csqcmodel/cl_model.qh"
 #include "../lib/csqcmodel/cl_player.qh"
index b0e1315f69bf3d9abc33c5b9be58f4556e6363db..097f546eeeecf63eb10644b0db492a44f3c4424a 100644 (file)
@@ -1,5 +1,5 @@
 
-#include "../common/movetypes/movetypes.qh"
+#include "../common/physics/movetypes/movetypes.qh"
 #include "../common/weapons/all.qh"
 #include "../lib/csqcmodel/cl_model.qh"
 #include "../lib/csqcmodel/common.qh"
index 83505237de521f9903f25e3739d77ec2a46c3190..cdeb247e77a412b2ac5c4ddea89a849118a10ab0 100644 (file)
@@ -14,7 +14,7 @@
 #include "../common/debug.qh"
 #include "../common/mapinfo.qh"
 #include "../common/gamemodes/all.qh"
-#include "../common/physics.qh"
+#include "../common/physics/player.qh"
 #include "../common/stats.qh"
 #include "../common/triggers/target/music.qh"
 #include "../common/teams.qh"
index 04d728480c114972119d6792757d5027c3259bbb..48f02c4fe01bb4d3279c0bdf8ad86bb2eb747257 100644 (file)
@@ -6,7 +6,7 @@
 #include "../mutators/events.qh"
 
 #include "../../common/constants.qh"
-#include "../../common/movetypes/movetypes.qh"
+#include "../../common/physics/movetypes/movetypes.qh"
 
 #include "../../lib/csqcmodel/interpolate.qh"
 
index 7393217891139454e6848872f4f54937bac3cc1d..5d8a87d28ce5dbde9612e2f664571eb96134fd1f 100644 (file)
@@ -3,7 +3,7 @@
 #include "../../util.qh"
 
 #ifdef CSQC
-#include "../../movetypes/movetypes.qh"
+#include "../../physics/movetypes/movetypes.qh"
 #include "rubble.qh"
 #endif
 
index e77f63f69c8c19a8261f40075da5b2599d3e9d63..2de4ef14c2874a4cf51a78990c4eca468a66ee9f 100644 (file)
@@ -3,7 +3,7 @@
 
 #ifdef CSQC
 #include "../../deathtypes/all.qh"
-#include "../../movetypes/movetypes.qh"
+#include "../../physics/movetypes/movetypes.qh"
 #include "../../../client/mutators/events.qh"
 #include "../../vehicles/all.qh"
 #include "../../weapons/all.qh"
index 19f47500e5d19f1b9efef96e5b109679cdcd181f..2e248096bb7582c5a7e0887a896e9be051ebc2ed 100644 (file)
@@ -59,7 +59,7 @@ void Violence_GibSplash(entity source, float type, float amount, entity attacker
 .bool silent;
 
 #include "rubble.qh"
-#include "../common/movetypes/movetypes.qh"
+#include "../common/physics/movetypes/movetypes.qh"
 
 .float scale;
 .float alpha;
index e949e3a0d4969ac49d1c0d78c32e420390c8fe4d..27e124674d41285b76ccab192dcae915d35c66c3 100644 (file)
@@ -7,6 +7,7 @@
     #include "../util.qh"
     #include "all.qh"
     #include "sv_monsters.qh"
+       #include "../physics/movelib.qh"
     #include "../weapons/all.qh"
     #include "../../server/autocvars.qh"
     #include "../../server/defs.qh"
@@ -710,7 +711,7 @@ void Monster_Move(float runspeed, float walkspeed, float stpspeed)
                if(!(self.spawnflags & MONSTERFLAG_INVINCIBLE) && self.sprite)
                        WaypointSprite_UpdateHealth(self.sprite, self.health);
 
-               movelib_beak_simple(stpspeed);
+               movelib_brake_simple(stpspeed);
                setanim(self, self.anim_idle, true, false, false);
 
                self.enemy = world;
@@ -729,7 +730,7 @@ void Monster_Move(float runspeed, float walkspeed, float stpspeed)
                if(!(self.spawnflags & MONSTERFLAG_INVINCIBLE) && self.sprite)
                        WaypointSprite_UpdateHealth(self.sprite, self.health);
 
-               movelib_beak_simple(stpspeed);
+               movelib_brake_simple(stpspeed);
                setanim(self, self.anim_idle, true, false, false);
 
                self.enemy = world;
@@ -798,7 +799,7 @@ void Monster_Move(float runspeed, float walkspeed, float stpspeed)
                runspeed = walkspeed = 0;
                if(time >= self.spawn_time)
                        setanim(self, self.anim_idle, true, false, false);
-               movelib_beak_simple(stpspeed);
+               movelib_brake_simple(stpspeed);
                return;
        }
 
@@ -879,7 +880,7 @@ void Monster_Move(float runspeed, float walkspeed, float stpspeed)
                else if(e.target)
                        self.target2 = e.target;
 
-               movelib_beak_simple(stpspeed);
+               movelib_brake_simple(stpspeed);
                if(time > self.anim_finished)
                if(time > self.pain_finished)
                if(!self.state)
@@ -1129,7 +1130,7 @@ void Monster_Move_2D(float mspeed, float allow_jumpoff)
                mspeed = 0;
                if(time >= self.spawn_time)
                        setanim(self, self.anim_idle, true, false, false);
-               movelib_beak_simple(0.6);
+               movelib_brake_simple(0.6);
                return;
        }
 
index 194341383dc2d5afd8c8cdf014c907c4bc3cc418..887dcbf950708d0c91e84fd2de5a6ba0e3e9172e 100644 (file)
@@ -2,7 +2,7 @@
 #ifdef SVQC
        #include "../../../../server/antilag.qh"
 #endif
-#include "../../../physics.qh"
+#include "../../../physics/player.qh"
 
 
 #if defined(SVQC)
index d2debd8bf07d1c8345ab0da3b0a78479227fbca7..053cdd739f0ab165524524335cefdb5961b4872b 100644 (file)
@@ -33,7 +33,7 @@ bool autocvar_sv_dodging_sound;
 .float dodging_single_action;
 
 #include "../../../animdecide.qh"
-#include "../../../physics.qh"
+#include "../../../physics/player.qh"
 
 .float cvar_cl_dodging_timeout = _STAT(DODGING_TIMEOUT);
 
index a7aaa780f9df472200d6de1360e6a1367b484403..a72644d9c7731aac591b09282a211fd8ab1c1ead 100644 (file)
@@ -2,7 +2,7 @@
 #ifdef SVQC
        #include "../../../../server/antilag.qh"
 #endif
-#include "../../../physics.qh"
+#include "../../../physics/player.qh"
 
 #ifdef SVQC
 REGISTER_MUTATOR(doublejump, autocvar_sv_doublejump);
index 7a8b2921880046ee077639b023b69f75bee50322..eb5e64a40729138eb30811d9d85bebab6a800b39 100644 (file)
@@ -2,7 +2,7 @@
 #ifdef SVQC
        #include "../../../../server/antilag.qh"
 #endif
-#include "../../../physics.qh"
+#include "../../../physics/player.qh"
 
 
 #if defined(SVQC)
index cea8df71e30cd71a3cb6a9249296a183fb6d4820..1825120617bc5b58010267a6a2a20a75f361c5af 100644 (file)
@@ -1,3 +1,3 @@
 #include "player.qc"
 #include "movelib.qc"
-#include "movetypes/include.qc"
+#include "movetypes/all.inc"
index acacba093a80dc2547da6206b6735dae9fa9ddab..38afbe2d9084712371fbb56f46c7e4ef39bdaf87 100644 (file)
@@ -163,7 +163,7 @@ void movelib_update(vector dir,float force)
 }
 */
 
-void movelib_beak_simple(float force)
+void movelib_brake_simple(float force)
 {SELFPARAM();
     float mspeed;
     vector mdir;
index 8a4bfd48830f1cddf3b2ecfd85b267e622c6699d..c1fd574ca036ea0c6629d0eb5c07c42535392a6d 100644 (file)
@@ -40,7 +40,7 @@ void movelib_move_simple(vector newdir,float velo,float blendrate)
 #define movelib_move_simple_gravity(newdir,velo,blendrate) \
     if(self.flags & FL_ONGROUND) movelib_move_simple(newdir,velo,blendrate)
 
-void movelib_beak_simple(float force);
+void movelib_brake_simple(float force);
 
 /**
 Pitches and rolls the entity to match the gound.
diff --git a/qcsrc/common/physics/movetypes/all.inc b/qcsrc/common/physics/movetypes/all.inc
new file mode 100644 (file)
index 0000000..322b3c4
--- /dev/null
@@ -0,0 +1,7 @@
+#include "push.qc"
+#include "toss.qc"
+#include "walk.qc"
+#include "step.qc"
+#include "follow.qc"
+
+#include "movetypes.qc"
diff --git a/qcsrc/common/physics/movetypes/include.qc b/qcsrc/common/physics/movetypes/include.qc
deleted file mode 100644 (file)
index 322b3c4..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-#include "push.qc"
-#include "toss.qc"
-#include "walk.qc"
-#include "step.qc"
-#include "follow.qc"
-
-#include "movetypes.qc"
diff --git a/qcsrc/common/physics/movetypes/include.qh b/qcsrc/common/physics/movetypes/include.qh
deleted file mode 100644 (file)
index a96e595..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-#ifndef MOVETYPES_INCLUDE_H
-#define MOVETYPES_INCLUDE_H
-
-#include "push.qh"
-#include "toss.qh"
-#include "walk.qh"
-
-#endif
index fc9396b30b63fb25292fd20c06760ffd262c5bbb..fa169e9f82115565045c107218052da5b4f50cfd 100644 (file)
@@ -1,16 +1,15 @@
-#include "include.qh"
-#include "../physics.qh"
+#include "../player.qh"
 
 #if defined(CSQC)
-       #include "../../client/defs.qh"
-       #include "../stats.qh"
-       #include "../util.qh"
+       #include "../../../client/defs.qh"
+       #include "../../stats.qh"
+       #include "../../util.qh"
        #include "movetypes.qh"
-       #include "../../lib/csqcmodel/common.qh"
-       #include "../../server/t_items.qh"
+       #include "../../../lib/csqcmodel/common.qh"
+       #include "../../../server/t_items.qh"
 #elif defined(MENUQC)
 #elif defined(SVQC)
-       #include "../../server/autocvars.qh"
+       #include "../../../server/autocvars.qh"
 #endif
 
 void _Movetype_WallFriction(entity this, vector stepnormal)  // SV_WallFriction
index b832465464ffd7496c273dd3b70214d84d7c8295..3b3c648f1e9145c3029bf5608f85a5e90cb02832 100644 (file)
@@ -1,3 +1,5 @@
+#include "push.qh"
+
 void _Movetype_PushMove(entity this, float dt)  // SV_PushMove
 {
        if (this.move_velocity == '0 0 0' && this.move_avelocity == '0 0 0')
index 43b5a8a1a8e41d5dfe019fff8a686a0f32fff7ae..44f8a98135b743eaae0578acda4ef0f2f1b05870 100644 (file)
@@ -1,4 +1,5 @@
-#include "../physics.qh"
+#include "toss.qh"
+#include "../player.qh"
 
 void _Movetype_Physics_Toss(entity this, float dt)  // SV_Physics_Toss
 {
index e926246266c6761215058a7f293adc421e18562a..579a1cbafe471103b07a5cd5ddabc02871e8a77b 100644 (file)
@@ -1,3 +1,5 @@
+#include "walk.qh"
+
 void _Movetype_Physics_Walk(entity this, float dt)  // SV_WalkMove
 {
        vector stepnormal = '0 0 0';
index 32c2fbfa84ad95d51e4c29637612a0536b755e45..68cae73957cfd3d0cda08dae451aff20da287df6 100644 (file)
@@ -1,11 +1,11 @@
-#include "physics.qh"
-#include "triggers/include.qh"
-#include "viewloc.qh"
+#include "player.qh"
+#include "../triggers/include.qh"
+#include "../viewloc.qh"
 
 #ifdef SVQC
 
-#include "../server/miscfunctions.qh"
-#include "triggers/trigger/viewloc.qh"
+#include "../../server/miscfunctions.qh"
+#include "../triggers/trigger/viewloc.qh"
 
 // client side physics
 bool Physics_Valid(string thecvar)
index fc82c13208e7b053baf27b1c661af64b57ae2101..4409e70ced1381c4709dae3ac49a024dec3cec65 100644 (file)
@@ -247,7 +247,7 @@ REGISTER_STAT(TELEPORT_TELEFRAG_AVOID, int, autocvar_g_telefrags_avoid)
 REGISTER_STAT(SPECTATORSPEED, float)
 
 #ifdef SVQC
-#include "movetypes/movetypes.qh"
+#include "physics/movetypes/movetypes.qh"
 #endif
 
 REGISTER_STAT(MOVEVARS_AIRACCEL_QW_STRETCHFACTOR, float)
index 1f2f84a7d8602c64a4386b0e41d54a95e0103569..d0b8f9459766d583f11b3bb32a848e02e943537e 100644 (file)
@@ -1,7 +1,7 @@
 // TODO: split target_push and put it in the target folder
 #ifdef SVQC
 #include "jumppads.qh"
-#include "../../movetypes/movetypes.qh"
+#include "../../physics/movetypes/movetypes.qh"
 
 void trigger_push_use()
 {SELFPARAM();
index 1d4647341dce61e0345f5be99240f5f6a167e5fb..1757dea617e4e92046d1c599a7adddae54faa95a 100644 (file)
@@ -116,7 +116,7 @@ void ewheel_move_enemy()
     else
     {
         newframe = ewheel_anim_stop;
-        movelib_beak_simple((autocvar_g_turrets_unit_ewheel_speed_stop));
+        movelib_brake_simple((autocvar_g_turrets_unit_ewheel_speed_stop));
     }
 
     turrets_setframe(newframe, false);
@@ -132,7 +132,7 @@ void ewheel_move_idle()
 
     self.frame = 0;
     if (vlen(self.velocity))
-        movelib_beak_simple((autocvar_g_turrets_unit_ewheel_speed_stop));
+        movelib_brake_simple((autocvar_g_turrets_unit_ewheel_speed_stop));
 }
 
 spawnfunc(turret_ewheel) { if(!turret_initialize(TUR_EWHEEL)) remove(self); }
index 97167eb3660e70eeb14973811793fe58a5403cb9..a7ec5d76dd8724621f728f7a008ec66e7ed3e2d6 100644 (file)
@@ -470,12 +470,12 @@ spawnfunc(turret_walker) { if(!turret_initialize(TUR_WALKER)) remove(self); }
                 switch (self.animflag)
                 {
                     case ANIM_NO:
-                        movelib_beak_simple((autocvar_g_turrets_unit_walker_speed_stop));
+                        movelib_brake_simple((autocvar_g_turrets_unit_walker_speed_stop));
                         break;
 
                     case ANIM_TURN:
                         turny = (autocvar_g_turrets_unit_walker_turn);
-                        movelib_beak_simple((autocvar_g_turrets_unit_walker_speed_stop));
+                        movelib_brake_simple((autocvar_g_turrets_unit_walker_speed_stop));
                         break;
 
                     case ANIM_WALK:
@@ -518,7 +518,7 @@ spawnfunc(turret_walker) { if(!turret_initialize(TUR_WALKER)) remove(self); }
                             defer(self, 0.21, walker_melee_do_dmg);
                         }
 
-                        movelib_beak_simple((autocvar_g_turrets_unit_walker_speed_stop));
+                        movelib_brake_simple((autocvar_g_turrets_unit_walker_speed_stop));
                         break;
 
                     case ANIM_SWIM:
@@ -630,7 +630,7 @@ spawnfunc(turret_walker) { if(!turret_initialize(TUR_WALKER)) remove(self); }
 #endif // SVQC
 #ifdef CSQC
 
-#include "../../../client/movelib.qh"
+#include "../../physics/movelib.qh"
 
 void walker_draw(entity this)
 {
index d817c2e1a23d93702497d54b2db43789f1a8d555..b13c8b3ac4cffac92e5216b08f50285135050953 100644 (file)
@@ -189,7 +189,7 @@ float spiderbot_frame()
                                                //dprint("spiderbot_idle:", ftos(soundlength("vehicles/spiderbot_idle.wav")), "\n");
                                                sound (self, CH_TRIGGER_SINGLE, SND_VEH_SPIDERBOT_IDLE, VOL_VEHICLEENGINE, ATTEN_NORM);
                                        }
-                                       movelib_beak_simple(autocvar_g_vehicle_spiderbot_speed_stop);
+                                       movelib_brake_simple(autocvar_g_vehicle_spiderbot_speed_stop);
                                        spider.frame = 5;
                                }
                        }
@@ -570,7 +570,7 @@ spawnfunc(vehicle_spiderbot)
                METHOD(Spiderbot, vr_think, void(Spiderbot thisveh))
                {
                        if(self.flags & FL_ONGROUND)
-                               movelib_beak_simple(autocvar_g_vehicle_spiderbot_speed_stop);
+                               movelib_brake_simple(autocvar_g_vehicle_spiderbot_speed_stop);
                }
                METHOD(Spiderbot, vr_death, void(Spiderbot thisveh))
                {
index 862697eb8e5ef5455de4628f673c3ad7224c4721..7db276f66bebb8de08405a2d289c80b79eb4200e 100644 (file)
@@ -14,7 +14,7 @@
        #include "../../client/autocvars.qh"
        #include "../deathtypes/all.qh"
        #include "../../lib/csqcmodel/interpolate.qh"
-       #include "../movetypes/movetypes.qh"
+       #include "../physics/movetypes/movetypes.qh"
        #include "../../client/main.qh"
        #include "../../lib/csqcmodel/cl_model.qh"
 #elif defined(MENUQC)
index 10f475fb302cd33770fefef7166ed428741c8a6d..7bceb538388d109b669f3cc0bdc9f8321501593e 100644 (file)
@@ -28,7 +28,7 @@
 #include "../../client/defs.qh"
 #include "../../client/main.qh"
 #include "../../common/constants.qh"
-#include "../../common/physics.qh"
+#include "../../common/physics/player.qh"
 #include "../../common/stats.qh"
 #include "../../common/triggers/trigger/viewloc.qh"
 #include "../../common/util.qh"
index d3d14a5cfb5118b180e52eeaf1e7a148897cf779..967bc684b3d17aeaf577ebedbb047bfd1d34df3c 100644 (file)
@@ -33,7 +33,7 @@
 #include "weapons/weaponsystem.qh"
 
 #include "../common/net_notice.qh"
-#include "../common/physics.qh"
+#include "../common/physics/player.qh"
 
 #include "../common/items/all.qc"
 
index 319c204887e6fd64be83517c724c5cf93ec3073f..a743a618cce28d563a9dc8050ee50c847a4d6f17 100644 (file)
@@ -22,7 +22,7 @@
 #include "../../common/deathtypes/all.qh"
 #include "../../common/mapinfo.qh"
 #include "../../common/notifications.qh"
-#include "../../common/physics.qh"
+#include "../../common/physics/player.qh"
 #include "../../common/teams.qh"
 #include "../../common/util.qh"
 #include "../../common/triggers/triggers.qh"
index e5ee28cc856e266d6670573ac1f7af7e622c60cf..2e949ec367f552dc149850d2ae3383b76dc6336b 100644 (file)
@@ -15,7 +15,7 @@
 #include "../common/constants.qh"
 #include "../common/deathtypes/all.qh"
 #include "../common/notifications.qh"
-#include "../common/movetypes/movetypes.qh"
+#include "../common/physics/movetypes/movetypes.qh"
 #include "../common/playerstats.qh"
 #include "../common/teams.qh"
 #include "../common/util.qh"
index 0fa0462d87eb4d3e7b93ecd4ea2d0102fe96bfca..b5362329a8ff0cdec2789777a9c590ba5b5cd04c 100644 (file)
@@ -25,7 +25,7 @@
 #include "../common/monsters/sv_monsters.qh"
 #include "../common/vehicles/all.qh"
 #include "../common/notifications.qh"
-#include "../common/physics.qh"
+#include "../common/physics/player.qh"
 #include "../common/playerstats.qh"
 #include "../common/stats.qh"
 #include "../common/teams.qh"