add thunderstorm effects to fort lonestar

This commit is contained in:
Matthias Mailänder
2015-07-05 18:15:29 +02:00
parent ed7b54a21e
commit f6ae27b4b7
4 changed files with 19 additions and 0 deletions

BIN
mods/ra/bits/rain.aud Normal file

Binary file not shown.

BIN
mods/ra/bits/thunder.aud Normal file

Binary file not shown.

View File

@@ -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 = { }

View File

@@ -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: