How to simulate a weapon sound?

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Post Reply
User avatar
shino1
Posts: 61
Joined: Mon Dec 17, 2018 1:18 am

How to simulate a weapon sound?

Post by shino1 »

I am reworking an existing mapset (Batman Doom) and I want to make player's starting weapon (Batarangs) silent. The problem is, that breaks all teleport ambushes. Is there any way to use scripting to simulate a weapon sound for purpose of the teleporting enemies? Like, manually alert enemies with certain id or something?
yum13241
Posts: 875
Joined: Mon May 10, 2021 8:08 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): EndeavorOS (basically Arch)
Graphics Processor: Intel with Vulkan/Metal Support
Contact:

Re: How to simulate a weapon sound?

Post by yum13241 »

Are you trying to alert enemies with ACS, or make the Batarangs have the weird behavior of the fist? (punch at MAP01, the Zombies hear that)
User avatar
Dan_The_Noob
Posts: 880
Joined: Tue May 07, 2019 12:24 pm
Graphics Processor: nVidia with Vulkan support
Contact:

Re: How to simulate a weapon sound?

Post by Dan_The_Noob »

setup line triggers? if youre reworking anyway
Jarewill
 
 
Posts: 1853
Joined: Sun Jul 21, 2019 8:54 am

Re: How to simulate a weapon sound?

Post by Jarewill »

I assume you are looking for something like NoiseAlert.
User avatar
shino1
Posts: 61
Joined: Mon Dec 17, 2018 1:18 am

Re: How to simulate a weapon sound?

Post by shino1 »

Jarewill wrote: Fri Jan 13, 2023 6:44 am I assume you are looking for something like NoiseAlert.
Thank you, that's exactly what I needed!
Post Reply

Return to “Scripting”