mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2024-12-26 23:05:30 +03:00
Added walking to singleplayer anim state
This commit is contained in:
parent
0139390c3e
commit
6755a4d3f6
@ -22,6 +22,7 @@
|
|||||||
#include "apparent_velocity_helper.h"
|
#include "apparent_velocity_helper.h"
|
||||||
#include "utldict.h"
|
#include "utldict.h"
|
||||||
#include "filesystem.h"
|
#include "filesystem.h"
|
||||||
|
#include "in_buttons.h"
|
||||||
#include "..\public\datacache\imdlcache.h"
|
#include "..\public\datacache\imdlcache.h"
|
||||||
|
|
||||||
extern ConVar mp_facefronttime, mp_feetyawrate, mp_ik;
|
extern ConVar mp_facefronttime, mp_feetyawrate, mp_ik;
|
||||||
@ -109,13 +110,13 @@ Activity CSinglePlayerAnimState::CalcMainActivity()
|
|||||||
{
|
{
|
||||||
if ( speed > 0 )
|
if ( speed > 0 )
|
||||||
{
|
{
|
||||||
/*
|
#ifdef EXPANDED_HL2DM_ACTIVITIES
|
||||||
if ( bRunning == false )
|
if ( m_pPlayer->GetButtons() & IN_WALK )
|
||||||
{
|
{
|
||||||
idealActivity = ACT_WALK;
|
idealActivity = ACT_HL2MP_WALK;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
*/
|
#endif
|
||||||
{
|
{
|
||||||
idealActivity = ACT_HL2MP_RUN;
|
idealActivity = ACT_HL2MP_RUN;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user