Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Audio File.nl2sco
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
</scriptparameter>
<scriptparameter>
<type>bool</type>
<defaultvalue>true</defaultvalue>
<defaultvalue>false</defaultvalue>
<id>audio_flag_shared</id>
<description>Syncronises all sound sources to play at the same time.</description>
<label>Shared Sound</label>
Expand Down
59 changes: 59 additions & 0 deletions Cue Trigger - Station Restraint.nl2sco
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
<?xml version="1.0" encoding="UTF-8"?>
<root>
<sceneobject>
<model path="models/UnitCube.glb"/>
<description>Plays an assigned Audio ID to a Group ID when the Gates are opened or closed.</description>
<preview>thumbs/Restraint.png</preview>
<param allowrot="false"/>
<param allowscale="false"/>
<param baseroty="-90"/>
<script>
<classpath></classpath>
<class>scripts.AudioCueStationRestraint</class>
<sharedvm>true</sharedvm>
</script>
<scriptparameter>
<type>string</type>
<defaultvalue></defaultvalue>
<id>audio_group</id>
<description>Links all emitters/cues to a certain group.</description>
<label>Group Id</label>
</scriptparameter>
<scriptparameter>
<type>string</type>
<defaultvalue></defaultvalue>
<id>audio_name</id>
<description>Audio id that links to audio file.</description>
<label>Audio Id [Must be unique]</label>
</scriptparameter>
<scriptparameter>
<type>blocksection</type>
<id>audio_station</id>
<description>The Station that will trigger this cue upon activation.</description>
<label>Station</label>
</scriptparameter>
<scriptparameter>
<type>int</type>
<defaultvalue>0</defaultvalue>
<enums>Opening,Closing,Both</enums>
<id>audio_activation</id>
<description>Sets the type of activation that triggers this cue.</description>
<label>Activation</label>
</scriptparameter>
<scriptparameter>
<type>bool</type>
<defaultvalue>false</defaultvalue>
<id>audio_mutelower</id>
<description>Sets wether this audio cue will mute lower priority audio cues. Used along-side the audio priority parameter.</description>
<label>Mute Lower Priority Audio [Advanced]</label>
</scriptparameter>
<scriptparameter>
<type>int</type>
<defaultvalue>3</defaultvalue>
<id>audio_priority</id>
<description>Sets the priority of this audio cue which determines what cues will silence others. Used along-side mute lower parameter.</description>
<label>Audio Priority [Advanced]</label>
</scriptparameter>
<materialpath name="Material">thumbs/Restraint.nl2mat</materialpath>
</sceneobject>
</root>
21 changes: 21 additions & 0 deletions materials/Emitters/Restraint.nl2mat
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<root>
<material>
<renderpass>
<transparency mode="opaque"/>
<linearshading/>
<custommaterial>
<diffuse r="1" g="1" b="1"/>
<ambient r="1" g="1" b="1"/>
<specular r="1" g="1" b="1"/>
<shininess exponent="42"/>
</custommaterial>
<rgbgen mode="constlighting"/>
<texunit>
<map>/C:/Users/scott/Documents/com.nolimitscoaster.nolimits2/NLVMCore/thumbs/Restraint.png</map>
<tcgen mode="base"/>
</texunit>
</renderpass>
<option nonsolid="true"/>
</material>
</root>
11 changes: 11 additions & 0 deletions scripts/AudioCueStationRestraint.nlvm
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package scripts;

public final class AudioCueStationRestraint extends AudioCueStationState
{
public void Update(float deltaTime)
{
if(m_Station.isTrainOnSection())
m_Activation = m_Station.getTrainOnSection().getHarnessState();
super.Update(deltaTime);
}
}
2 changes: 2 additions & 0 deletions scripts/AudioEmitterVolume.nlvm
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ public abstract class AudioEmitterVolume extends AudioEmitter implements IRefere
{
SpatialSound sound = (SpatialSound)enumerator.Get();
sound.SetPosition(soundPosition);
sound.SetConstantDistance(100);
sound.SetFalloffFactor(0);
}

}
Expand Down
21 changes: 21 additions & 0 deletions thumbs/Restraint.nl2mat
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<root>
<material>
<renderpass>
<transparency mode="opaque"/>
<linearshading/>
<custommaterial>
<diffuse r="1" g="1" b="1"/>
<ambient r="1" g="1" b="1"/>
<specular r="1" g="1" b="1"/>
<shininess exponent="42"/>
</custommaterial>
<rgbgen mode="constlighting"/>
<texunit>
<map>Restraint.png</map>
<tcgen mode="base"/>
</texunit>
</renderpass>
<option nonsolid="true"/>
</material>
</root>
Binary file added thumbs/Restraint.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading