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

@@ -21,7 +21,7 @@ Container@MISSIONBROWSER_PANEL:
X: 15
Y: 15
Width: 239
Height: 347
Height: 307
Children:
ScrollItem@HEADER:
Width: PARENT_RIGHT-27
@@ -74,6 +74,13 @@ Container@MISSIONBROWSER_PANEL:
Width: PARENT_RIGHT - 32
VAlign: Top
Font: Small
DropDownButton@DIFFICULTY_DROPDOWNBUTTON:
X: 15
Y: 337
Width: 239
Height: 25
Text: Difficulty
Font: Regular
Button@BACK_BUTTON:
Y: 376
Width: 140
@@ -81,20 +88,34 @@ Container@MISSIONBROWSER_PANEL:
Text: Back
Font: Bold
Key: escape
Button@START_VIDEO_BUTTON:
Button@START_BRIEFING_VIDEO_BUTTON:
X: PARENT_RIGHT - 290
Y: 376
Width: 140
Height: 35
Text: View Briefing
Text: Watch Briefing
Font: Bold
Button@STOP_VIDEO_BUTTON:
Button@STOP_BRIEFING_VIDEO_BUTTON:
X: PARENT_RIGHT - 290
Y: 376
Width: 140
Height: 35
Text: Stop Briefing
Font: Bold
Button@START_INFO_VIDEO_BUTTON:
X: PARENT_RIGHT - 440
Y: 376
Width: 140
Height: 35
Text: Watch Info Video
Font: Bold
Button@STOP_INFO_VIDEO_BUTTON:
X: PARENT_RIGHT - 440
Y: 376
Width: 140
Height: 35
Text: Stop Info Video
Font: Bold
Button@STARTGAME_BUTTON:
X: PARENT_RIGHT - 140
Y: 376
@@ -102,13 +123,6 @@ Container@MISSIONBROWSER_PANEL:
Height: 35
Text: Play
Font: Bold
DropDownButton@DIFFICULTY_DROPDOWNBUTTON:
X: PARENT_RIGHT - 290 - 150
Y: 376
Width: 140
Height: 35
Text: Difficulty
Font: Bold
Container@MISSION_BIN:
Children:
VqaPlayer@MISSION_VIDEO:
@@ -116,3 +130,14 @@ Container@MISSIONBROWSER_PANEL:
Y: 1
Width: 640
Height: 375
Background@FULLSCREEN_PLAYER:
Width: WINDOW_RIGHT
Height: WINDOW_BOTTOM
Background: panel-allblack
Visible: False
Children:
VqaPlayer@PLAYER:
X: 0
Y: 0
Width: WINDOW_RIGHT
Height: WINDOW_BOTTOM

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()

View File

@@ -16,7 +16,7 @@ Background@MISSIONBROWSER_PANEL:
X: 20
Y: 50
Width: 270
Height: 377
Height: 332
Children:
ScrollItem@HEADER:
BaseName: scrollheader
@@ -69,20 +69,34 @@ Background@MISSIONBROWSER_PANEL:
Width: PARENT_RIGHT - 32
VAlign: Top
Font: Small
Button@START_VIDEO_BUTTON:
Button@START_BRIEFING_VIDEO_BUTTON:
X: 20
Y: PARENT_BOTTOM - 45
Width: 120
Width: 130
Height: 25
Text: Play Briefing
Text: Watch Briefing
Font: Bold
Button@STOP_VIDEO_BUTTON:
Button@STOP_BRIEFING_VIDEO_BUTTON:
X: 20
Y: PARENT_BOTTOM - 45
Width: 120
Width: 130
Height: 25
Text: Stop Briefing
Font: Bold
Button@START_INFO_VIDEO_BUTTON:
X: 160
Y: PARENT_BOTTOM - 45
Width: 130
Height: 25
Text: Watch Info Video
Font: Bold
Button@STOP_INFO_VIDEO_BUTTON:
X: 160
Y: PARENT_BOTTOM - 45
Width: 130
Height: 25
Text: Stop Info Video
Font: Bold
Button@STARTGAME_BUTTON:
X: PARENT_RIGHT - 140 - 130
Y: PARENT_BOTTOM - 45
@@ -99,9 +113,9 @@ Background@MISSIONBROWSER_PANEL:
Font: Bold
Key: escape
DropDownButton@DIFFICULTY_DROPDOWNBUTTON:
X: PARENT_RIGHT - 140 - 130 - 150
Y: PARENT_BOTTOM - 45
Width: 140
X: 20
Y: 427 - HEIGHT
Width: 270
Height: 25
Text: Difficulty
Font: Bold
@@ -117,3 +131,14 @@ Background@MISSIONBROWSER_PANEL:
Y: 1
Width: 640
Height: 375
Background@FULLSCREEN_PLAYER:
Width: WINDOW_RIGHT
Height: WINDOW_BOTTOM
Background: dialog5
Visible: False
Children:
VqaPlayer@PLAYER:
X: 0
Y: 0
Width: WINDOW_RIGHT
Height: WINDOW_BOTTOM

View File

@@ -142,14 +142,10 @@ end
MissionAccomplished = function()
Media.PlaySpeechNotification(player, "Win")
Trigger.AfterDelay(DateTime.Seconds(1), function()
Media.PlayMovieFullscreen("snowbomb.vqa")
end)
end
MissionFailed = function()
Media.PlaySpeechNotification(player, "Lose")
Trigger.AfterDelay(DateTime.Seconds(1), function() Media.PlayMovieFullscreen("bmap.vqa") end)
end
SetUnitStances = function()
@@ -182,14 +178,12 @@ WorldLoaded = function()
Trigger.OnPlayerLost(player, MissionFailed)
Trigger.OnPlayerWon(player, MissionAccomplished)
Media.PlayMovieFullscreen("landing.vqa", function()
FindEinsteinObjective = player.AddPrimaryObjective("Find Einstein.")
TanyaSurviveObjective = player.AddPrimaryObjective("Tanya must survive.")
EinsteinSurviveObjective = player.AddPrimaryObjective("Einstein must survive.")
CivilProtectionObjective = player.AddSecondaryObjective("Protect all civilians.")
FindEinsteinObjective = player.AddPrimaryObjective("Find Einstein.")
TanyaSurviveObjective = player.AddPrimaryObjective("Tanya must survive.")
EinsteinSurviveObjective = player.AddPrimaryObjective("Einstein must survive.")
CivilProtectionObjective = player.AddSecondaryObjective("Protect all civilians.")
RunInitialActivities()
end)
RunInitialActivities()
Trigger.OnKilled(Lab, LabDestroyed)
Trigger.OnKilled(OilPump, OilPumpDestroyed)

View File

@@ -10,8 +10,6 @@ Description: Rescue Einstein from the Headquarters inside this Soviet complex.\n
Author: Westwood Studios
PreviewVideo: ally1.vqa
Tileset: SNOW
MapSize: 128,128
@@ -22,6 +20,12 @@ UseAsShellmap: False
Type: Campaign
Videos:
Briefing: ally1.vqa
GameStart: landing.vqa
GameWon: snowbomb.vqa
GameLost: bmap.vqa
Options:
Crates: False
Fog: True
@@ -586,7 +590,6 @@ Rules:
Scripts: allies01.lua
ObjectivesPanel:
PanelName: MISSION_OBJECTIVES
-StartGameNotification:
TRAN.Extraction:
Inherits: TRAN
RenderUnit:

View File

@@ -22,16 +22,10 @@ end
MissionAccomplished = function()
Media.PlaySpeechNotification(player, "Win")
Trigger.AfterDelay(DateTime.Seconds(1), function()
Media.PlayMovieFullscreen("montpass.vqa")
end)
end
MissionFailed = function()
Media.PlaySpeechNotification(player, "Lose")
Trigger.AfterDelay(DateTime.Seconds(1), function()
Media.PlayMovieFullscreen("frozen.vqa")
end)
end
Tick = function()
@@ -109,9 +103,7 @@ WorldLoaded = function()
Trigger.OnPlayerLost(player, MissionFailed)
Trigger.OnPlayerWon(player, MissionAccomplished)
Media.PlayMovieFullscreen("mcv.vqa", function()
ConquestObjective = player.AddPrimaryObjective("Secure the area.")
end)
ConquestObjective = player.AddPrimaryObjective("Secure the area.")
Trigger.AfterDelay(DateTime.Seconds(1), function() Media.PlaySpeechNotification(allies, "MissionTimerInitialised") end)

View File

@@ -10,8 +10,6 @@ Description: A critical supply convoy is due through this area in 10 minutes, bu
Author: Westwood Studios
PreviewVideo: ally2.vqa
Tileset: SNOW
MapSize: 128,128
@@ -22,6 +20,12 @@ UseAsShellmap: False
Type: Campaign
Videos:
Briefing: ally2.vqa
GameStart: mcv.vqa
GameWon: montpass.vqa
GameLost: frozen.vqa
Options:
ShortGame: False
Crates: False
@@ -882,7 +886,6 @@ Rules:
Scripts: allies02.lua
ObjectivesPanel:
PanelName: MISSION_OBJECTIVES
-StartGameNotification:
^Vehicle:
Tooltip:
GenericVisibility: Enemy

View File

@@ -114,13 +114,11 @@ InitObjectives = function()
Trigger.OnPlayerLost(player, function()
Trigger.AfterDelay(25, function()
Media.PlaySpeechNotification(player, "Lose")
Trigger.AfterDelay(DateTime.Seconds(1), function() Media.PlayMovieFullscreen("sovtstar.vqa") end)
end)
end)
Trigger.OnPlayerWon(player, function()
Trigger.AfterDelay(25, function()
Media.PlaySpeechNotification(player, "Win")
Trigger.AfterDelay(DateTime.Seconds(1), function() Media.PlayMovieFullscreen("toofar.vqa") end)
end)
end)
end
@@ -250,9 +248,7 @@ WorldLoaded = function()
InitPlayers()
Media.PlayMovieFullscreen("brdgtilt.vqa", function()
InitObjectives()
InitTriggers()
SendAlliedUnits()
end)
InitObjectives()
InitTriggers()
SendAlliedUnits()
end

View File

@@ -20,6 +20,11 @@ UseAsShellmap: False
Type: Campaign
Videos:
GameStart: brdgtilt.vqa
GameWon: toofar.vqa
GameLost: sovtstar.vqa
Options:
ShortGame: False
Crates: False
@@ -1380,7 +1385,6 @@ Rules:
Scripts: allies03a.lua
ObjectivesPanel:
PanelName: MISSION_OBJECTIVES
-StartGameNotification:
^Infantry:
Tooltip:
GenericVisibility: Enemy

View File

@@ -20,7 +20,11 @@ UseAsShellmap: False
Type: Campaign
PreviewVideo: soviet1.vqa
Videos:
Briefing: soviet1.vqa
GameStart: flare.vqa
GameWon: snstrafe.vqa
GameLost: sfrozen.vqa
Options:
ShortGame: False
@@ -783,7 +787,6 @@ Rules:
Scripts: soviet01.lua
ObjectivesPanel:
PanelName: MISSION_OBJECTIVES
-StartGameNotification:
V01:
LeavesHusk:
HuskActor: healcrate

View File

@@ -46,27 +46,16 @@ WorldLoaded = function()
Media.DisplayMessage(p.GetObjectiveDescription(id), "Objective failed")
end)
Media.PlayMovieFullscreen("flare.vqa", function()
CivilProtectionObjective = france.AddPrimaryObjective("Protect the civilians.")
VillageRaidObjective = player.AddPrimaryObjective("Raze the village.")
JeepDemolishingBridge()
Trigger.AfterDelay(DateTime.Seconds(1), function()
Media.PlaySpeechNotification(player, "StartGame")
end)
end)
CivilProtectionObjective = france.AddPrimaryObjective("Protect the civilians.")
VillageRaidObjective = player.AddPrimaryObjective("Raze the village.")
JeepDemolishingBridge()
Trigger.OnPlayerWon(player, function()
Media.PlaySpeechNotification(player, "Win")
Trigger.AfterDelay(DateTime.Seconds(1), function()
Media.PlayMovieFullscreen("snstrafe.vqa")
end)
end)
Trigger.OnPlayerLost(player, function()
Media.PlaySpeechNotification(player, "Lose")
Trigger.AfterDelay(DateTime.Seconds(1), function()
Media.PlayMovieFullscreen("sfrozen.vqa")
end)
end)
Trigger.AfterDelay(DateTime.Seconds(2), InsertYaks)