Allow localplayer for AnimationEvents
This commit is contained in:
parent
d942381df3
commit
f58a59661c
1 changed files with 2 additions and 1 deletions
|
@ -9,6 +9,7 @@
|
||||||
#include "c_baseanimating.h"
|
#include "c_baseanimating.h"
|
||||||
#include "c_sprite.h"
|
#include "c_sprite.h"
|
||||||
#include "cdll_client_int.h"
|
#include "cdll_client_int.h"
|
||||||
|
#include "cdll_util.h"
|
||||||
#include "convar.h"
|
#include "convar.h"
|
||||||
#include "iconvar.h"
|
#include "iconvar.h"
|
||||||
#include "interpolatedvar.h"
|
#include "interpolatedvar.h"
|
||||||
|
@ -4930,7 +4931,7 @@ void C_BaseAnimating::Simulate()
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO_ENHANCED: check if there's other stuff like this! This can break lag compensation.
|
// TODO_ENHANCED: check if there's other stuff like this! This can break lag compensation.
|
||||||
if ( gpGlobals->frametime != 0.0f && m_bClientSideAnimation )
|
if ( gpGlobals->frametime != 0.0f && (m_bClientSideAnimation || C_BasePlayer::GetLocalPlayer() == this) )
|
||||||
{
|
{
|
||||||
DoAnimationEvents( GetModelPtr() );
|
DoAnimationEvents( GetModelPtr() );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue