SERVER: Play ching.wav when purchasing Bowie Knife

This commit is contained in:
cypress 2023-11-20 12:46:00 -05:00 committed by GitHub
parent bee0e764fc
commit 493a29395f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -335,6 +335,7 @@ void () WallWeapon_TouchTrigger =
} else { } else {
W_HideCrosshair(other); W_HideCrosshair(other);
addmoney(other, -self.cost2, FALSE); addmoney(other, -self.cost2, FALSE);
sound(other, 0, "sounds/misc/ching.wav", 1, 1);
other.ach_tracker_coll++; other.ach_tracker_coll++;
if (self.enemy) if (self.enemy)
{ {
@ -446,4 +447,4 @@ void() buy_weapon =
ach_tracker_col2++; ach_tracker_col2++;
precache_sound("sounds/misc/ching.wav"); precache_sound("sounds/misc/ching.wav");
}; };