From d8a8f074328ca6362530c170bd4e262e1509eb86 Mon Sep 17 00:00:00 2001 From: Marco Hladik Date: Thu, 3 Mar 2022 23:31:59 -0800 Subject: [PATCH] Client: make sure customphysics is set 'Empty' on monsters, clients --- src/client/entities.qc | 3 +++ src/client/prints.qc | 4 ++-- src/shared/client.h | 1 + 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/client/entities.qc b/src/client/entities.qc index 9efce01f..9e30bed8 100644 --- a/src/client/entities.qc +++ b/src/client/entities.qc @@ -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); diff --git a/src/client/prints.qc b/src/client/prints.qc index d1bb104e..1a97d4d4 100644 --- a/src/client/prints.qc +++ b/src/client/prints.qc @@ -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); diff --git a/src/shared/client.h b/src/shared/client.h index 031b8e5c..9cff2134 100644 --- a/src/shared/client.h +++ b/src/shared/client.h @@ -7,6 +7,7 @@ base_client:NSSurfacePropEntity virtual void(void) ClientInputFrame; + #ifdef CLIENT virtual void(void) UpdateDeathcam; virtual float(void) predraw;