From 6755a4d3f61e691339176c657a47d62b1e900650 Mon Sep 17 00:00:00 2001 From: Blixibon Date: Mon, 15 Nov 2021 14:40:51 -0600 Subject: [PATCH] Added walking to singleplayer anim state --- sp/src/game/shared/mapbase/singleplayer_animstate.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/sp/src/game/shared/mapbase/singleplayer_animstate.cpp b/sp/src/game/shared/mapbase/singleplayer_animstate.cpp index 8f184c7a..e3b84b4d 100644 --- a/sp/src/game/shared/mapbase/singleplayer_animstate.cpp +++ b/sp/src/game/shared/mapbase/singleplayer_animstate.cpp @@ -22,6 +22,7 @@ #include "apparent_velocity_helper.h" #include "utldict.h" #include "filesystem.h" +#include "in_buttons.h" #include "..\public\datacache\imdlcache.h" extern ConVar mp_facefronttime, mp_feetyawrate, mp_ik; @@ -109,13 +110,13 @@ Activity CSinglePlayerAnimState::CalcMainActivity() { if ( speed > 0 ) { - /* - if ( bRunning == false ) +#ifdef EXPANDED_HL2DM_ACTIVITIES + if ( m_pPlayer->GetButtons() & IN_WALK ) { - idealActivity = ACT_WALK; + idealActivity = ACT_HL2MP_WALK; } else - */ +#endif { idealActivity = ACT_HL2MP_RUN; }