NSMonster/NSTalkMonster: update bone count on the client whenever the modelindex changed.
This commit is contained in:
parent
9d6133054c
commit
3d92491e54
2 changed files with 6 additions and 0 deletions
|
@ -2087,8 +2087,11 @@ NSMonster::ReceiveEntity(float flNew, float flChanged)
|
|||
|
||||
if (flChanged & MONFL_CHANGED_SIZE)
|
||||
setsize(this, mins * scale, maxs * scale);
|
||||
|
||||
if (flChanged & MONFL_CHANGED_BODY)
|
||||
_UpdateGeomset();
|
||||
if (flChanged & MONFL_CHANGED_MODELINDEX)
|
||||
_UpdateBoneCount();
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -1025,8 +1025,11 @@ NSTalkMonster::ReceiveEntity(float flNew, float flChanged)
|
|||
frame1time = 0.0f;
|
||||
if (flChanged & MONFL_CHANGED_SIZE)
|
||||
setsize(this, mins * scale, maxs * scale);
|
||||
|
||||
if (flChanged & MONFL_CHANGED_BODY)
|
||||
_UpdateGeomset();
|
||||
if (flChanged & MONFL_CHANGED_MODELINDEX)
|
||||
_UpdateBoneCount();
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Reference in a new issue