Raised This Month: $7 Target: $400
 1% 

Rocket sound


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Walgrim
AlliedModders Donor
Join Date: Dec 2015
Location: France
Old 09-01-2016 , 08:23   Rocket sound
Reply With Quote #1

Hey !
I want to know if it's possible to get the rocket sound and add a sound on it, like a sound following the rocket (and stop it when the rocket explode), is this even possible?
__________________
Walgrim is offline
KissLick
Veteran Member
Join Date: Nov 2012
Location: void
Old 09-01-2016 , 12:44   Re: Rocket sound
Reply With Quote #2

I would
  1. hook rocket entity creation (sdkhooks)
  2. emit the sound you desire
  3. add the entity index to global adt array
  4. hook rocket entity destruction (sdkhooks)
    1. check if the destroyed entity is in our global array
      1. stop emitting your sound
      2. remove the entity from global array


You can emit and stop sound with
  • sound emit function + stop sound function // I am not sure how well this works
  • create sound entity and then destroy it
__________________
Plugins: TeamGames
Includes: Menu stocks, ColorVariables, DownloadTableConfig

> No help through PM, make a topic.

Last edited by KissLick; 09-01-2016 at 12:44.
KissLick is offline
Walgrim
AlliedModders Donor
Join Date: Dec 2015
Location: France
Old 09-01-2016 , 13:23   Re: Rocket sound
Reply With Quote #3

Ok thanks for your reply ! I will try this
__________________
Walgrim is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:18.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode