Renegade Public Forums
C&C: Renegade -- Dead since 2012!™
Home » Renegade Discussions » Mod Forum » code
code [message #492891] Wed, 18 July 2018 03:17 Go to next message
roszek  is currently offline roszek  
Messages: 294
Registered: June 2010
Recruit
From: *twcny.res.rr.com
Is it possible to play a sound just to an individual player?

thanks.
Re: code [message #492892] Wed, 18 July 2018 11:53 Go to previous messageGo to next message
dblaney1  is currently offline dblaney1  
Messages: 357
Registered: March 2014
Location: United States
Commander
From: 130.156.89*
Yes.
You can either use:

Create_Sound_Player(GameObject *obj,const char *soundname,const Vector3 & position,GameObject *obj2)

or

Create_2D_WAV_Sound_Player(GameObject *obj,const char *soundname)

You can also use the console command sndp.

If your sound is dialog though I recommend using:

Create_2D_Wave_Sound_Dialog_Player(GameObject *obj,const char *soundname)

That makes it play over the dialog channel/volume rather than sound effects.

[Updated on: Wed, 18 July 2018 11:59]

Re: code [message #492905] Sat, 11 August 2018 17:11 Go to previous messageGo to next message
roszek  is currently offline roszek  
Messages: 294
Registered: June 2010
Recruit
From: *twcny.res.rr.com
I'm having trouble getting a sounds id.

If I do

int soundID = Commands->Create_Sound("some_sound",some_position,some_obj);

I get 0 for soundID on server.

But I do get an id in lan.

I need to stop the sound( Commands->Stop_Sound(soundID,true); )but I can't on the server if I don't have an id, I can only do it in lan.

Why?
Re: code [message #492906] Sat, 11 August 2018 17:39 Go to previous messageGo to next message
dblaney1  is currently offline dblaney1  
Messages: 357
Registered: March 2014
Location: United States
Commander
From: *nwrknj.fios.verizon.net
None of the sound code actually runs on the fds. Your best bet is to use sound emitters. You can create them using w3dview. Then you spawn an invisible object and set the model to that sound emitter. When you want the sound to stop you destroy that invisible object.

[Updated on: Sat, 11 August 2018 17:52]

Re: code [message #492907] Sun, 12 August 2018 11:03 Go to previous messageGo to next message
roszek  is currently offline roszek  
Messages: 294
Registered: June 2010
Recruit
From: *twcny.res.rr.com
It would be better to turn the sounds on and off with frames that's the way I'm doing it anyway.
Re: code [message #492908] Sun, 12 August 2018 21:13 Go to previous messageGo to next message
dblaney1  is currently offline dblaney1  
Messages: 357
Registered: March 2014
Location: United States
Commander
From: *nwrknj.fios.verizon.net
Yeah that works as well with sound emitters. We use that on our building aggregates so we can have different sounds for the damage levels etc.
Re: code [message #492951] Thu, 29 November 2018 14:06 Go to previous messageGo to next message
roszek  is currently offline roszek  
Messages: 294
Registered: June 2010
Recruit
From: *twcny.res.rr.com
*Image Deleted*

I can not figure out how this message is done I looked through everything.

Any help would be appreciated.

[Updated on: Tue, 15 January 2019 11:14]

Re: code [message #492952] Thu, 29 November 2018 20:22 Go to previous messageGo to next message
jonwil  is currently offline jonwil  
Messages: 3552
Registered: February 2003
General (3 Stars)

From: *tpgi.com.au
If you mean the blue text in the center, you want Set_HUD_Help_Text_Player


Jonathan Wilson aka Jonwil
Creator and Lead Coder of the Custom scripts.dll
Renegade Engine Guru
Creator and Lead Coder of TT.DLL
Official member of Tiberian Technologies
Re: code [message #492953] Fri, 30 November 2018 05:30 Go to previous messageGo to next message
roszek  is currently offline roszek  
Messages: 294
Registered: June 2010
Recruit
From: *twcny.res.rr.com
ah, okay.

Thank you very much.
Re: code [message #492983] Sun, 06 January 2019 15:27 Go to previous messageGo to next message
Kamuix  is currently offline Kamuix  
Messages: 1244
Registered: May 2005
Location: Ontario, Canada
General (1 Star)

From: *home4.cgocable.net
Wow roszek that's some awsome maps and mods you have there what is it your playing modification wise something you made or something you downloaded? Razz
Re: code [message #492990] Sat, 12 January 2019 10:42 Go to previous message
dblaney1  is currently offline dblaney1  
Messages: 357
Registered: March 2014
Location: United States
Commander
From: *nwrknj.fios.verizon.net
Kamuix wrote on Sun, 06 January 2019 15:27

Wow roszek that's some awsome maps and mods you have there what is it your playing modification wise something you made or something you downloaded? Razz


The screenshot is from Interim Apex which is available on W3D Hub. Download the launcher from w3dhub.com to play it. Lots of players on daily.
Previous Topic:Renegade infantry model source files and infantry LOD
Next Topic:Renhelp Website: contains tutorials, FAQ, ...
Goto Forum:
  


Current Time: Wed Mar 20 23:21:28 MST 2019
.:: Contact :: Home ::.

Powered by: FUDforum 2.7.7RC2.
Copyright ©2001-2007 FUD Forum Bulletin Board Software