View unanswered posts | View active topics It is currently Thu Mar 28, 2024 8:32 pm



Reply to topic  [ 3 posts ] 
 Grenade Pin-Pull and Throw sounds 
Author Message

Joined: Thu Feb 16, 2012 4:05 am
Posts: 37
Reply with quote
Post 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.


Thu Feb 06, 2014 2:28 am
Profile

Joined: Fri Nov 23, 2012 5:42 am
Posts: 143
Reply with quote
Post 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).


Thu Feb 06, 2014 3:11 am
Profile

Joined: Thu Feb 16, 2012 4:05 am
Posts: 37
Reply with quote
Post Re: Grenade Pin-Pull and Throw sounds
Worked perfectly, thank you very much!


Fri Feb 07, 2014 1:33 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.062s | 15 Queries | GZIP : Off ]