Client: Enable the damage/item notifications from Half-Life.

This commit is contained in:
Marco Cawthorne 2021-12-17 18:23:40 -08:00
parent ef3498d83c
commit 63e545bb61
Signed by: eukara
GPG Key ID: C196CD8BA993248A
2 changed files with 16 additions and 1 deletions

View File

@ -31,6 +31,8 @@ entities.qc
../../../valve/src/client/viewmodel.qc
../../../valve/src/client/view.qc
../../../valve/src/client/obituary.qc
../../../valve/src/client/hud_dmgnotify.qc
../../../valve/src/client/hud_itemnotify.qc
hud_ammonotify.qc
../../../valve/src/client/hud.qc
../../../valve/src/client/hud_weaponselect.qc

View File

@ -87,6 +87,7 @@ player:base_player
#ifdef CLIENT
void Weapons_AmmoUpdate(entity);
void HUD_AmmoNotify_Check(player pl);
void HUD_ItemNotify_Check(player pl);
/*
=================
player::ReceiveEntity
@ -128,12 +129,24 @@ player::ReceiveEntity(float new, float fl)
if (fl & PLAYER_AMMO3) {
}
setorigin(this, origin);
/* these only concern the current player */
CSQC_UpdateSeat();
if (this != pSeat->m_ePlayer)
return;
/* do not notify us of updates when spawning initially */
if (fl == UPDATE_ALL)
PredictPreFrame();
if (fl & PLAYER_AMMO1 || fl & PLAYER_AMMO2 || fl & PLAYER_AMMO3) {
Weapons_AmmoUpdate(this);
HUD_AmmoNotify_Check(this);
}
setorigin(this, origin);
if (fl & PLAYER_ITEMS || fl & PLAYER_HEALTH || fl & PLAYER_ARMOR)
HUD_ItemNotify_Check(this);
}
/*