Data Realms Fan Forums
http://45.55.195.193/

Grenade Pin-Pull and Throw sounds
http://45.55.195.193/viewtopic.php?f=1&t=45554
Page 1 of 1

Author:  Magmacow358 [ Thu Feb 06, 2014 2:28 am ]
Post subject:  Grenade Pin-Pull and Throw sounds

As the title implies, I'd like to add extra pin-pulling and throwing sounds to the vanilla grenades, but I don't know how to go about this.

I imagine you'd need to use lua or AEmitters, but I'm not sure. Any suggestions would be much appreciated.

Author:  clunatic [ Thu Feb 06, 2014 3:11 am ]
Post subject:  Re: Grenade Pin-Pull and Throw sounds

You need both!

First 2 AEmitters that look something like this (if you want to copy this code, make sure to replace the spaces before each line with tabs):



Then attach this lua code to the grenade (and make sure the grenade has GetsHitByMOs = 1, otherwise it won't work):

Parentfinding method was written by Bad Boy, I just corrected a couple of mistakes.


If done correctly that should make the pin pull sound play when you press down the left mouse button (or controller button) and then the throw sound plays when you release the left mouse button (or controller button).

Author:  Magmacow358 [ Fri Feb 07, 2014 1:33 am ]
Post subject:  Re: Grenade Pin-Pull and Throw sounds

Worked perfectly, thank you very much!

Page 1 of 1 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/