Server: Add the missing player death sounds we all know and love.

This commit is contained in:
Marco Cawthorne 2022-07-09 16:53:51 -07:00
parent cacc015ae0
commit a40ae10035
Signed by: eukara
GPG Key ID: CE2032F0A2882A22
3 changed files with 12 additions and 1 deletions

View File

@ -64,6 +64,9 @@ TFCGameRules::PlayerDeath(NSClientPlayer pp)
pl.SetMovetype(MOVETYPE_NONE);
pl.think = PlayerRespawn;
pl.nextthink = time + 4.0f;
/* play the iconic death sound */
Sound_Play(pl, CHAN_VOICE, "player_tfc.death");
}
void

View File

@ -25,9 +25,9 @@ Game_Worldspawn(void)
{
Sound_Precache("ammo.pickup");
Sound_Precache("ammo.respawn");
Sound_Precache("player.die");
Sound_Precache("player.fall");
Sound_Precache("player.lightfall");
Sound_Precache("player_tfc.death");
precache_model("models/player.mdl");
precache_model("models/w_weaponbox.mdl");
Weapons_Init();

View File

@ -0,0 +1,8 @@
player_tfc.death
{
sample player/death1.wav
sample player/death2.wav
sample player/death3.wav
sample player/death4.wav
sample player/death5.wav
}