Game Development Community

Adding sound to a projectile's explosion

by Rex · in Torque Game Engine · 11/13/2003 (5:39 pm) · 3 replies

I've managed to script in the sound for the crossbow's animation sequences and notice a datablock for it's explosion sound. I'm wondering how to impliment it so it works as a richoet sound when it strikes something. Is this done within the crossbow.cs or is it done somewhere else entirely.

Thanks
Rex

About the author

Rex does all his 3D graphics through BrokeAssGames and is currently working on DSQTweaker, Ecstasy Motion, and other interesting projects yet to be revealed. Just ask him about anything DTS/DSQ related, he's happy to help.


#1
11/13/2003 (11:19 pm)
Look in crossbow.cs for the AudioProfile datablocks.
#2
11/14/2003 (3:34 am)
Rex your not exactly clear in what you wish to do, do you wish to change the explosion sound to a richoet sound, or add a richoet state for the crossbow bolt. but either way, yes it is done in the crossbow.cs.
#3
11/14/2003 (8:00 am)
Ah, thanks, Zib, I thought I did mention observing the datablock, it's that I don't know how to impliment the data in reference. I notice, as is, that the crossbow bolt doesn't produce seemto produce a sound when striking anything, I'm trying to turn this on...I guess it's adding a sound state to the crossbow bolt? Yes. I will use whatever files I think appropriate and know where to edit the path or reference...a nice bonus would be how to random generate a different file to play with consecutive firings??

Thanks Zib...
Rex