Client: Include ammo notify routines.

Add mirror shader for endlessrain.
This commit is contained in:
Marco Cawthorne 2021-12-16 17:24:32 -08:00
parent bdbdcc6c68
commit b1d47ca4f3
Signed by: eukara
GPG key ID: C196CD8BA993248A
3 changed files with 15 additions and 1 deletions

View file

@ -31,6 +31,7 @@
../../../valve/src/client/viewmodel.qc ../../../valve/src/client/viewmodel.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.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

View file

@ -107,6 +107,7 @@ class player:base_player
#ifdef CLIENT #ifdef CLIENT
void Weapons_AmmoUpdate(entity); void Weapons_AmmoUpdate(entity);
void HUD_AmmoNotify_Check(player);
/* /*
================= =================
player::ReceiveEntity player::ReceiveEntity
@ -165,8 +166,10 @@ player::ReceiveEntity(float new, float fl)
ammo_hammer_state = readbyte(); 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); Weapons_AmmoUpdate(this);
HUD_AmmoNotify_Check(this);
}
setorigin(this, origin); setorigin(this, origin);
} }

View file

@ -0,0 +1,10 @@
streetglass
{
portal
{
map glass_dark
blendFunc add
tcMod scale -4.5 1.0
depthWrite
}
}