Adding Sounds To The Game Through CTS files

I am using, with permission, as my example CaboosesayzWTF's radiochanger mod.

In simple use it just changes a radio station, but there is a bit more to
this mod than that. Caboose used a cts file to place radios all
throughout Stilwater and in doing so created a file that allows the ability to
manipulate sounds in areas where sound manipulation was not intended.

Ok, you walk into the mall and there is smooth jazz playing on a radio.
That Radio Station Is played from a Non-Selectable (hard coded) radio
station. Using a cts file CaboosesayzWTF allows the player to change that radio station
to whichever one they desire.

Here is one example:

// -------
#Navpoints
// -------

//Redlight OnTheRag Radio

$Navpoint: "ontherag_radio1"
$Type: "floating"
$Pos: <-70.2 -3.9 73.8>
$Orient:

Sets the location in the Navpoints section of the cts file

// -------
#Triggers
// -------

//Redlight district

$Trigger: "ontherag_radio1"
$Trigger type: "bounding box"
$Trigger action: "crib radio"
$Trigger max fires: 0
$Trigger delay: 10000
$Start nav: "ontherag_radio1"
+UseActivated
+UseMessage: "HUD_CRIB_CHANGE_RADIO_STATION"
$Box size: -1.000000 0.000000 -1.000000 1.000000 2.000000 1.000000
+Ignore Vehicles

Set the trigger code


// -------
#Ambients
// -------

//Redlight District

$Ambient: "ontherag_radio1"
$Navpoint: "ontherag_radio1"
$Shape: "Box"
$Inner Dimensions: <15.750000 4.750000 25>
$Outer Dimensions: <18.375000 11.375000 27.250000>
$Inner Offset: <0 0 0>
$Attachment Type: "None"
$Emitter: "muzak"
$Volume: 0.3500
$Priority: 0.0000
$Radio: "On The Rag"
$Min ToD: 0
$Max ToD: 0
$ToD Fade In: 0
$ToD Fade Out: 0
+Masked

In Ambients the box dimensions are defined as well as the other parameters
which allow the code to function. The $Radio variable selects the start station
(which in this case does not appear on the regular radio dial unless you change
the setting in the radio.xtbl file) The Emitter sets the type of content to be
emitted (your sound source)

Further Reading:https://saintsrowmods2.github.io/volition-docs/SR2/formats/cts/ - Courtesy Volition (see section on Emitter)

For Entertainment and study purposes you should definitely check the full mod
https://www.saintsrowmods.com/forum/threads/extended-extras-cribs-radios-sandbox-interiors.16228/ - courtesy CaboosesayzWTF

I am including (again with permission) the radiochanger portion of the full
mod for study purposes. In order to keep the file size down I have omitted the location screenshots but they are included in the full mod release above.
 

Attachments

  • Extended Radio Mod (CaboosesayzWTF).zip
    209 KB · Views: 20
Last edited:
Back
Top