add thunderstorm effects to fort lonestar
This commit is contained in:
BIN
mods/ra/bits/rain.aud
Normal file
BIN
mods/ra/bits/rain.aud
Normal file
Binary file not shown.
BIN
mods/ra/bits/thunder.aud
Normal file
BIN
mods/ra/bits/thunder.aud
Normal file
Binary file not shown.
@@ -147,6 +147,16 @@ SovietsRetreating = function()
|
||||
end)
|
||||
end
|
||||
|
||||
Tick = function()
|
||||
if (Utils.RandomInteger(1, 200) == 10) then
|
||||
local delay = Utils.RandomInteger(1, 10)
|
||||
Effect.Flash("LightningStrike", delay)
|
||||
Trigger.AfterDelay(delay, function()
|
||||
Media.PlaySound("thunder.aud")
|
||||
end)
|
||||
end
|
||||
end
|
||||
|
||||
WorldLoaded = function()
|
||||
soviets = Player.GetPlayer("Soviets")
|
||||
players = { }
|
||||
|
||||
@@ -499,6 +499,15 @@ Rules:
|
||||
CrateActors: fortcrate
|
||||
-SpawnMPUnits:
|
||||
-MPStartLocations:
|
||||
GlobalLightingPaletteEffect:
|
||||
Red: 0.75
|
||||
Green: 0.85
|
||||
Blue: 1.5
|
||||
Ambient: 0.35
|
||||
AmbientSound:
|
||||
SoundFile: rain.aud
|
||||
FlashPaletteEffect@LIGHTNINGSTRIKE:
|
||||
Type: LightningStrike
|
||||
LuaScript:
|
||||
Scripts: fort-lonestar.lua
|
||||
ScriptUpgradesCache:
|
||||
|
||||
Reference in New Issue
Block a user