item_armor: add soundDef for pickup sound
This commit is contained in:
parent
49f9eec643
commit
ba883ac321
2 changed files with 8 additions and 1 deletions
|
@ -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
|
||||||
|
|
4
zpak001.pk3dir/sound/items_tfc.sndshd
Normal file
4
zpak001.pk3dir/sound/items_tfc.sndshd
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
item_armor_tfc.pickup
|
||||||
|
{
|
||||||
|
sample items/armoron_1.wav
|
||||||
|
}
|
Loading…
Reference in a new issue