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