X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fclient%2Fcsqcmodel_hooks.qc;h=92cef15efff3316b3f936aa2dca50a95f359e575;hb=62a1af1028fbfb63bec6ba1f01f5e9bdb36b8a59;hp=dde4461821ee9feef7e501d25961931082a79028;hpb=bb80a6aba067167c6ef8d5f3465f03bd34142fa2;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/client/csqcmodel_hooks.qc b/qcsrc/client/csqcmodel_hooks.qc index dde446182..92cef15ef 100644 --- a/qcsrc/client/csqcmodel_hooks.qc +++ b/qcsrc/client/csqcmodel_hooks.qc @@ -1,26 +1,24 @@ -#if defined(CSQC) - #include "gibs.qh" - #include "miscfunctions.qh" - #include "player_skeleton.qh" - #include "sortlist.qh" +#include "csqcmodel_hooks.qh" +#include "_all.qh" - #include "../client/weapons/projectile.qh" +#include "gibs.qh" +#include "player_skeleton.qh" +#include "sortlist.qh" - #include "../common/animdecide.qh" - #include "../common/csqcmodel_settings.qh" +#include "weapons/projectile.qh" - #include "../csqcmodellib/cl_model.qh" - #include "../csqcmodellib/cl_player.qh" - #include "../csqcmodellib/interpolate.qh" +#include "../common/animdecide.qh" +#include "../common/csqcmodel_settings.qh" +#include "../common/teams.qh" - #include "../warpzonelib/mathlib.qh" +#include "../csqcmodellib/cl_model.qh" +#include "../csqcmodellib/cl_player.qh" +#include "../csqcmodellib/interpolate.qh" - .float death_time; - .int modelflags; -#elif defined(MENUQC) -#elif defined(SVQC) -#endif +#include "../warpzonelib/mathlib.qh" +.float death_time; +.int modelflags; void CSQCModel_Hook_PreDraw(bool isplayer); @@ -657,10 +655,10 @@ void CSQCModel_Hook_PreDraw(bool isplayer) bool onground = 0; if(self == csqcplayer) { - if(self.pmove_flags & PMF_ONGROUND) + if(self.flags & FL_ONGROUND) onground = 1; - self.anim_prev_pmove_flags = self.pmove_flags; - if(self.pmove_flags & PMF_DUCKED) + self.anim_prev_pmove_flags = self.flags; + if(self.flags & FL_DUCKED) animdecide_setstate(self, self.anim_state | ANIMSTATE_DUCK, false); else if(self.anim_state & ANIMSTATE_DUCK) animdecide_setstate(self, self.anim_state - ANIMSTATE_DUCK, false);