Client: Enable the damage/item notifications from Half-Life.
This commit is contained in:
parent
f6290ab4a3
commit
1bf5dc9924
2 changed files with 21 additions and 3 deletions
|
@ -33,6 +33,8 @@ init.qc
|
||||||
../../../valve/src/client/view.qc
|
../../../valve/src/client/view.qc
|
||||||
../../../valve/src/client/obituary.qc
|
../../../valve/src/client/obituary.qc
|
||||||
../../../valve/src/client/hud_ammonotify.qc
|
../../../valve/src/client/hud_ammonotify.qc
|
||||||
|
../../../valve/src/client/hud_dmgnotify.qc
|
||||||
|
../../../valve/src/client/hud_itemnotify.qc
|
||||||
../../../valve/src/client/hud.qc
|
../../../valve/src/client/hud.qc
|
||||||
../../../valve/src/client/hud_weaponselect.qc
|
../../../valve/src/client/hud_weaponselect.qc
|
||||||
../../../valve/src/client/scoreboard.qc
|
../../../valve/src/client/scoreboard.qc
|
||||||
|
|
|
@ -113,6 +113,8 @@ class player:base_player
|
||||||
|
|
||||||
#ifdef CLIENT
|
#ifdef CLIENT
|
||||||
void Weapons_AmmoUpdate(entity);
|
void Weapons_AmmoUpdate(entity);
|
||||||
|
void HUD_AmmoNotify_Check(player pl);
|
||||||
|
void HUD_ItemNotify_Check(player pl);
|
||||||
/*
|
/*
|
||||||
=================
|
=================
|
||||||
player::ReceiveEntity
|
player::ReceiveEntity
|
||||||
|
@ -179,10 +181,24 @@ player::ReceiveEntity(float new, float fl)
|
||||||
mode_silencer = readbyte();
|
mode_silencer = readbyte();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fl & PLAYER_AMMO1 || fl & PLAYER_AMMO2 || fl & PLAYER_AMMO3)
|
|
||||||
Weapons_AmmoUpdate(this);
|
|
||||||
|
|
||||||
setorigin(this, origin);
|
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);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (fl & PLAYER_ITEMS || fl & PLAYER_HEALTH || fl & PLAYER_ARMOR)
|
||||||
|
HUD_ItemNotify_Check(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue