mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2024-12-27 07:05:38 +03:00
SV_StudioSetupBones fix for non-players
This commit is contained in:
parent
25f425801a
commit
e3503670d1
@ -1215,7 +1215,11 @@ void SV_StudioSetupBones(model_t *pModel, float frame, int sequence, const vec_t
|
||||
|
||||
VectorCopy(angles, temp_angles);
|
||||
|
||||
if (pEdict != NULL)
|
||||
#ifdef REGAMEDLL_FIXES
|
||||
if(pEdict != NULL && CBaseEntity::Instance((edict_t*)pEdict)->IsPlayer())
|
||||
#else
|
||||
if(pEdict != NULL)
|
||||
#endif
|
||||
{
|
||||
temp_angles[1] = UTIL_GetPlayerGaitYaw(ENTINDEX(pEdict));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user