Jump to content
Sign in to follow this  
Pappy60

custom sounds, lag and limiting who hears it

Recommended Posts

I have an MP mission I'm building with many custom sounds in it, mostly hq radio calls providing info on the next task using custom voice overs, will this cause lag on an MP dedicated server?

Also I want to limit the radio calls just to the vehicle or the player, all of the radio calls are set off by triggers...when the radio call from hq comes, will all players hear it ? I am using sideRadio with a custom sound....or is there a better way to do it so only the player hears the message or only the vehicle?

I also have some in vehicle noises but if the volume is high enough in the vehicle, it is deafening outside the vehicle and can be heard anywhere in the game, I am using playSound, is there a better command for limiting the sound to inside the vehicle?

Share this post


Link to post
Share on other sites

Ok, you should be able to have as many sounds as you like. It shouldn't cause lag, because the players have already downloaded the sounds.

As far as only hearing inside the vehicle, use vehicleRadio.

As far as playsound, you can try say. Play sound will always be heard by everyone. With say, you can only hear it if you are within hearing distance.

Share this post


Link to post
Share on other sites

You rock Big Daddy, that is exactly what I was looking for !

Thanks!

Share this post


Link to post
Share on other sites

okay I tried say but this is only for sounds, and I am really using radioclass messages / sounds ( I should have been more specific). So with Say, you only get the sound, no text message....(feel free to correct me)

vehicleRadio does work, but it seems that the message (text) is coming from the driver (pilot in my case) like it is an outbound radio call... is there a way to use vehicleRadio and have it "receive" instead of transmit? I want to receive messages from HQ on vehicle radio but using it as is "vehiclename vehicleRadio "Radiomesg"; results in a radio text from "pilot"

I tried using an empty vehicle to "send" a message, but this does not work, tried to "send" a message from an ai but this did not

To put it into perspective, I have a trigger that is true when the pilot enters the helo, the trigger sends the radio message ....so using the vehicleRadio within this trigger means the vehicle is calling itself...I want the message to come from ATC (air traffic control) or HQ ...so maybe this helo trigger needs to trigger another trigger of an AI named ATC with a radio that actually sends the message to the helo?

Just talking out loud.....I will try this and post the results....

Share this post


Link to post
Share on other sites

Okay, ended up using vehiclename vehicleRadio "radiomessage"; just added a bit more text to the radiomessage so the pilot knows where the message is coming from

also tested it on dedicated MP server and it all works well, no lag at all.

Thansk for your help Big Daddy!

Share this post


Link to post
Share on other sites

yup.. MP framework is your friend...

First, make sure the MP framework is initialized.

	if (isnil "RE") then {[] execVM "\ca\Modules\MP\data\scripts\MPframework.sqf"};

PAPABEAR=[West,"HQ"];
_nic = [PAPABEAR,crew vehicleName ,"loc",rsideRadio,"radiomessage"] call RE;

The say command was for your playsound problem (vehicle alarms)

Share this post


Link to post
Share on other sites

I can't seem to find anything on rsideRadio ?

What is the RE?

Lastly what does the MPframework do? Obviously it has to do with MP environment but when is it used and why?

So in your statement above,

"_nic" is just a variable (could be any name?)

then "papabear" is radio transmitter ,

"crew vehicle name" is radio receiver,

"loc" is local? instead of ??? ,

"rsideRadio" is restricted sideRadio ?

"call RE" is callling the MPframework script and passing the "_nic" variable to MPFramework?

I like understanding what the code is doing so I can learn..I certainly appreciate the help but I want to learn so I am not having others produce code for me so I can copy paste it into my missions...

Oh one more thing, since the mission is only going to be MP, can I simply call the MPFramework in the init.sqf ?

What about using an isServer statement in the init file ? It seems silly to have to use the isServer statement sporadically throughout a mission to resolve locality issues...seems like it would be smarter to do it globally from the init file....

Edited by Pappy60

Share this post


Link to post
Share on other sites
I can't seem to find anything on rsideRadio ?

What is the RE?

Lastly what does the MPframework do? Obviously it has to do with MP environment but when is it used and why?

There is some documentation on the MP framework here.

Share this post


Link to post
Share on other sites

Thanks MADDOGX, that explains a lot.....so this allows me localize things that would otherwise be global and globalize things that would otherwise be local...very cool....

---------- Post added at 11:14 AM ---------- Previous post was at 11:11 AM ----------

Although it does state in the wiki not to use "rsidechat" or "rhint" etc...but does have all of the library commands....nevermind , further reading shows that you can use rHint etc within the MPFramework, you cannot use it outside of the framework....pays to read everything :)

Edited by Pappy60

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×