Author Topic: Vehicle Stereo Range Enhancement  (Read 497 times)

Can someone edit the script for the Vehicle Stereo mod to make the sound have a farther range, so you can hear it from farther away?

The way that Vehicle Stereo works is that it places a music brick on the vehicle apparently. The only easy way to extend the range is to change the music brick into a music brick with a longer range, which'd require Brick_LongRangeMusic to be enabled on the server.
Taken directly from the server.cs, italics weren't originally there:

%mount.stereoHandler = new fxDTSBrick() {
client = %client;
dataBlock = brickMusicData; // Theoretically, changing this to the name of a custom music brick with a longer range will increase the range of the music.
isPlanted = true;
isStereo = true;
mount = %mount;
position = "-10000 -10000 -10000";
};

If one wanted to double the range, that part of the script would look like this:

%mount.stereoHandler = new fxDTSBrick() {  //it makes a brick
client = %client;
dataBlock = brick2xMusicData; //Double range music.
isPlanted = true;
isStereo = true;
mount = %mount;
position = "-10000 -10000 -10000";
};

If one were to change the bolded and underlined part to brick5xMusicData, the range should be 5 times the normal range (not recommended imo). I'm pretty sure if someone were to rework the script to work differently changing the range would be easier and not require another add on, but for now this is an easy solution.


EDIT: Confirmed that this method will not work.
« Last Edit: November 16, 2013, 10:29:28 AM by QuadStorm »

The way that Vehicle Stereo works is that it places a music brick on the vehicle apparently.

I had it use a brick to make the music selection as vanilla as possible, but the vehicle itself plays the audio.

I don't know how you'd expand the range off the top of my head (can you?) but go from there.