item_armor: add soundDef for pickup sound

This commit is contained in:
Marco Cawthorne 2022-07-10 14:46:53 -07:00
parent 49f9eec643
commit ba883ac321
Signed by: eukara
GPG Key ID: CE2032F0A2882A22
2 changed files with 8 additions and 1 deletions

View File

@ -118,6 +118,8 @@ item_armor::Touch(entity eToucher)
} }
} }
Sound_Play(this, CHAN_ITEM, "item_armor_tfc.pickup");
/* hide and respawn */ /* hide and respawn */
Hide(); Hide();
think = Respawn; think = Respawn;
@ -151,7 +153,8 @@ item_armor::Respawn(void)
void void
item_armor::item_armor(void) item_armor::item_armor(void)
{ {
Sound_Precache("item_armor_tfc.pickup");
precache_model("models/g_armor.mdl");
} }
void void

View File

@ -0,0 +1,4 @@
item_armor_tfc.pickup
{
sample items/armoron_1.wav
}