Merge pull request #7872 from Mailaender/storm-effects

Unified FlashPaletteEffect and exposed it to Lua
This commit is contained in:
Oliver Brakmann
2015-07-05 21:08:04 +02:00
26 changed files with 196 additions and 78 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

@@ -501,6 +501,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:

View File

@@ -70,5 +70,6 @@
LightPaletteRotator:
ExcludePalettes: terrain, effect
ChronoshiftPaletteEffect:
NukePaletteEffect:
FlashPaletteEffect@NUKE:
Type: Nuke

View File

@@ -38,6 +38,7 @@ MSLO:
DisplayRadarPing: True
BeaconPoster: atomicon
CameraActor: camera
FlashType: Nuke
CanPowerDown:
RequiresPower:
DisabledOverlay: