diff --git a/src/client/progs.src b/src/client/progs.src index 260f10c..b541fef 100644 --- a/src/client/progs.src +++ b/src/client/progs.src @@ -31,6 +31,7 @@ ../../../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 ../../../valve/src/client/hud_weaponselect.qc ../../../valve/src/client/scoreboard.qc diff --git a/src/shared/player.qc b/src/shared/player.qc index b2b5cf5..8660db0 100644 --- a/src/shared/player.qc +++ b/src/shared/player.qc @@ -107,6 +107,7 @@ class player:base_player #ifdef CLIENT void Weapons_AmmoUpdate(entity); +void HUD_AmmoNotify_Check(player); /* ================= player::ReceiveEntity @@ -165,8 +166,10 @@ player::ReceiveEntity(float new, float fl) ammo_hammer_state = 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); } diff --git a/zpak001.pk3dir/scripts/endlrain.shader b/zpak001.pk3dir/scripts/endlrain.shader new file mode 100644 index 0000000..7018c63 --- /dev/null +++ b/zpak001.pk3dir/scripts/endlrain.shader @@ -0,0 +1,10 @@ +streetglass +{ + portal + { + map glass_dark + blendFunc add + tcMod scale -4.5 1.0 + depthWrite + } +}