mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-01-13 07:17:57 +03:00
Fix crash with player use animations
This commit is contained in:
parent
a7c90b042d
commit
9b3977e30d
@ -1393,7 +1393,8 @@ Activity CHL2_Player::Weapon_TranslateActivity( Activity baseAct, bool *pRequire
|
|||||||
|
|
||||||
#if EXPANDED_HL2DM_ACTIVITIES
|
#if EXPANDED_HL2DM_ACTIVITIES
|
||||||
// +USE activities
|
// +USE activities
|
||||||
if ( m_hUseEntity && player_use_anim_enabled.GetBool() )
|
// HACKHACK: Make sure m_hUseEntity is a pickup controller first
|
||||||
|
if ( m_hUseEntity && m_hUseEntity->ClassMatches("player_pickup") && player_use_anim_enabled.GetBool())
|
||||||
{
|
{
|
||||||
CBaseEntity* pHeldEnt = GetPlayerHeldEntity( this );
|
CBaseEntity* pHeldEnt = GetPlayerHeldEntity( this );
|
||||||
float flMass = pHeldEnt ?
|
float flMass = pHeldEnt ?
|
||||||
|
Loading…
x
Reference in New Issue
Block a user