Client: make sure customphysics is set 'Empty' on monsters, clients

This commit is contained in:
Marco Cawthorne 2022-03-03 23:31:59 -08:00
parent 9765f4662b
commit d8a8f07432
Signed by: eukara
GPG key ID: C196CD8BA993248A
3 changed files with 6 additions and 2 deletions

View file

@ -34,9 +34,11 @@ Entity_EntityUpdate(float type, float new)
break;
case ENT_MONSTER:
NSMonster_ReadEntity(new);
self.customphysics = Empty;
break;
case ENT_TALKMONSTER:
NSTalkMonster_ReadEntity(new);
self.customphysics = Empty;
break;
case ENT_VEHICLE:
basevehicle_readentity(new);
@ -52,6 +54,7 @@ Entity_EntityUpdate(float type, float new)
/* splitscreen */
CSQC_UpdateSeat();
self.customphysics = Empty;
Predict_EntityUpdate(pl, new);

View file

@ -53,9 +53,9 @@ Print_DrawCenterprint(void)
pSeat->m_flCenterprintAlpha = 0;
}
}
vecPos[1] = g_hudmins[1] + (g_hudres[1] / 2) - (pSeat->m_iCenterprintLines - 4) - 69;
for (int i = 0; i < (pSeat->m_iCenterprintLines); i++) {
vecPos[0] = g_hudmins[0] + (g_hudres[0] / 2) - (stringwidth(pSeat->m_strCenterprintBuffer[i], TRUE, '12 12') / 2);
Font_DrawText_A(vecPos, pSeat->m_strCenterprintBuffer[i], pSeat->m_flCenterprintAlpha, FONT_CON);

View file

@ -7,6 +7,7 @@ base_client:NSSurfacePropEntity
virtual void(void) ClientInputFrame;
#ifdef CLIENT
virtual void(void) UpdateDeathcam;
virtual float(void) predraw;