Client: make sure customphysics is set 'Empty' on monsters, clients
This commit is contained in:
parent
9765f4662b
commit
d8a8f07432
3 changed files with 6 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -7,6 +7,7 @@ base_client:NSSurfacePropEntity
|
|||
|
||||
virtual void(void) ClientInputFrame;
|
||||
|
||||
|
||||
#ifdef CLIENT
|
||||
virtual void(void) UpdateDeathcam;
|
||||
virtual float(void) predraw;
|
||||
|
|
Loading…
Reference in a new issue