NSMonster/NSTalkMonster: update bone count on the client whenever the modelindex changed.

This commit is contained in:
Marco Cawthorne 2023-09-27 13:08:39 -07:00
parent 9d6133054c
commit 3d92491e54
Signed by: eukara
GPG Key ID: CE2032F0A2882A22
2 changed files with 6 additions and 0 deletions

View File

@ -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

View File

@ -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