Skip to content

Commit

Permalink
add thunderstorm effects to fort lonestar
Browse files Browse the repository at this point in the history
  • Loading branch information
Mailaender committed Jul 4, 2015
1 parent 31b3eff commit 0bd2d27
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 0 deletions.
Binary file added mods/ra/bits/rain.aud
Binary file not shown.
Binary file added mods/ra/bits/thunder.aud
Binary file not shown.
10 changes: 10 additions & 0 deletions mods/ra/maps/fort-lonestar/fort-lonestar.lua
Expand Up @@ -147,6 +147,16 @@ SovietsRetreating = function()
end)
end

Tick = function()
if (Utils.RandomInteger(1, 200) == 10) then
local delay = Utils.RandomInteger(1, 10)
Palette.FlashEffect(delay)
Trigger.AfterDelay(delay, function()
Media.PlaySound("thunder.aud")
end)
end
end

WorldLoaded = function()
soviets = Player.GetPlayer("Soviets")
players = { }
Expand Down
8 changes: 8 additions & 0 deletions mods/ra/maps/fort-lonestar/map.yaml
Expand Up @@ -499,6 +499,14 @@ Rules:
CrateActors: fortcrate
-SpawnMPUnits:
-MPStartLocations:
GlobalLightingPaletteEffect:
Red: 0.75
Green: 0.85
Blue: 1.5
Ambient: 0.35
AmbientSound:
SoundFile: rain.aud
FlashPaletteEffect:
LuaScript:
Scripts: fort-lonestar.lua
ScriptUpgradesCache:
Expand Down

0 comments on commit 0bd2d27

Please sign in to comment.