Client: Include the ammo notification routines.
This commit is contained in:
parent
ebdc8e07c0
commit
a802c18a16
2 changed files with 5 additions and 1 deletions
|
@ -32,6 +32,7 @@ init.qc
|
|||
../../../valve/src/client/viewmodel.qc
|
||||
../../../valve/src/client/view.qc
|
||||
../../../valve/src/client/obituary.qc
|
||||
../../../valve/src/client/hud_ammonotify.qc
|
||||
../../../valve/src/client/hud.qc
|
||||
hud_weaponselect.qc
|
||||
../../../valve/src/client/scoreboard.qc
|
||||
|
|
|
@ -119,6 +119,7 @@ class player:base_player
|
|||
|
||||
#ifdef CLIENT
|
||||
void Weapons_AmmoUpdate(entity);
|
||||
void HUD_AmmoNotify_Check(player pl);
|
||||
/*
|
||||
=================
|
||||
player::ReceiveEntity
|
||||
|
@ -191,8 +192,10 @@ player::ReceiveEntity(float new, float fl)
|
|||
mode_m249 = readbyte();
|
||||
}
|
||||
|
||||
if (fl & PLAYER_AMMO1 || fl & PLAYER_AMMO2 || fl & PLAYER_AMMO3)
|
||||
if (fl & PLAYER_AMMO1 || fl & PLAYER_AMMO2 || fl & PLAYER_AMMO3) {
|
||||
Weapons_AmmoUpdate(this);
|
||||
HUD_AmmoNotify_Check(this);
|
||||
}
|
||||
|
||||
setorigin(this, origin);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue