Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
hardcore_gamer

No sound is played when custom weapon is picked up or fired

Recommended Posts

I followed the instructions on the zdoom wiki on custom weapons yet the "Inventory.PickupSound" and "AttackSound" properties don't seem to work even when directly copied from the page. I experimented with new sounds but to no avail :/

 

My code looks like this:


 

Spoiler

 

Actor GSUBlaster : weapon 17000

{
Weapon.SelectionOrder 350
Inventory.PickupSound "misc/usgpickup"
Weapon.AmmoType BasicAmmo
Weapon.AmmoGive 50
Weapon.AmmoUse 1
Weapon.SlotNumber 3
AttackSound "weapons/ubersgf"
States
{
Spawn:
PLHO A -1
Stop
Ready:
PLHO A 1 A_WeaponReady
loop
Select:
PLHO A 1 A_Raise
loop
Deselect:
PLHO A 1 A_Lower
loop
Fire:
PLHO A 1 A_FireBullets (13.4, 9.2, 50, 10, "BulletPuff")
PLHO A 1 A_GunFlash
PLHO A 1 A_CheckReload
Goto Ready
}

}

Actor BasicAmmo : ammo 18000

{
Inventory.PickupMessage "basic ammunition"
Inventory.Amount 25
Inventory.MaxAmount 200
Inventory.Icon "AAMOA0"
Ammo.BackpackAmount 15
Ammo.BackpackMaxAmount 400
States
{
Spawn:
BAMM A -1
Stop
}

}

 

 

The gun and ammo do work mind you, there is just merely no audio.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×