Skip to content

Commit ec708b4

Browse files
committed
cool sounds (need cool visuals)
1 parent a7261d4 commit ec708b4

File tree

9 files changed

+57
-7
lines changed

9 files changed

+57
-7
lines changed

Data/Browncoats.rte/Activities/RefineryAssaultFunctions.lua

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,22 @@ function RefineryAssault:HandleMessage(message, object)
155155
self.HUDHandler:RemoveObjective(self.humanTeam, "S3OverloadDrill");
156156
self.stage3DrillOverloaded = true;
157157

158+
elseif message == "RefineryAssault_S4DoorsBlownUp" then
159+
160+
if self.Stage ~= 5 then
161+
162+
self.Stage = 5;
163+
self.HUDHandler:RemoveAllObjectives(self.humanTeam);
164+
165+
local pos = SceneMan.Scene:GetOptionalArea("RefineryAssault_S3DoorSequenceArea").Center;
166+
self.stage4DoorExploSoundContainer = CreateSoundContainer("Yskely Refinery S4 Doors Explo");
167+
self.stage4DoorExploSoundContainer:Play(pos);
168+
self.stage4DoorExploDistSoundContainer = CreateSoundContainer("Yskely Refinery S4 Doors Explo Distant");
169+
self.stage4DoorExploDistSoundContainer:Play(pos);
170+
171+
print("hi?");
172+
end
173+
158174
end
159175

160176

@@ -826,9 +842,6 @@ function RefineryAssault:MonitorStage4()
826842

827843
for k, door in pairs(self.saveTable.stage4Door) do
828844
if not door or not MovableMan:ValidMO(door) then
829-
-- stage 5 crap
830-
self.Stage = 5;
831-
self.HUDHandler:RemoveAllObjectives(self.humanTeam);
832845
else
833846
ToADoor(door):ResetSensorTimer();
834847
end

Data/Browncoats.rte/Scenes/Objects/Breakables/RefineryFuelTankLarge/RefineryFuelTankLarge.ini

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ AddActor = MOSRotating
113113
AddGib = Gib
114114
GibParticle = MOSParticle
115115
CopyOf = Flame 2
116-
Count = 50
116+
Count = 15
117117
Spread = 3.14
118118
LifeVariation = 0.50
119119
MaxVelocity = 9
@@ -194,6 +194,8 @@ AddActor = MOSRotating
194194
ScriptPath = Browncoats.rte/Scenes/Objects/Breakables/RefineryFuelTankLarge/RefineryS4FuelTankMain.lua
195195
GibWoundLimit = 9999999
196196
GibImpulseLimit = 9999999
197+
GibSound = SoundContainer
198+
CopyOf = Yskely Refinery S4 Tank Explo
197199

198200
AddActor = MOSRotating
199201
CopyOf = Browncoat Refinery Fuel Tank Large Vertical

Data/Browncoats.rte/Scenes/Objects/Breakables/RefineryFuelTankLarge/RefineryS4FuelTankAuxiliary.lua

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@ function OnMessage(self, message)
22

33
if message == "RefineryAssault_S4TankBlownUp" then
44
self.blowUpTimer = Timer();
5-
self.randTime = math.random(200, 400);
5+
self.randTime = math.random(600, 750);
66
end
77

88
end
99

1010
function Create(self)
11+
12+
self.GibSound = nil;
1113

1214
self.doorsTable = {};
1315
for actor in MovableMan.Actors do
@@ -23,6 +25,8 @@ function Update(self)
2325
if self.blowUpTimer and self.blowUpTimer:IsPastSimMS(self.randTime) then
2426
self.MissionCritical = false;
2527
self:GibThis();
28+
local activity = ActivityMan:GetActivity();
29+
activity:SendMessage("RefineryAssault_S4DoorsBlownUp");
2630
for k, door in pairs(self.doorsTable) do
2731
-- one of these 2 extra tanks will blow up earlier, we expect a validmo check to fail on one of em
2832
if MovableMan:ValidMO(door) then

Data/Browncoats.rte/Scenes/Objects/Breakables/RefineryFuelTankLarge/RefineryS4FuelTankMain.lua

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ end
2020
function Update(self)
2121

2222
if self.blowUpTimer then
23-
if self.blowUpTimer:IsPastSimMS(2000) then
23+
if self.blowUpTimer:IsPastSimMS(1000) then
2424

2525
self.MissionCritical = false;
2626
self:GibThis();
@@ -42,7 +42,8 @@ function Update(self)
4242
end
4343
elseif self.WoundCount > 100 then
4444
self.blowUpTimer = Timer();
45-
-- do fx here
45+
local soundContainer = CreateSoundContainer("Yskely Refinery S4 Tank Burst");
46+
soundContainer:Play(self.Pos);
4647
end
4748

4849
end

Data/Browncoats.rte/Scenes/Sounds.ini

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,36 @@ AddSoundContainer = SoundContainer
1818
AttenuationStartDistance = 400
1919
Priority = 127 // just above the default
2020
AddSound = Browncoats.rte/Scenes/Sounds/Refinery_BlastDoorStop.flac
21+
22+
AddSoundContainer = SoundContainer
23+
PresetName = Yskely Refinery S4 Tank Burst
24+
AttenuationStartDistance = 400
25+
PanningStrengthMultiplier = 0
26+
Priority = 127 // just above the default
27+
AddSound = Browncoats.rte/Scenes/Sounds/Refinery_S4TankBurst.flac
28+
29+
AddSoundContainer = SoundContainer
30+
PresetName = Yskely Refinery S4 Tank Explo
31+
AttenuationStartDistance = 400
32+
PanningStrengthMultiplier = 0
33+
Volume = 0.5
34+
Priority = 127 // just above the default
35+
AddSound = Browncoats.rte/Scenes/Sounds/Refinery_S4TankExplo.flac
36+
37+
AddSoundContainer = SoundContainer
38+
PresetName = Yskely Refinery S4 Doors Explo
39+
Volume = 1.4
40+
AttenuationStartDistance = 800
41+
PanningStrengthMultiplier = 0
42+
Priority = 50
43+
AddSound = Browncoats.rte/Scenes/Sounds/Refinery_S4DoorsExplo.flac
44+
45+
AddSoundContainer = SoundContainer
46+
PresetName = Yskely Refinery S4 Doors Explo Distant
47+
AttenuationStartDistance = 4000
48+
PanningStrengthMultiplier = 0
49+
Priority = 50
50+
AddSound = Browncoats.rte/Scenes/Sounds/Refinery_S4DoorsExploDistant.flac
2151

2252
AddSoundContainer = SoundContainer
2353
PresetName = Yskely Refinery Ambience Ext
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)