common/physics/player.qh didn't include client/csqcmodel_hooks.qh, common/resources/cl_resources.qh,
nor lib/csqcmodel/common.qh when CSQC is defined, but all were needed.
These includes were previously added to strafehud and physics hud just so it'd compile.
Relocated to proper place now
#include <common/physics/player.qh>
#include <common/physics/movetypes/movetypes.qh>
-// jump speed
-#include <lib/csqcmodel/common.qh> // for IS_PLAYER() macro
-#include <common/resources/cl_resources.qh> // IS_DEAD() macro
-
// Physics (#15)
void HUD_Physics_Export(int fh)
// start speed
#include <client/hud/panel/racetimer.qh> // checkpoint information (race_*)
-// jump height
-#include <lib/csqcmodel/common.qh> // for IS_PLAYER() macro
-#include <common/resources/cl_resources.qh> // IS_DEAD() macro
-
// StrafeHUD (#25)
void HUD_StrafeHUD_Export(int fh)
// Client/server mappings
+#ifdef CSQC
+ #include <client/csqcmodel_hooks.qh> // for .isplayermodel, .csqcmodel_isdead
+ #include <common/resources/cl_resources.qh> // for GetResource
+ #include <lib/csqcmodel/common.qh> // for ISPLAYER_CLIENT, ISPLAYER_PLAYER
+#endif
+
#ifdef SVQC
// TODO: get rid of this random dumb include!
#include <common/state.qh>
.float teleport_time;
#ifdef CSQC
-
#define PHYS_FIXANGLE(s) ('0 0 0')
string autocvar_cl_jumpspeedcap_min;