Merge pull request #8562 from GraionDilach/music-refactor
Refactors the music player.
This commit is contained in:
@@ -286,7 +286,6 @@ namespace OpenRA
|
||||
Console.WriteLine("Loading mod: {0}", mod);
|
||||
Settings.Game.Mod = mod;
|
||||
|
||||
Sound.StopMusic();
|
||||
Sound.StopVideo();
|
||||
Sound.Initialize();
|
||||
|
||||
|
||||
@@ -182,6 +182,7 @@
|
||||
<Compile Include="Traits\Util.cs" />
|
||||
<Compile Include="Traits\ValidateOrder.cs" />
|
||||
<Compile Include="Traits\World\Country.cs" />
|
||||
<Compile Include="Traits\World\MusicPlaylist.cs" />
|
||||
<Compile Include="Traits\World\ResourceType.cs" />
|
||||
<Compile Include="Traits\World\ScreenShaker.cs" />
|
||||
<Compile Include="Traits\World\Shroud.cs" />
|
||||
|
||||
@@ -108,7 +108,6 @@ namespace OpenRA
|
||||
|
||||
public bool Shuffle = false;
|
||||
public bool Repeat = false;
|
||||
public bool MapMusic = true;
|
||||
|
||||
public string Engine = "AL";
|
||||
public string Device = null;
|
||||
|
||||
149
OpenRA.Game/Traits/World/MusicPlaylist.cs
Normal file
149
OpenRA.Game/Traits/World/MusicPlaylist.cs
Normal file
@@ -0,0 +1,149 @@
|
||||
#region Copyright & License Information
|
||||
/*
|
||||
* Copyright 2007-2015 The OpenRA Developers (see AUTHORS)
|
||||
* This file is part of OpenRA, which is free software. It is made
|
||||
* available to you under the terms of the GNU General Public License
|
||||
* as published by the Free Software Foundation. For more information,
|
||||
* see COPYING.
|
||||
*/
|
||||
#endregion
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using OpenRA.GameRules;
|
||||
|
||||
namespace OpenRA.Traits
|
||||
{
|
||||
[Desc("Trait for music handling. Attach this to the world actor.")]
|
||||
public class MusicPlaylistInfo : ITraitInfo
|
||||
{
|
||||
public readonly string StartingMusic = null;
|
||||
public readonly bool LoopStartingMusic = false;
|
||||
|
||||
public object Create(ActorInitializer init) { return new MusicPlaylist(init.World, this); }
|
||||
}
|
||||
|
||||
public class MusicPlaylist : INotifyActorDisposing
|
||||
{
|
||||
readonly MusicInfo[] random;
|
||||
readonly MusicInfo[] playlist;
|
||||
|
||||
public readonly bool IsMusicAvailable;
|
||||
|
||||
MusicInfo currentSong;
|
||||
bool repeat;
|
||||
|
||||
public MusicPlaylist(World world, MusicPlaylistInfo info)
|
||||
{
|
||||
IsMusicAvailable = world.Map.Rules.InstalledMusic.Any();
|
||||
|
||||
playlist = world.Map.Rules.InstalledMusic.Select(a => a.Value).ToArray();
|
||||
|
||||
if (!IsMusicAvailable)
|
||||
return;
|
||||
|
||||
random = playlist.Shuffle(Game.CosmeticRandom).ToArray();
|
||||
|
||||
if (!string.IsNullOrEmpty(info.StartingMusic)
|
||||
&& world.Map.Rules.Music.ContainsKey(info.StartingMusic)
|
||||
&& world.Map.Rules.Music[info.StartingMusic].Exists)
|
||||
{
|
||||
currentSong = world.Map.Rules.Music[info.StartingMusic];
|
||||
repeat = info.LoopStartingMusic;
|
||||
}
|
||||
else
|
||||
{
|
||||
currentSong = Game.Settings.Sound.Shuffle ? random.First() : playlist.First();
|
||||
repeat = Game.Settings.Sound.Repeat;
|
||||
}
|
||||
|
||||
Play();
|
||||
}
|
||||
|
||||
public MusicInfo CurrentSong()
|
||||
{
|
||||
return currentSong;
|
||||
}
|
||||
|
||||
public MusicInfo[] AvailablePlaylist()
|
||||
{
|
||||
// TO-DO: add filter options for Race-specific music
|
||||
return playlist;
|
||||
}
|
||||
|
||||
void Play()
|
||||
{
|
||||
if (currentSong == null || !IsMusicAvailable)
|
||||
return;
|
||||
|
||||
Sound.PlayMusicThen(currentSong, () =>
|
||||
{
|
||||
if (!repeat)
|
||||
currentSong = GetNextSong();
|
||||
|
||||
Play();
|
||||
});
|
||||
}
|
||||
|
||||
public void Play(MusicInfo music)
|
||||
{
|
||||
if (music == null || !IsMusicAvailable)
|
||||
return;
|
||||
|
||||
currentSong = music;
|
||||
repeat = Game.Settings.Sound.Repeat;
|
||||
|
||||
Sound.PlayMusicThen(music, () =>
|
||||
{
|
||||
if (!repeat)
|
||||
currentSong = GetNextSong();
|
||||
|
||||
Play();
|
||||
});
|
||||
}
|
||||
|
||||
public void Play(MusicInfo music, Action onComplete)
|
||||
{
|
||||
if (music == null || !IsMusicAvailable)
|
||||
return;
|
||||
|
||||
currentSong = music;
|
||||
Sound.PlayMusicThen(music, onComplete);
|
||||
}
|
||||
|
||||
public MusicInfo GetNextSong()
|
||||
{
|
||||
return GetSong(false);
|
||||
}
|
||||
|
||||
public MusicInfo GetPrevSong()
|
||||
{
|
||||
return GetSong(true);
|
||||
}
|
||||
|
||||
MusicInfo GetSong(bool reverse)
|
||||
{
|
||||
if (!IsMusicAvailable)
|
||||
return null;
|
||||
|
||||
var songs = Game.Settings.Sound.Shuffle ? random : playlist;
|
||||
|
||||
return reverse ? songs.SkipWhile(m => m != currentSong)
|
||||
.Skip(1).FirstOrDefault() ?? songs.FirstOrDefault() :
|
||||
songs.Reverse().SkipWhile(m => m != currentSong)
|
||||
.Skip(1).FirstOrDefault() ?? songs.Reverse().FirstOrDefault();
|
||||
}
|
||||
|
||||
public void Stop()
|
||||
{
|
||||
currentSong = null;
|
||||
Sound.StopMusic();
|
||||
}
|
||||
|
||||
public void Disposing(Actor self)
|
||||
{
|
||||
if (currentSong != null)
|
||||
Stop();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -388,7 +388,6 @@ namespace OpenRA
|
||||
frameEndActions.Clear();
|
||||
|
||||
Sound.StopAudio();
|
||||
Sound.StopMusic();
|
||||
Sound.StopVideo();
|
||||
|
||||
// Dispose newer actors first, and the world actor last
|
||||
|
||||
@@ -11,26 +11,28 @@
|
||||
using System;
|
||||
using System.Drawing;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using Eluant;
|
||||
using OpenRA.Effects;
|
||||
using OpenRA.FileFormats;
|
||||
using OpenRA.FileSystem;
|
||||
using OpenRA.GameRules;
|
||||
using OpenRA.Graphics;
|
||||
using OpenRA.Mods.Common.Effects;
|
||||
using OpenRA.Scripting;
|
||||
using OpenRA.Traits;
|
||||
|
||||
namespace OpenRA.Mods.Common.Scripting
|
||||
{
|
||||
[ScriptGlobal("Media")]
|
||||
public class MediaGlobal : ScriptGlobal
|
||||
{
|
||||
World world;
|
||||
readonly World world;
|
||||
readonly MusicPlaylist playlist;
|
||||
|
||||
public MediaGlobal(ScriptContext context)
|
||||
: base(context)
|
||||
{
|
||||
world = context.World;
|
||||
playlist = world.WorldActor.Trait<MusicPlaylist>();
|
||||
}
|
||||
|
||||
[Desc("Play an announcer voice listed in notifications.yaml")]
|
||||
@@ -51,23 +53,15 @@ namespace OpenRA.Mods.Common.Scripting
|
||||
Sound.Play(file);
|
||||
}
|
||||
|
||||
MusicInfo previousMusic;
|
||||
Action onComplete;
|
||||
[Desc("Play track defined in music.yaml or keep it empty for a random song.")]
|
||||
public void PlayMusic(string track = null, LuaFunction func = null)
|
||||
{
|
||||
if (!Game.Settings.Sound.MapMusic)
|
||||
return;
|
||||
|
||||
var music = world.Map.Rules.InstalledMusic.Select(a => a.Value).ToArray();
|
||||
if (!music.Any())
|
||||
if (!playlist.IsMusicAvailable)
|
||||
return;
|
||||
|
||||
var musicInfo = !string.IsNullOrEmpty(track) ? world.Map.Rules.Music[track]
|
||||
: Game.Settings.Sound.Repeat && previousMusic != null ? previousMusic
|
||||
: Game.Settings.Sound.Shuffle ? music.Random(Game.CosmeticRandom)
|
||||
: previousMusic == null ? music.First()
|
||||
: music.SkipWhile(s => s != previousMusic).Skip(1).First();
|
||||
: playlist.GetNextSong();
|
||||
|
||||
if (func != null)
|
||||
{
|
||||
@@ -84,19 +78,17 @@ namespace OpenRA.Mods.Common.Scripting
|
||||
Context.FatalError(e.Message);
|
||||
}
|
||||
};
|
||||
|
||||
playlist.Play(musicInfo, onComplete);
|
||||
}
|
||||
else
|
||||
onComplete = () => { };
|
||||
|
||||
Sound.PlayMusicThen(musicInfo, onComplete);
|
||||
|
||||
previousMusic = Sound.CurrentMusic;
|
||||
playlist.Play(musicInfo);
|
||||
}
|
||||
|
||||
[Desc("Stop the current song.")]
|
||||
public void StopMusic()
|
||||
{
|
||||
Sound.StopMusic();
|
||||
playlist.Stop();
|
||||
}
|
||||
|
||||
Action onCompleteFullscreen;
|
||||
|
||||
@@ -18,29 +18,24 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
||||
{
|
||||
public class MusicPlayerLogic
|
||||
{
|
||||
readonly Ruleset modRules;
|
||||
readonly ScrollPanelWidget musicList;
|
||||
readonly ScrollItemWidget itemTemplate;
|
||||
|
||||
bool installed;
|
||||
readonly MusicPlaylist musicPlaylist;
|
||||
MusicInfo currentSong = null;
|
||||
MusicInfo[] music;
|
||||
MusicInfo[] random;
|
||||
ScrollPanelWidget musicList;
|
||||
|
||||
ScrollItemWidget itemTemplate;
|
||||
|
||||
[ObjectCreator.UseCtor]
|
||||
public MusicPlayerLogic(Widget widget, Ruleset modRules, World world, Action onExit)
|
||||
{
|
||||
this.modRules = modRules;
|
||||
|
||||
var panel = widget.Get("MUSIC_PANEL");
|
||||
|
||||
musicList = panel.Get<ScrollPanelWidget>("MUSIC_LIST");
|
||||
itemTemplate = musicList.Get<ScrollItemWidget>("MUSIC_TEMPLATE");
|
||||
musicPlaylist = world.WorldActor.Trait<MusicPlaylist>();
|
||||
|
||||
BuildMusicTable();
|
||||
|
||||
Func<bool> noMusic = () => !installed;
|
||||
Func<bool> noMusic = () => !musicPlaylist.IsMusicAvailable;
|
||||
panel.Get("NO_MUSIC_LABEL").IsVisible = noMusic;
|
||||
|
||||
var playButton = panel.Get<ButtonWidget>("BUTTON_PLAY");
|
||||
@@ -54,15 +49,15 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
||||
pauseButton.IsVisible = () => Sound.MusicPlaying;
|
||||
|
||||
var stopButton = panel.Get<ButtonWidget>("BUTTON_STOP");
|
||||
stopButton.OnClick = Sound.StopMusic;
|
||||
stopButton.OnClick = () => { musicPlaylist.Stop(); };
|
||||
stopButton.IsDisabled = noMusic;
|
||||
|
||||
var nextButton = panel.Get<ButtonWidget>("BUTTON_NEXT");
|
||||
nextButton.OnClick = () => { currentSong = GetNextSong(); Play(); };
|
||||
nextButton.OnClick = () => { currentSong = musicPlaylist.GetNextSong(); Play(); };
|
||||
nextButton.IsDisabled = noMusic;
|
||||
|
||||
var prevButton = panel.Get<ButtonWidget>("BUTTON_PREV");
|
||||
prevButton.OnClick = () => { currentSong = GetPrevSong(); Play(); };
|
||||
prevButton.OnClick = () => { currentSong = musicPlaylist.GetPrevSong(); Play(); };
|
||||
prevButton.IsDisabled = noMusic;
|
||||
|
||||
var shuffleCheckbox = panel.Get<CheckboxWidget>("SHUFFLE");
|
||||
@@ -111,11 +106,13 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
||||
|
||||
public void BuildMusicTable()
|
||||
{
|
||||
music = modRules.InstalledMusic.Select(a => a.Value).ToArray();
|
||||
random = music.Shuffle(Game.CosmeticRandom).ToArray();
|
||||
currentSong = Sound.CurrentMusic;
|
||||
if (!musicPlaylist.IsMusicAvailable)
|
||||
return;
|
||||
|
||||
var music = musicPlaylist.AvailablePlaylist();
|
||||
currentSong = musicPlaylist.CurrentSong();
|
||||
if (currentSong == null && music.Any())
|
||||
currentSong = Game.Settings.Sound.Shuffle ? random.First() : music.First();
|
||||
currentSong = musicPlaylist.GetNextSong();
|
||||
|
||||
musicList.RemoveChildren();
|
||||
foreach (var s in music)
|
||||
@@ -124,8 +121,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
||||
if (currentSong == null)
|
||||
currentSong = song;
|
||||
|
||||
// TODO: We leak the currentSong MusicInfo across map load, so compare the Filename instead.
|
||||
var item = ScrollItemWidget.Setup(song.Filename, itemTemplate, () => currentSong.Filename == song.Filename, () => { currentSong = song; Play(); }, () => { });
|
||||
var item = ScrollItemWidget.Setup(song.Filename, itemTemplate, () => currentSong == song, () => { currentSong = song; Play(); }, () => { });
|
||||
item.Get<LabelWidget>("TITLE").GetText = () => song.Title;
|
||||
item.Get<LabelWidget>("LENGTH").GetText = () => SongLengthLabel(song);
|
||||
musicList.AddChild(item);
|
||||
@@ -133,8 +129,6 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
||||
|
||||
if (currentSong != null)
|
||||
musicList.ScrollToItem(currentSong.Filename);
|
||||
|
||||
installed = modRules.InstalledMusic.Any();
|
||||
}
|
||||
|
||||
void Play()
|
||||
@@ -143,38 +137,12 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
||||
return;
|
||||
|
||||
musicList.ScrollToItem(currentSong.Filename);
|
||||
|
||||
Sound.PlayMusicThen(currentSong, () =>
|
||||
{
|
||||
if (!Game.Settings.Sound.Repeat)
|
||||
currentSong = GetNextSong();
|
||||
Play();
|
||||
});
|
||||
musicPlaylist.Play(currentSong);
|
||||
}
|
||||
|
||||
static string SongLengthLabel(MusicInfo song)
|
||||
{
|
||||
return "{0:D1}:{1:D2}".F(song.Length / 60, song.Length % 60);
|
||||
}
|
||||
|
||||
MusicInfo GetNextSong()
|
||||
{
|
||||
if (!music.Any())
|
||||
return null;
|
||||
|
||||
var songs = Game.Settings.Sound.Shuffle ? random : music;
|
||||
return songs.SkipWhile(m => m != currentSong)
|
||||
.Skip(1).FirstOrDefault() ?? songs.FirstOrDefault();
|
||||
}
|
||||
|
||||
MusicInfo GetPrevSong()
|
||||
{
|
||||
if (!music.Any())
|
||||
return null;
|
||||
|
||||
var songs = Game.Settings.Sound.Shuffle ? random : music;
|
||||
return songs.Reverse().SkipWhile(m => m != currentSong)
|
||||
.Skip(1).FirstOrDefault() ?? songs.Reverse().FirstOrDefault();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -263,7 +263,6 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
||||
{
|
||||
var ss = Game.Settings.Sound;
|
||||
|
||||
BindCheckboxPref(panel, "SHELLMAP_MUSIC", ss, "MapMusic");
|
||||
BindCheckboxPref(panel, "CASH_TICKS", ss, "CashTicks");
|
||||
|
||||
BindSliderPref(panel, "SOUND_VOLUME", ss, "SoundVolume");
|
||||
@@ -295,7 +294,6 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
||||
var dss = new SoundSettings();
|
||||
return () =>
|
||||
{
|
||||
ss.MapMusic = dss.MapMusic;
|
||||
ss.SoundVolume = dss.SoundVolume;
|
||||
ss.MusicVolume = dss.MusicVolume;
|
||||
ss.VideoVolume = dss.VideoVolume;
|
||||
|
||||
@@ -238,13 +238,6 @@ Container@SETTINGS_PANEL:
|
||||
Font: Bold
|
||||
Text: Audio
|
||||
Align: Center
|
||||
Checkbox@SHELLMAP_MUSIC:
|
||||
X: 15
|
||||
Y: 40
|
||||
Width: 200
|
||||
Height: 20
|
||||
Font: Regular
|
||||
Text: Shellmap / Mission Music
|
||||
Label@SOUND_LABEL:
|
||||
X: PARENT_RIGHT - WIDTH - 270
|
||||
Y: 37
|
||||
@@ -260,7 +253,7 @@ Container@SETTINGS_PANEL:
|
||||
Ticks: 5
|
||||
Checkbox@CASH_TICKS:
|
||||
X: 15
|
||||
Y: 70
|
||||
Y: 40
|
||||
Width: 200
|
||||
Height: 20
|
||||
Font: Regular
|
||||
|
||||
@@ -441,6 +441,8 @@ Rules:
|
||||
Scripts: scj01ea.lua
|
||||
ObjectivesPanel:
|
||||
PanelName: MISSION_OBJECTIVES
|
||||
MusicPlaylist:
|
||||
StartingMusic: j1
|
||||
^Vehicle:
|
||||
Tooltip:
|
||||
GenericVisibility: Enemy
|
||||
|
||||
@@ -32,12 +32,6 @@ ReinforceWithLandingCraft = function(units, transportStart, transportUnload, ral
|
||||
Media.PlaySpeechNotification(player, "Reinforce")
|
||||
end
|
||||
|
||||
initialSong = "j1"
|
||||
PlayMusic = function()
|
||||
Media.PlayMusic(initialSong, PlayMusic)
|
||||
initialSong = nil
|
||||
end
|
||||
|
||||
WorldLoaded = function()
|
||||
nod = Player.GetPlayer("Nod")
|
||||
dinosaur = Player.GetPlayer("Dinosaur")
|
||||
@@ -91,7 +85,6 @@ WorldLoaded = function()
|
||||
end
|
||||
|
||||
Camera.Position = CameraStart.CenterPosition
|
||||
PlayMusic()
|
||||
end
|
||||
|
||||
Tick = function()
|
||||
|
||||
@@ -56,12 +56,6 @@ CheckForBase = function()
|
||||
return #baseBuildings >= 3
|
||||
end
|
||||
|
||||
initialSong = "aoi"
|
||||
PlayMusic = function()
|
||||
Media.PlayMusic(initialSong, PlayMusic)
|
||||
initialSong = nil
|
||||
end
|
||||
|
||||
WorldLoaded = function()
|
||||
player = Player.GetPlayer("GDI")
|
||||
enemy = Player.GetPlayer("Nod")
|
||||
@@ -93,8 +87,6 @@ WorldLoaded = function()
|
||||
ReinforceWithLandingCraft(MCVReinforcements, lstStart.Location + CVec.New(2, 0), lstEnd.Location + CVec.New(2, 0), mcvTarget.Location)
|
||||
Reinforce(InfantryReinforcements)
|
||||
|
||||
PlayMusic()
|
||||
|
||||
Trigger.OnIdle(Gunboat, function() SetGunboatPath(Gunboat) end)
|
||||
|
||||
SendNodPatrol()
|
||||
|
||||
@@ -428,6 +428,8 @@ Rules:
|
||||
Scripts: gdi01.lua
|
||||
ObjectivesPanel:
|
||||
PanelName: MISSION_OBJECTIVES
|
||||
MusicPlaylist:
|
||||
StartingMusic: aoi
|
||||
Player:
|
||||
-ConquestVictoryConditions:
|
||||
MissionObjectives:
|
||||
|
||||
@@ -56,18 +56,10 @@ NodAttack = function()
|
||||
end
|
||||
end
|
||||
|
||||
initialSong = "befeared"
|
||||
PlayMusic = function()
|
||||
Media.PlayMusic(initialSong, PlayMusic)
|
||||
initialSong = nil
|
||||
end
|
||||
|
||||
WorldLoaded = function()
|
||||
player = Player.GetPlayer("GDI")
|
||||
enemy = Player.GetPlayer("Nod")
|
||||
|
||||
PlayMusic()
|
||||
|
||||
Trigger.OnObjectiveAdded(player, function(p, id)
|
||||
Media.DisplayMessage(p.GetObjectiveDescription(id), "New " .. string.lower(p.GetObjectiveType(id)) .. " objective")
|
||||
end)
|
||||
|
||||
@@ -655,6 +655,8 @@ Rules:
|
||||
Scripts: gdi02.lua
|
||||
ObjectivesPanel:
|
||||
PanelName: MISSION_OBJECTIVES
|
||||
MusicPlaylist:
|
||||
StartingMusic: befeared
|
||||
Player:
|
||||
-ConquestVictoryConditions:
|
||||
MissionObjectives:
|
||||
|
||||
@@ -45,18 +45,10 @@ SendReinforcements = function()
|
||||
Media.PlaySpeechNotification(player, "Reinforce")
|
||||
end
|
||||
|
||||
initialSong = "crep226m"
|
||||
PlayMusic = function()
|
||||
Media.PlayMusic(initialSong, PlayMusic)
|
||||
initialSong = nil
|
||||
end
|
||||
|
||||
WorldLoaded = function()
|
||||
player = Player.GetPlayer("GDI")
|
||||
enemy = Player.GetPlayer("Nod")
|
||||
|
||||
PlayMusic()
|
||||
|
||||
Trigger.OnObjectiveAdded(player, function(p, id)
|
||||
Media.DisplayMessage(p.GetObjectiveDescription(id), "New " .. string.lower(p.GetObjectiveType(id)) .. " objective")
|
||||
end)
|
||||
|
||||
@@ -730,6 +730,8 @@ Rules:
|
||||
Scripts: gdi03.lua
|
||||
ObjectivesPanel:
|
||||
PanelName: MISSION_OBJECTIVES
|
||||
MusicPlaylist:
|
||||
StartingMusic: crep226m
|
||||
Player:
|
||||
-ConquestVictoryConditions:
|
||||
MissionObjectives:
|
||||
|
||||
@@ -103,20 +103,12 @@ SetupWorld = function()
|
||||
Trigger.OnRemovedFromWorld(crate, function() gdi.MarkCompletedObjective(gdiObjective) end)
|
||||
end
|
||||
|
||||
initialSong = "fist226m"
|
||||
PlayMusic = function()
|
||||
Media.PlayMusic(initialSong, PlayMusic)
|
||||
initialSong = nil
|
||||
end
|
||||
|
||||
WorldLoaded = function()
|
||||
gdi = Player.GetPlayer("GDI")
|
||||
nod = Player.GetPlayer("Nod")
|
||||
|
||||
SetupWorld()
|
||||
|
||||
PlayMusic()
|
||||
|
||||
Trigger.OnObjectiveAdded(gdi, function(p, id)
|
||||
Media.DisplayMessage(p.GetObjectiveDescription(id), "New " .. string.lower(p.GetObjectiveType(id)) .. " objective")
|
||||
end)
|
||||
|
||||
@@ -489,6 +489,8 @@ Rules:
|
||||
Scripts: gdi04a.lua
|
||||
ObjectivesPanel:
|
||||
PanelName: MISSION_OBJECTIVES
|
||||
MusicPlaylist:
|
||||
StartingMusic: fist226m
|
||||
Player:
|
||||
-ConquestVictoryConditions:
|
||||
MissionObjectives:
|
||||
|
||||
@@ -110,12 +110,6 @@ SetupWorld = function()
|
||||
Trigger.OnRemovedFromWorld(crate, function() gdi.MarkCompletedObjective(gdiObjective) end)
|
||||
end
|
||||
|
||||
initialSong = "fist226m"
|
||||
PlayMusic = function()
|
||||
Media.PlayMusic(initialSong, PlayMusic)
|
||||
initialSong = nil
|
||||
end
|
||||
|
||||
WorldLoaded = function()
|
||||
gdi = Player.GetPlayer("GDI")
|
||||
nod = Player.GetPlayer("Nod")
|
||||
@@ -144,8 +138,6 @@ WorldLoaded = function()
|
||||
|
||||
SetupWorld()
|
||||
|
||||
PlayMusic()
|
||||
|
||||
bhndTrigger = false
|
||||
Trigger.OnExitedFootprint(BhndTrigger, function(a, id)
|
||||
if not bhndTrigger and a.Owner == gdi then
|
||||
|
||||
@@ -560,6 +560,8 @@ Rules:
|
||||
Scripts: gdi04b.lua
|
||||
ObjectivesPanel:
|
||||
PanelName: MISSION_OBJECTIVES
|
||||
MusicPlaylist:
|
||||
StartingMusic: fist226m
|
||||
Player:
|
||||
-ConquestVictoryConditions:
|
||||
MissionObjectives:
|
||||
|
||||
@@ -61,18 +61,10 @@ SendGDIReinforcements = function()
|
||||
end)
|
||||
end
|
||||
|
||||
initialSong = "ind"
|
||||
PlayMusic = function()
|
||||
Media.PlayMusic(initialSong, PlayMusic)
|
||||
initialSong = nil
|
||||
end
|
||||
|
||||
WorldLoaded = function()
|
||||
player = Player.GetPlayer("GDI")
|
||||
nod = Player.GetPlayer("Nod")
|
||||
|
||||
PlayMusic()
|
||||
|
||||
Trigger.OnObjectiveAdded(player, function(p, id)
|
||||
Media.DisplayMessage(p.GetObjectiveDescription(id), "New " .. string.lower(p.GetObjectiveType(id)) .. " objective")
|
||||
end)
|
||||
|
||||
@@ -785,6 +785,8 @@ Rules:
|
||||
Scripts: gdi04c.lua
|
||||
ObjectivesPanel:
|
||||
PanelName: MISSION_OBJECTIVES
|
||||
MusicPlaylist:
|
||||
StartingMusic: ind
|
||||
Player:
|
||||
-ConquestVictoryConditions:
|
||||
MissionObjectives:
|
||||
|
||||
@@ -183,12 +183,6 @@ SetupWorld = function()
|
||||
Grd3Action()
|
||||
end
|
||||
|
||||
initialSong = "rain"
|
||||
PlayMusic = function()
|
||||
Media.PlayMusic(initialSong, PlayMusic)
|
||||
initialSong = nil
|
||||
end
|
||||
|
||||
WorldLoaded = function()
|
||||
gdiBase = Player.GetPlayer("AbandonedBase")
|
||||
gdi = Player.GetPlayer("GDI")
|
||||
@@ -219,9 +213,6 @@ WorldLoaded = function()
|
||||
SetupWorld()
|
||||
|
||||
Camera.Position = GdiTankRallyPoint.CenterPosition
|
||||
|
||||
PlayMusic()
|
||||
|
||||
end
|
||||
|
||||
Tick = function()
|
||||
|
||||
@@ -797,6 +797,8 @@ Rules:
|
||||
Scripts: gdi05a.lua
|
||||
ObjectivesPanel:
|
||||
PanelName: MISSION_OBJECTIVES
|
||||
MusicPlaylist:
|
||||
StartingMusic: rain
|
||||
Player:
|
||||
-ConquestVictoryConditions:
|
||||
MissionObjectives:
|
||||
|
||||
@@ -118,12 +118,6 @@ IdleHunt = function(unit)
|
||||
end
|
||||
end
|
||||
|
||||
initialSong = "rain"
|
||||
PlayMusic = function()
|
||||
Media.PlayMusic(initialSong, PlayMusic)
|
||||
initialSong = nil
|
||||
end
|
||||
|
||||
WorldLoaded = function()
|
||||
gdi = Player.GetPlayer("GDI")
|
||||
gdiBase = Player.GetPlayer("AbandonedBase")
|
||||
@@ -185,8 +179,6 @@ WorldLoaded = function()
|
||||
end)
|
||||
|
||||
Camera.Position = UnitsRally.CenterPosition
|
||||
|
||||
PlayMusic()
|
||||
|
||||
InsertGdiUnits()
|
||||
end
|
||||
|
||||
@@ -639,6 +639,8 @@ Rules:
|
||||
MissionObjectives:
|
||||
EarlyGameOver: true
|
||||
EnemyWatcher:
|
||||
MusicPlaylist:
|
||||
StartingMusic: rain
|
||||
World:
|
||||
-CrateSpawner:
|
||||
-SpawnMPUnits:
|
||||
|
||||
@@ -289,6 +289,8 @@ Rules:
|
||||
Scripts: nod01.lua
|
||||
ObjectivesPanel:
|
||||
PanelName: MISSION_OBJECTIVES
|
||||
MusicPlaylist:
|
||||
StartingMusic: nomercy
|
||||
C10:
|
||||
Tooltip:
|
||||
Name: Nikoomba
|
||||
|
||||
@@ -31,12 +31,6 @@ SendLastInfantryReinforcements = function()
|
||||
end)
|
||||
end
|
||||
|
||||
initialSong = "nomercy"
|
||||
PlayMusic = function()
|
||||
Media.PlayMusic(initialSong, PlayMusic)
|
||||
initialSong = nil
|
||||
end
|
||||
|
||||
WorldLoaded = function()
|
||||
nod = Player.GetPlayer("Nod")
|
||||
gdi = Player.GetPlayer("GDI")
|
||||
@@ -74,8 +68,6 @@ WorldLoaded = function()
|
||||
|
||||
Camera.Position = StartRallyPoint.CenterPosition
|
||||
|
||||
PlayMusic()
|
||||
|
||||
SendInitialForces()
|
||||
Trigger.AfterDelay(DateTime.Seconds(30), SendFirstInfantryReinforcements)
|
||||
Trigger.AfterDelay(DateTime.Seconds(60), SendSecondInfantryReinforcements)
|
||||
|
||||
@@ -226,6 +226,8 @@ Rules:
|
||||
PanelName: MISSION_OBJECTIVES
|
||||
LuaScript:
|
||||
Scripts: nod02a.lua
|
||||
MusicPlaylist:
|
||||
StartingMusic: ind2
|
||||
^Vehicle:
|
||||
Tooltip:
|
||||
GenericVisibility: Enemy
|
||||
|
||||
@@ -159,12 +159,6 @@ Pat1Movement = function(unit)
|
||||
IdleHunt(unit)
|
||||
end
|
||||
|
||||
initialSong = "ind2"
|
||||
PlayMusic = function()
|
||||
Media.PlayMusic(initialSong, PlayMusic)
|
||||
initialSong = nil
|
||||
end
|
||||
|
||||
WorldLoaded = function()
|
||||
GDI = Player.GetPlayer("GDI")
|
||||
Nod = Player.GetPlayer("Nod")
|
||||
@@ -222,8 +216,6 @@ WorldLoaded = function()
|
||||
end
|
||||
end)
|
||||
|
||||
PlayMusic()
|
||||
|
||||
Trigger.AfterDelay(0, getStartUnits)
|
||||
InsertNodUnits()
|
||||
end
|
||||
|
||||
@@ -268,6 +268,8 @@ Rules:
|
||||
PanelName: MISSION_OBJECTIVES
|
||||
LuaScript:
|
||||
Scripts: nod02b.lua
|
||||
MusicPlaylist:
|
||||
StartingMusic: ind2
|
||||
^Vehicle:
|
||||
Tooltip:
|
||||
GenericVisibility: Enemy
|
||||
|
||||
@@ -96,12 +96,6 @@ Gdi3Movement = function(unit)
|
||||
IdleHunt(unit)
|
||||
end
|
||||
|
||||
initialSong = "ind2"
|
||||
PlayMusic = function()
|
||||
Media.PlayMusic(initialSong, PlayMusic)
|
||||
initialSong = nil
|
||||
end
|
||||
|
||||
WorldLoaded = function()
|
||||
GDI = Player.GetPlayer("GDI")
|
||||
Nod = Player.GetPlayer("Nod")
|
||||
@@ -141,8 +135,6 @@ WorldLoaded = function()
|
||||
Trigger.AfterDelay(0, getStartUnits)
|
||||
Harvester.FindResources()
|
||||
|
||||
PlayMusic()
|
||||
|
||||
InsertNodUnits()
|
||||
end
|
||||
|
||||
|
||||
@@ -467,6 +467,8 @@ Rules:
|
||||
Scripts: nod03a.lua
|
||||
ObjectivesPanel:
|
||||
PanelName: MISSION_OBJECTIVES
|
||||
MusicPlaylist:
|
||||
StartingMusic: chrg226m
|
||||
^Vehicle:
|
||||
Tooltip:
|
||||
GenericVisibility: Enemy
|
||||
|
||||
@@ -16,12 +16,6 @@ InsertNodUnits = function()
|
||||
end)
|
||||
end
|
||||
|
||||
initialSong = "chrg226m"
|
||||
PlayMusic = function()
|
||||
Media.PlayMusic(initialSong, PlayMusic)
|
||||
initialSong = nil
|
||||
end
|
||||
|
||||
WorldLoaded = function()
|
||||
player = Player.GetPlayer("Nod")
|
||||
enemy = Player.GetPlayer("GDI")
|
||||
@@ -58,8 +52,6 @@ WorldLoaded = function()
|
||||
player.MarkFailedObjective(nodObjective1)
|
||||
end)
|
||||
|
||||
PlayMusic()
|
||||
|
||||
InsertNodUnits()
|
||||
Trigger.AfterDelay(DateTime.Seconds(20), function() SendAttackWave(FirstAttackWave, AttackWaveSpawnA.Location) end)
|
||||
Trigger.AfterDelay(DateTime.Seconds(50), function() SendAttackWave(SecondThirdAttackWave, AttackWaveSpawnB.Location) end)
|
||||
|
||||
@@ -511,6 +511,8 @@ Rules:
|
||||
Scripts: nod03b.lua
|
||||
ObjectivesPanel:
|
||||
PanelName: MISSION_OBJECTIVES
|
||||
MusicPlaylist:
|
||||
StartingMusic: chrg226m
|
||||
^Vehicle:
|
||||
Tooltip:
|
||||
GenericVisibility: Enemy
|
||||
|
||||
@@ -33,12 +33,6 @@ InsertNodUnits = function()
|
||||
end)
|
||||
end
|
||||
|
||||
initialSong = "chrg226m"
|
||||
PlayMusic = function()
|
||||
Media.PlayMusic(initialSong, PlayMusic)
|
||||
initialSong = nil
|
||||
end
|
||||
|
||||
WorldLoaded = function()
|
||||
player = Player.GetPlayer("Nod")
|
||||
enemy = Player.GetPlayer("GDI")
|
||||
@@ -72,8 +66,6 @@ WorldLoaded = function()
|
||||
end)
|
||||
end)
|
||||
|
||||
PlayMusic()
|
||||
|
||||
InsertNodUnits()
|
||||
Trigger.AfterDelay(DateTime.Seconds(40), function() SendAttackWave(FirstAttackWaveUnits, FirstAttackWave) end)
|
||||
Trigger.AfterDelay(DateTime.Seconds(80), function() SendAttackWave(SecondAttackWaveUnits, SecondAttackWave) end)
|
||||
|
||||
@@ -568,6 +568,8 @@ Rules:
|
||||
Scripts: nod04a.lua
|
||||
ObjectivesPanel:
|
||||
PanelName: MISSION_OBJECTIVES
|
||||
MusicPlaylist:
|
||||
StartingMusic: valkyrie
|
||||
^Vehicle:
|
||||
Tooltip:
|
||||
GenericVisibility: Enemy
|
||||
|
||||
@@ -171,12 +171,6 @@ CreateCivilians = function(actor, discoverer)
|
||||
end)
|
||||
end
|
||||
|
||||
initialSong = "valkyrie"
|
||||
PlayMusic = function()
|
||||
Media.PlayMusic(initialSong, PlayMusic)
|
||||
initialSong = nil
|
||||
end
|
||||
|
||||
WorldLoaded = function()
|
||||
NodSupporter = Player.GetPlayer("NodSupporter")
|
||||
Nod = Player.GetPlayer("Nod")
|
||||
@@ -290,8 +284,6 @@ WorldLoaded = function()
|
||||
GDIObjective = GDI.AddPrimaryObjective("Eliminate all Nod forces in the area.")
|
||||
NodObjective1 = Nod.AddPrimaryObjective("Kill all civilian GDI supporters.")
|
||||
|
||||
PlayMusic()
|
||||
|
||||
InsertNodUnits()
|
||||
Camera.Position = waypoint6.CenterPosition
|
||||
end
|
||||
|
||||
@@ -507,6 +507,8 @@ Rules:
|
||||
PanelName: MISSION_OBJECTIVES
|
||||
LuaScript:
|
||||
Scripts: nod04b.lua
|
||||
MusicPlaylist:
|
||||
StartingMusic: warfare
|
||||
^Vehicle:
|
||||
Tooltip:
|
||||
GenericVisibility: Enemy
|
||||
|
||||
@@ -74,12 +74,6 @@ InsertNodUnits = function()
|
||||
Reinforcements.ReinforceWithTransport(Nod, 'tran', NodUnitsGunner, { EntryPointGunner.Location, RallyPointGunner.Location }, { EntryPointGunner.Location }, nil, nil)
|
||||
end
|
||||
|
||||
initialSong = "warfare"
|
||||
PlayMusic = function()
|
||||
Media.PlayMusic(initialSong, PlayMusic)
|
||||
initialSong = nil
|
||||
end
|
||||
|
||||
WorldLoaded = function()
|
||||
GDI = Player.GetPlayer("GDI")
|
||||
Nod = Player.GetPlayer("Nod")
|
||||
@@ -147,8 +141,6 @@ WorldLoaded = function()
|
||||
NodObjective1 = Nod.AddPrimaryObjective("Destroy the village and kill all civilians.")
|
||||
NodObjective2 = Nod.AddSecondaryObjective("Kill all GDI units in the area.")
|
||||
|
||||
PlayMusic()
|
||||
|
||||
InsertNodUnits()
|
||||
end
|
||||
|
||||
|
||||
@@ -402,6 +402,8 @@ Rules:
|
||||
PanelName: MISSION_OBJECTIVES
|
||||
LuaScript:
|
||||
Scripts: nod05.lua
|
||||
MusicPlaylist:
|
||||
StartingMusic: airstrik
|
||||
^Vehicle:
|
||||
Tooltip:
|
||||
GenericVisibility: Enemy
|
||||
|
||||
@@ -163,12 +163,6 @@ InsertNodUnits = function()
|
||||
end)
|
||||
end
|
||||
|
||||
initialSong = "airstrik"
|
||||
PlayMusic = function()
|
||||
Media.PlayMusic(initialSong, PlayMusic)
|
||||
initialSong = nil
|
||||
end
|
||||
|
||||
WorldLoaded = function()
|
||||
GDI = Player.GetPlayer("GDI")
|
||||
Nod = Player.GetPlayer("Nod")
|
||||
@@ -247,9 +241,6 @@ WorldLoaded = function()
|
||||
end)
|
||||
|
||||
Trigger.AfterDelay(0, getStartUnits)
|
||||
|
||||
PlayMusic()
|
||||
|
||||
end
|
||||
|
||||
Tick = function()
|
||||
|
||||
@@ -675,6 +675,8 @@ Rules:
|
||||
PanelName: MISSION_OBJECTIVES
|
||||
LuaScript:
|
||||
Scripts: nod06a.lua
|
||||
MusicPlaylist:
|
||||
StartingMusic: rout
|
||||
^Vehicle:
|
||||
Tooltip:
|
||||
GenericVisibility: Enemy
|
||||
|
||||
@@ -118,12 +118,6 @@ InsertNodUnits = function()
|
||||
Reinforcements.Reinforce(Nod, NodStartUnitsRight, { UnitsEntryRight.Location, UnitsRallyRight.Location }, 15)
|
||||
end
|
||||
|
||||
initialSong = "rout"
|
||||
PlayMusic = function()
|
||||
Media.PlayMusic(initialSong, PlayMusic)
|
||||
initialSong = nil
|
||||
end
|
||||
|
||||
WorldLoaded = function()
|
||||
GDI = Player.GetPlayer("GDI")
|
||||
Nod = Player.GetPlayer("Nod")
|
||||
@@ -153,8 +147,6 @@ WorldLoaded = function()
|
||||
|
||||
GDIObjective = GDI.AddPrimaryObjective("Stop the Nod taskforce from escaping with the detonator.")
|
||||
|
||||
PlayMusic()
|
||||
|
||||
InsertNodUnits()
|
||||
|
||||
Trigger.AfterDelay(Grd1TriggerFunctionTime, Grd1TriggerFunction)
|
||||
|
||||
@@ -617,6 +617,8 @@ Rules:
|
||||
PanelName: MISSION_OBJECTIVES
|
||||
LuaScript:
|
||||
Scripts: nod06b.lua
|
||||
MusicPlaylist:
|
||||
StartingMusic: rout
|
||||
^Vehicle:
|
||||
Tooltip:
|
||||
GenericVisibility: Enemy
|
||||
|
||||
@@ -94,12 +94,6 @@ InsertNodUnits = function()
|
||||
Reinforcements.Reinforce(Nod, NodUnitsRocket, { UnitsEntryRocket.Location, UnitsRallyRocket.Location }, 25)
|
||||
end
|
||||
|
||||
initialSong = "rout"
|
||||
PlayMusic = function()
|
||||
Media.PlayMusic(initialSong, PlayMusic)
|
||||
initialSong = nil
|
||||
end
|
||||
|
||||
WorldLoaded = function()
|
||||
GDI = Player.GetPlayer("GDI")
|
||||
Nod = Player.GetPlayer("Nod")
|
||||
@@ -127,8 +121,6 @@ WorldLoaded = function()
|
||||
NodObjective1 = Nod.AddPrimaryObjective("Steal the GDI nuclear detonator.")
|
||||
GDIObjective = GDI.AddPrimaryObjective("Stop the Nod taskforce from escaping with the detonator.")
|
||||
|
||||
PlayMusic()
|
||||
|
||||
InsertNodUnits()
|
||||
|
||||
Trigger.OnEnteredFootprint(HuntCellTriggerActivator, function(a, id)
|
||||
|
||||
@@ -503,6 +503,8 @@ Rules:
|
||||
PanelName: MISSION_OBJECTIVES
|
||||
LuaScript:
|
||||
Scripts: nod06c.lua
|
||||
MusicPlaylist:
|
||||
StartingMusic: rout
|
||||
^Vehicle:
|
||||
Tooltip:
|
||||
GenericVisibility: Enemy
|
||||
|
||||
@@ -82,12 +82,6 @@ InsertNodUnits = function()
|
||||
Reinforcements.Reinforce(Nod, NodStartUnitsRight, { UnitsEntryRight.Location, UnitsRallyRight.Location }, 15)
|
||||
end
|
||||
|
||||
initialSong = "rout"
|
||||
PlayMusic = function()
|
||||
Media.PlayMusic(initialSong, PlayMusic)
|
||||
initialSong = nil
|
||||
end
|
||||
|
||||
WorldLoaded = function()
|
||||
GDI = Player.GetPlayer("GDI")
|
||||
Nod = Player.GetPlayer("Nod")
|
||||
@@ -116,8 +110,6 @@ WorldLoaded = function()
|
||||
NodObjective3 = Nod.AddSecondaryObjective("Infiltrate the barracks, weapon factory and \nthe construction yard.")
|
||||
GDIObjective = GDI.AddPrimaryObjective("Stop the Nod taskforce from escaping with the detonator.")
|
||||
|
||||
PlayMusic()
|
||||
|
||||
InsertNodUnits()
|
||||
|
||||
Trigger.AfterDelay(Atk1TriggerFunctionTime, Atk1TriggerFunction)
|
||||
|
||||
@@ -994,6 +994,9 @@ Rules:
|
||||
Effect: Desaturated
|
||||
LuaScript:
|
||||
Scripts: shellmap.lua
|
||||
MusicPlaylist:
|
||||
StartingMusic: map1
|
||||
LoopStartingMusic: True
|
||||
LST:
|
||||
Mobile:
|
||||
Speed: 42
|
||||
|
||||
@@ -17,7 +17,6 @@ WorldLoaded = function()
|
||||
for i, unit in ipairs(units) do
|
||||
LoopTrack(unit, CPos.New(8, unit.Location.Y), CPos.New(87, unit.Location.Y))
|
||||
end
|
||||
PlayMusic()
|
||||
end
|
||||
|
||||
LoopTrack = function(actor, left, right)
|
||||
@@ -26,10 +25,6 @@ LoopTrack = function(actor, left, right)
|
||||
actor.CallFunc(function() LoopTrack(actor, left, right) end)
|
||||
end
|
||||
|
||||
PlayMusic = function()
|
||||
Media.PlayMusic("map1", PlayMusic)
|
||||
end
|
||||
|
||||
LoadTransport = function(transport, passenger)
|
||||
transport.LoadPassenger(Actor.Create(passenger, false, { Owner = transport.Owner, Facing = transport.Facing }))
|
||||
end
|
||||
@@ -3,6 +3,7 @@
|
||||
Inherits: ^Palettes
|
||||
ScreenMap:
|
||||
ActorMap:
|
||||
MusicPlaylist:
|
||||
TerrainGeometryOverlay:
|
||||
ShroudRenderer:
|
||||
ShroudVariants: typea, typeb, typec, typed
|
||||
|
||||
@@ -125,6 +125,8 @@ Rules:
|
||||
Maximum: 1
|
||||
LuaScript:
|
||||
Scripts: shellmap.lua
|
||||
MusicPlaylist:
|
||||
StartingMusic: score
|
||||
rockettower:
|
||||
Power:
|
||||
Amount: 100
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
WorldLoaded = function()
|
||||
Media.PlayMusic("score")
|
||||
end
|
||||
@@ -3,6 +3,7 @@
|
||||
AlwaysVisible:
|
||||
ScreenMap:
|
||||
ActorMap:
|
||||
MusicPlaylist:
|
||||
TerrainGeometryOverlay:
|
||||
ShroudRenderer:
|
||||
ShroudVariants: typea, typeb, typec, typed
|
||||
|
||||
@@ -246,13 +246,6 @@ Background@SETTINGS_PANEL:
|
||||
Width: PARENT_RIGHT - 10
|
||||
Height: PARENT_BOTTOM
|
||||
Children:
|
||||
Checkbox@SHELLMAP_MUSIC:
|
||||
X: 15
|
||||
Y: 40
|
||||
Width: 200
|
||||
Height: 20
|
||||
Font: Regular
|
||||
Text: Shellmap / Mission Music
|
||||
Label@SOUND_LABEL:
|
||||
X: PARENT_RIGHT - WIDTH - 270
|
||||
Y: 37
|
||||
@@ -268,7 +261,7 @@ Background@SETTINGS_PANEL:
|
||||
Ticks: 5
|
||||
Checkbox@CASH_TICKS:
|
||||
X: 15
|
||||
Y: 70
|
||||
Y: 40
|
||||
Width: 200
|
||||
Height: 20
|
||||
Font: Regular
|
||||
|
||||
@@ -162,6 +162,4 @@ WorldLoaded = function()
|
||||
SendSovietUnits(Entry5.Location, UnitTypes, 50)
|
||||
SendSovietUnits(Entry6.Location, UnitTypes, 50)
|
||||
SendSovietUnits(Entry7.Location, BeachUnitTypes, 15)
|
||||
|
||||
Media.PlayMusic()
|
||||
end
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
AlwaysVisible:
|
||||
ActorMap:
|
||||
ScreenMap:
|
||||
MusicPlaylist:
|
||||
TerrainGeometryOverlay:
|
||||
LoadWidgetAtGameStart:
|
||||
ShroudRenderer:
|
||||
|
||||
@@ -40,8 +40,9 @@ Rules:
|
||||
-StartGameNotification:
|
||||
-SpawnMPUnits:
|
||||
-MPStartLocations:
|
||||
LuaScript:
|
||||
Scripts: shellmap.lua
|
||||
MusicPlaylist:
|
||||
StartingMusic: intro
|
||||
LoopStartingMusic: True
|
||||
|
||||
Sequences:
|
||||
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
PlayMusic = function()
|
||||
Media.PlayMusic("intro", PlayMusic)
|
||||
end
|
||||
|
||||
WorldLoaded = function()
|
||||
PlayMusic()
|
||||
end
|
||||
@@ -3,6 +3,7 @@
|
||||
AlwaysVisible:
|
||||
ScreenMap:
|
||||
ActorMap:
|
||||
MusicPlaylist:
|
||||
LoadWidgetAtGameStart:
|
||||
ShroudRenderer:
|
||||
Index: 255, 16, 32, 48, 64, 80, 96, 112, 128, 144, 160, 176, 192, 208, 224, 240, 20, 40, 56, 65, 97, 130, 148, 194, 24, 33, 66, 132, 28, 41, 67, 134, 1, 2, 4, 8, 3, 6, 12, 9, 7, 14, 13, 11, 5, 10, 15, 255
|
||||
|
||||
Reference in New Issue
Block a user