Merge pull request #7072 from obrakmann/fmv-overhaul

Move FMV playback from Lua scripts to widgets
This commit is contained in:
Paul Chote
2014-12-19 17:43:07 +13:00
32 changed files with 342 additions and 227 deletions

View File

@@ -83,26 +83,18 @@ WorldLoaded = function()
Trigger.OnPlayerWon(player, function()
Media.PlaySpeechNotification(player, "Win")
Trigger.AfterDelay(25, function()
Media.PlayMovieFullscreen("consyard.vqa")
end)
end)
Trigger.OnPlayerLost(player, function()
Media.PlaySpeechNotification(player, "Lose")
Trigger.AfterDelay(25, function()
Media.PlayMovieFullscreen("gameover.vqa")
end)
end)
Media.PlayMovieFullscreen("landing.vqa", function()
nodObjective = enemy.AddPrimaryObjective("Destroy all GDI troops")
gdiObjective1 = player.AddPrimaryObjective("Eliminate all Nod forces in the area")
gdiObjective2 = player.AddSecondaryObjective("Establish a beachhead")
ReinforceWithLandingCraft(MCVReinforcements, lstStart.Location + CVec.New(2, 0), lstEnd.Location + CVec.New(2, 0), mcvTarget.Location)
Reinforce(InfantryReinforcements)
end)
nodObjective = enemy.AddPrimaryObjective("Destroy all GDI troops")
gdiObjective1 = player.AddPrimaryObjective("Eliminate all Nod forces in the area")
gdiObjective2 = player.AddSecondaryObjective("Establish a beachhead")
ReinforceWithLandingCraft(MCVReinforcements, lstStart.Location + CVec.New(2, 0), lstEnd.Location + CVec.New(2, 0), mcvTarget.Location)
Reinforce(InfantryReinforcements)
Trigger.OnIdle(Gunboat, function() SetGunboatPath(Gunboat) end)

View File

@@ -10,8 +10,6 @@ Description: Use the units provided to protect the Mobile Construction Vehicle.
Author: Westwood Studios
PreviewVideo: gdi1.vqa
Tileset: TEMPERAT
MapSize: 64,64
@@ -22,6 +20,12 @@ UseAsShellmap: False
Type: Campaign
Videos:
Briefing: gdi1.vqa
GameStart: landing.vqa
GameWon: consyard.vqa
GameLost: gameover.vqa
Options:
ShortGame: False
Crates: False

View File

@@ -72,16 +72,10 @@ WorldLoaded = function()
Trigger.OnPlayerWon(player, function()
Media.PlaySpeechNotification(player, "Win")
Trigger.AfterDelay(DateTime.Seconds(1), function()
Media.PlayMovieFullscreen("flag.vqa")
end)
end)
Trigger.OnPlayerLost(player, function()
Media.PlaySpeechNotification(player, "Lose")
Trigger.AfterDelay(DateTime.Seconds(1), function()
Media.PlayMovieFullscreen("gameover.vqa")
end)
end)
nodObjective = enemy.AddPrimaryObjective("Destroy all GDI troops")

View File

@@ -10,8 +10,6 @@ Description: Defend your position, deploy the MCV, then build a sizable force to
Author: Westwood Studios
PreviewVideo: gdi2.vqa
Tileset: TEMPERAT
MapSize: 64,64
@@ -22,6 +20,11 @@ UseAsShellmap: False
Type: Campaign
Videos:
Briefing: gdi2.vqa
GameWon: flag.vqa
GameLost: gameover.vqa
Options:
ShortGame: False
Crates: False

View File

@@ -59,24 +59,16 @@ WorldLoaded = function()
Media.DisplayMessage(p.GetObjectiveDescription(id), "Objective failed")
end)
Media.PlayMovieFullscreen("samdie.vqa", function()
nodObjective = enemy.AddPrimaryObjective("Destroy all GDI troops")
gdiMainObjective = player.AddPrimaryObjective("Eliminate all Nod forces in the area")
gdiAirSupportObjective = player.AddSecondaryObjective("Destroy the SAM sites to receive air support")
end)
nodObjective = enemy.AddPrimaryObjective("Destroy all GDI troops")
gdiMainObjective = player.AddPrimaryObjective("Eliminate all Nod forces in the area")
gdiAirSupportObjective = player.AddSecondaryObjective("Destroy the SAM sites to receive air support")
Trigger.OnPlayerLost(player, function()
Media.PlaySpeechNotification(player, "Lose")
Trigger.AfterDelay(DateTime.Seconds(1), function()
Media.PlayMovieFullscreen("gameover.vqa")
end)
end)
Trigger.OnPlayerWon(player, function()
Media.PlaySpeechNotification(player, "Win")
Trigger.AfterDelay(DateTime.Seconds(1), function()
Media.PlayMovieFullscreen("bombaway.vqa")
end)
end)
Trigger.OnAllKilled(SamSites, function()

View File

@@ -10,8 +10,6 @@ Description: Build up forces to destroy Nod base.\n\nOnce all Nod SAM sites are
Author: Westwood Studios
PreviewVideo: gdi3.vqa
Tileset: TEMPERAT
MapSize: 64,64
@@ -22,6 +20,12 @@ UseAsShellmap: False
Type: Campaign
Videos:
Briefing: gdi3.vqa
GameStart: samdie.vqa
GameWon: bombaway.vqa
GameLost: gameover.vqa
Options:
ShortGame: False
Crates: False

View File

@@ -121,26 +121,16 @@ WorldLoaded = function()
Trigger.OnPlayerWon(gdi, function()
Media.PlaySpeechNotification(gdi, "Win")
Trigger.AfterDelay(DateTime.Seconds(1), function()
Media.PlayMovieFullscreen("burdet1.vqa")
end)
end)
Trigger.OnPlayerLost(gdi, function()
Media.PlaySpeechNotification(gdi, "Lose")
Trigger.AfterDelay(DateTime.Seconds(1), function()
Media.PlayMovieFullscreen("gameover.vqa")
end)
end)
Media.PlayMovieFullscreen("bkground.vqa", function()
Media.PlayMovieFullscreen("nitejump.vqa", function()
gdiObjective = gdi.AddPrimaryObjective("Retrieve the crate with the stolen rods.")
reinforcementsObjective = gdi.AddSecondaryObjective("Eliminate " .. KillsUntilReinforcements .. " Nod units for reinforcements.")
nod.AddPrimaryObjective("Defend against the GDI forces.")
end)
end)
gdiObjective = gdi.AddPrimaryObjective("Retrieve the crate with the stolen rods.")
reinforcementsObjective = gdi.AddSecondaryObjective("Eliminate " .. KillsUntilReinforcements .. " Nod units for reinforcements.")
nod.AddPrimaryObjective("Defend against the GDI forces.")
BuildNod1()
Utils.Do(NodHelis, function(heli)

View File

@@ -10,8 +10,6 @@ Description: Nod has captured classified GDI property.\n\nYou must find and retr
Author: Westwood Studios
PreviewVideo: gdi4b.vqa
Tileset: TEMPERAT
MapSize: 64,64
@@ -22,6 +20,13 @@ UseAsShellmap: False
Type: Campaign
Videos:
BackgroundInfo: bkground.vqa
Briefing: gdi4b.vqa
GameStart: nitejump.vqa
GameWon: burdet1.vqa
GameLost: gameover.vqa
Options:
ShortGame: False
Cheats: False

View File

@@ -126,25 +126,15 @@ WorldLoaded = function()
Trigger.OnPlayerWon(gdi, function()
Media.PlaySpeechNotification(gdi, "Win")
Trigger.AfterDelay(DateTime.Seconds(1), function()
Media.PlayMovieFullscreen("burdet1.vqa")
end)
end)
Trigger.OnPlayerLost(gdi, function()
Media.PlaySpeechNotification(gdi, "Lose")
Trigger.AfterDelay(DateTime.Seconds(1), function()
Media.PlayMovieFullscreen("gameover.vqa")
end)
end)
Media.PlayMovieFullscreen("bkground.vqa", function()
Media.PlayMovieFullscreen("nitejump.vqa", function()
gdiObjective = gdi.AddPrimaryObjective("Retrieve the crate with the stolen rods.")
reinforcementsObjective = gdi.AddSecondaryObjective("Eliminate " .. KillsUntilReinforcements .. " Nod units for reinforcements.")
nod.AddPrimaryObjective("Defend against the GDI forces.")
end)
end)
gdiObjective = gdi.AddPrimaryObjective("Retrieve the crate with the stolen rods.")
reinforcementsObjective = gdi.AddSecondaryObjective("Eliminate " .. KillsUntilReinforcements .. " Nod units for reinforcements.")
nod.AddPrimaryObjective("Defend against the GDI forces.")
SetupWorld()

View File

@@ -10,8 +10,6 @@ Description: Nod has captured classified GDI property.\n\nYou must find and retr
Author: Westwood Studios
PreviewVideo: gdi4b.vqa
Tileset: TEMPERAT
MapSize: 64,64
@@ -22,6 +20,13 @@ UseAsShellmap: False
Type: Campaign
Videos:
BackgroundInfo: bkground.vqa
Briefing: gdi4b.vqa
GameStart: nitejump.vqa
GameWon: burdet1.vqa
GameLost: gameover.vqa
Options:
ShortGame: False
Crates: False

View File

@@ -81,25 +81,15 @@ WorldLoaded = function()
Trigger.OnPlayerWon(player, function()
Media.PlaySpeechNotification(player, "Win")
Trigger.AfterDelay(DateTime.Seconds(1), function()
Media.PlayMovieFullscreen("burdet1.vqa")
end)
end)
Trigger.OnPlayerLost(player, function()
Media.PlaySpeechNotification(player, "Lose")
Trigger.AfterDelay(DateTime.Seconds(1), function()
Media.PlayMovieFullscreen("gameover.vqa")
end)
end)
Media.PlayMovieFullscreen("bkground.vqa", function()
Media.PlayMovieFullscreen("nodsweep.vqa", function()
nodObjective = nod.AddPrimaryObjective("Destroy all GDI troops")
gdiObjective1 = player.AddPrimaryObjective("Defend the town of Bialystok")
gdiObjective2 = player.AddPrimaryObjective("Eliminate all Nod forces in the area")
end)
end)
nodObjective = nod.AddPrimaryObjective("Destroy all GDI troops")
gdiObjective1 = player.AddPrimaryObjective("Defend the town of Bialystok")
gdiObjective2 = player.AddPrimaryObjective("Eliminate all Nod forces in the area")
townAttackTrigger = false
Trigger.OnExitedFootprint(TownAttackTrigger, function(a, id)

View File

@@ -10,8 +10,6 @@ Description: Nod is moving to capture and hold a civilian town.\n\nYour mission
Author: Westwood Studios
PreviewVideo: gdi4a.vqa
Tileset: TEMPERAT
MapSize: 64,64
@@ -22,6 +20,13 @@ UseAsShellmap: False
Type: Campaign
Videos:
BackgroundInfo: bkground.vqa
Briefing: gdi4a.vqa
GameStart: nodsweep.vqa
GameWon: burdet1.vqa
GameLost: gameover.vqa
Options:
ShortGame: False
Crates: False

View File

@@ -10,8 +10,6 @@ Description: In order for the Brotherhood to gain a foothold, we must begin by e
Author: Westwood Studios
PreviewVideo: nod1.vqa
Tileset: DESERT
MapSize: 64,64
@@ -22,6 +20,10 @@ UseAsShellmap: False
Type: Campaign
Videos:
Briefing: nod1.vqa
GameLost: nodlose.vqa
Options:
ShortGame: False
Crates: False

View File

@@ -52,9 +52,6 @@ WorldLoaded = function()
Trigger.OnPlayerLost(nod, function()
Media.PlaySpeechNotification(nod, "Lose")
Trigger.AfterDelay(DateTime.Seconds(1), function()
Media.PlayMovieFullscreen("nodlose.vqa")
end)
end)
NodObjective1 = nod.AddPrimaryObjective("Kill Nikoomba")

View File

@@ -22,6 +22,12 @@ UseAsShellmap: False
Type: Campaign
Videos:
Briefing: nod3.vqa
GameStart: dessweep.vqa
GameWon: desflees.vqa
GameLost: flag.vqa
Options:
ShortGame: False
Crates: False

View File

@@ -31,23 +31,15 @@ WorldLoaded = function()
Trigger.OnPlayerWon(player, function()
Media.PlaySpeechNotification(player, "Win")
Trigger.AfterDelay(DateTime.Seconds(1), function()
Media.PlayMovieFullscreen("desflees.vqa")
end)
end)
Trigger.OnPlayerLost(player, function()
Media.PlaySpeechNotification(player, "Lose")
Trigger.AfterDelay(DateTime.Seconds(1), function()
Media.PlayMovieFullscreen("flag.vqa")
end)
end)
Media.PlayMovieFullscreen("dessweep.vqa", function()
gdiObjective = enemy.AddPrimaryObjective("Eliminate all Nod forces in the area")
nodObjective1 = player.AddPrimaryObjective("Capture the prison")
nodObjective2 = player.AddSecondaryObjective("Destroy all GDI forces")
end)
gdiObjective = enemy.AddPrimaryObjective("Eliminate all Nod forces in the area")
nodObjective1 = player.AddPrimaryObjective("Capture the prison")
nodObjective2 = player.AddSecondaryObjective("Destroy all GDI forces")
Trigger.OnCapture(TechCenter, function()
Trigger.AfterDelay(DateTime.Seconds(2), function()

View File

@@ -22,6 +22,12 @@ UseAsShellmap: False
Type: Campaign
Videos:
Briefing: nod3.vqa
GameStart: dessweep.vqa
GameWon: desflees.vqa
GameLost: flag.vqa
Options:
ShortGame: False
Crates: False

View File

@@ -47,23 +47,15 @@ WorldLoaded = function()
Trigger.OnPlayerWon(player, function()
Media.PlaySpeechNotification(player, "Win")
Trigger.AfterDelay(DateTime.Seconds(1), function()
Media.PlayMovieFullscreen("desflees.vqa")
end)
end)
Trigger.OnPlayerLost(player, function()
Media.PlaySpeechNotification(player, "Lose")
Trigger.AfterDelay(DateTime.Seconds(1), function()
Media.PlayMovieFullscreen("flag.vqa")
end)
end)
Media.PlayMovieFullscreen("dessweep.vqa", function()
gdiObjective = enemy.AddPrimaryObjective("Eliminate all Nod forces in the area")
nodObjective1 = player.AddPrimaryObjective("Capture the prison")
nodObjective2 = player.AddSecondaryObjective("Destroy all GDI forces")
end)
gdiObjective = enemy.AddPrimaryObjective("Eliminate all Nod forces in the area")
nodObjective1 = player.AddPrimaryObjective("Capture the prison")
nodObjective2 = player.AddSecondaryObjective("Destroy all GDI forces")
Trigger.OnKilled(TechCenter, function() player.MarkFailedObjective(nodObjective1) end)
Trigger.OnCapture(TechCenter, function()