#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"
-#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"
#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"
#include "../mutators/events.qh"
#include "../../common/constants.qh"
-#include "../../common/movetypes/movetypes.qh"
+#include "../../common/physics/movetypes/movetypes.qh"
#include "../../lib/csqcmodel/interpolate.qh"
#include "../../util.qh"
#ifdef CSQC
-#include "../../movetypes/movetypes.qh"
+#include "../../physics/movetypes/movetypes.qh"
#include "rubble.qh"
#endif
#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"
.bool silent;
#include "rubble.qh"
-#include "../common/movetypes/movetypes.qh"
+#include "../common/physics/movetypes/movetypes.qh"
.float scale;
.float alpha;
#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"
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;
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;
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;
}
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)
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;
}
#ifdef SVQC
#include "../../../../server/antilag.qh"
#endif
-#include "../../../physics.qh"
+#include "../../../physics/player.qh"
#if defined(SVQC)
.float dodging_single_action;
#include "../../../animdecide.qh"
-#include "../../../physics.qh"
+#include "../../../physics/player.qh"
.float cvar_cl_dodging_timeout = _STAT(DODGING_TIMEOUT);
#ifdef SVQC
#include "../../../../server/antilag.qh"
#endif
-#include "../../../physics.qh"
+#include "../../../physics/player.qh"
#ifdef SVQC
REGISTER_MUTATOR(doublejump, autocvar_sv_doublejump);
#ifdef SVQC
#include "../../../../server/antilag.qh"
#endif
-#include "../../../physics.qh"
+#include "../../../physics/player.qh"
#if defined(SVQC)
#include "player.qc"
#include "movelib.qc"
-#include "movetypes/include.qc"
+#include "movetypes/all.inc"
}
*/
-void movelib_beak_simple(float force)
+void movelib_brake_simple(float force)
{SELFPARAM();
float mspeed;
vector mdir;
#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.
--- /dev/null
+#include "push.qc"
+#include "toss.qc"
+#include "walk.qc"
+#include "step.qc"
+#include "follow.qc"
+
+#include "movetypes.qc"
+++ /dev/null
-#include "push.qc"
-#include "toss.qc"
-#include "walk.qc"
-#include "step.qc"
-#include "follow.qc"
-
-#include "movetypes.qc"
+++ /dev/null
-#ifndef MOVETYPES_INCLUDE_H
-#define MOVETYPES_INCLUDE_H
-
-#include "push.qh"
-#include "toss.qh"
-#include "walk.qh"
-
-#endif
-#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
+#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')
-#include "../physics.qh"
+#include "toss.qh"
+#include "../player.qh"
void _Movetype_Physics_Toss(entity this, float dt) // SV_Physics_Toss
{
+#include "walk.qh"
+
void _Movetype_Physics_Walk(entity this, float dt) // SV_WalkMove
{
vector stepnormal = '0 0 0';
-#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)
REGISTER_STAT(SPECTATORSPEED, float)
#ifdef SVQC
-#include "movetypes/movetypes.qh"
+#include "physics/movetypes/movetypes.qh"
#endif
REGISTER_STAT(MOVEVARS_AIRACCEL_QW_STRETCHFACTOR, float)
// 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();
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);
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); }
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:
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:
#endif // SVQC
#ifdef CSQC
-#include "../../../client/movelib.qh"
+#include "../../physics/movelib.qh"
void walker_draw(entity this)
{
//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;
}
}
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))
{
#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)
#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"
#include "weapons/weaponsystem.qh"
#include "../common/net_notice.qh"
-#include "../common/physics.qh"
+#include "../common/physics/player.qh"
#include "../common/items/all.qc"
#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"
#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"
#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"