Fix chat sounds overlapping with playing FMV in missions
This commit is contained in:
@@ -133,9 +133,14 @@ WorldLoaded = function()
|
||||
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.")
|
||||
|
||||
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)
|
||||
|
||||
BuildNod1()
|
||||
Utils.Do(NodHelis, function(heli)
|
||||
@@ -161,6 +166,4 @@ WorldLoaded = function()
|
||||
end)
|
||||
|
||||
Camera.Position = Actor56.CenterPosition
|
||||
|
||||
Media.PlayMovieFullscreen("bkground.vqa", function() Media.PlayMovieFullscreen("nitejump.vqa") end)
|
||||
end
|
||||
|
||||
@@ -138,9 +138,13 @@ WorldLoaded = function()
|
||||
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.")
|
||||
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)
|
||||
|
||||
SetupWorld()
|
||||
|
||||
@@ -193,6 +197,4 @@ WorldLoaded = function()
|
||||
end)
|
||||
|
||||
Camera.Position = GDIReinforcementsWP1.CenterPosition
|
||||
|
||||
Media.PlayMovieFullscreen("bkground.vqa", function() Media.PlayMovieFullscreen("nitejump.vqa") end)
|
||||
end
|
||||
|
||||
@@ -93,9 +93,13 @@ WorldLoaded = function()
|
||||
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")
|
||||
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)
|
||||
|
||||
townAttackTrigger = false
|
||||
Trigger.OnExitedFootprint(TownAttackTrigger, function(a, id)
|
||||
@@ -125,8 +129,6 @@ WorldLoaded = function()
|
||||
end)
|
||||
|
||||
Camera.Position = Actor141.CenterPosition
|
||||
|
||||
Media.PlayMovieFullscreen("bkground.vqa", function() Media.PlayMovieFullscreen("nodsweep.vqa") end)
|
||||
end
|
||||
|
||||
Tick = function()
|
||||
|
||||
@@ -43,9 +43,11 @@ WorldLoaded = function()
|
||||
end)
|
||||
end)
|
||||
|
||||
gdiObjective = enemy.AddPrimaryObjective("Eliminate all Nod forces in the area")
|
||||
nodObjective1 = player.AddPrimaryObjective("Capture the prison")
|
||||
nodObjective2 = player.AddSecondaryObjective("Destroy all GDI forces")
|
||||
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)
|
||||
|
||||
Trigger.OnCapture(TechCenter, function()
|
||||
Trigger.AfterDelay(DateTime.Seconds(2), function()
|
||||
|
||||
@@ -59,9 +59,11 @@ WorldLoaded = function()
|
||||
end)
|
||||
end)
|
||||
|
||||
gdiObjective = enemy.AddPrimaryObjective("Eliminate all Nod forces in the area")
|
||||
nodObjective1 = player.AddPrimaryObjective("Capture the prison")
|
||||
nodObjective2 = player.AddSecondaryObjective("Destroy all GDI forces")
|
||||
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)
|
||||
|
||||
Trigger.OnKilled(TechCenter, function() player.MarkFailedObjective(nodObjective1) end)
|
||||
Trigger.OnCapture(TechCenter, function()
|
||||
@@ -74,7 +76,6 @@ WorldLoaded = function()
|
||||
Trigger.AfterDelay(DateTime.Seconds(40), function() SendAttackWave(FirstAttackWaveUnits, FirstAttackWave) end)
|
||||
Trigger.AfterDelay(DateTime.Seconds(80), function() SendAttackWave(SecondAttackWaveUnits, SecondAttackWave) end)
|
||||
Trigger.AfterDelay(DateTime.Seconds(140), function() SendAttackWave(ThirdAttackWaveUnits, FirstAttackWave) end)
|
||||
|
||||
end
|
||||
|
||||
Tick = function()
|
||||
|
||||
@@ -175,11 +175,15 @@ WorldLoaded = function()
|
||||
Trigger.OnPlayerLost(player, MissionFailed)
|
||||
Trigger.OnPlayerWon(player, MissionAccomplished)
|
||||
|
||||
FindEinsteinObjective = player.AddPrimaryObjective("Find Einstein.")
|
||||
SurviveObjective = player.AddPrimaryObjective("Tanya and Einstein must survive.")
|
||||
england.AddPrimaryObjective("Destroy the soviet base after a successful rescue.")
|
||||
CivilProtectionObjective = player.AddSecondaryObjective("Protect all civilians.")
|
||||
DefendObjective = ussr.AddPrimaryObjective("Kill Tanya and keep Einstein hostage.")
|
||||
Media.PlayMovieFullscreen("landing.vqa", function()
|
||||
FindEinsteinObjective = player.AddPrimaryObjective("Find Einstein.")
|
||||
SurviveObjective = player.AddPrimaryObjective("Tanya and Einstein must survive.")
|
||||
england.AddPrimaryObjective("Destroy the soviet base after a successful rescue.")
|
||||
CivilProtectionObjective = player.AddSecondaryObjective("Protect all civilians.")
|
||||
DefendObjective = ussr.AddPrimaryObjective("Kill Tanya and keep Einstein hostage.")
|
||||
|
||||
RunInitialActivities()
|
||||
end)
|
||||
|
||||
Trigger.OnKilled(Lab, LabDestroyed)
|
||||
Trigger.OnKilled(OilPump, OilPumpDestroyed)
|
||||
@@ -193,13 +197,9 @@ WorldLoaded = function()
|
||||
civilianTeam = { Civilian1, Civilian2 }
|
||||
Trigger.OnAnyKilled(civilianTeam, CiviliansKilled)
|
||||
|
||||
RunInitialActivities()
|
||||
|
||||
SetUnitStances()
|
||||
|
||||
Trigger.AfterDelay(DateTime.Seconds(5), function() Actor.Create("camera", true, { Owner = player, Location = BaseCameraPoint.Location }) end)
|
||||
|
||||
Camera.Position = InsertionLZ.CenterPosition
|
||||
|
||||
Media.PlayMovieFullscreen("landing.vqa")
|
||||
end
|
||||
|
||||
@@ -109,9 +109,11 @@ WorldLoaded = function()
|
||||
Trigger.OnPlayerLost(player, MissionFailed)
|
||||
Trigger.OnPlayerWon(player, MissionAccomplished)
|
||||
|
||||
ConquestObjective = player.AddPrimaryObjective("Secure the area.")
|
||||
ussr.AddPrimaryObjective("Defend your base.")
|
||||
ukraine.AddPrimaryObjective("Destroy the convoy.")
|
||||
Media.PlayMovieFullscreen("mcv.vqa", function()
|
||||
ConquestObjective = player.AddPrimaryObjective("Secure the area.")
|
||||
ussr.AddPrimaryObjective("Defend your base.")
|
||||
ukraine.AddPrimaryObjective("Destroy the convoy.")
|
||||
end)
|
||||
|
||||
RunInitialActivities()
|
||||
|
||||
@@ -123,8 +125,6 @@ WorldLoaded = function()
|
||||
|
||||
Camera.Position = ReinforcementsEntryPoint.CenterPosition
|
||||
|
||||
Media.PlayMovieFullscreen("mcv.vqa")
|
||||
|
||||
ConvoyTimer(DateTime.Seconds(3), "TenMinutesRemaining")
|
||||
ConvoyTimer(DateTime.Minutes(5), "WarningFiveMinutesRemaining")
|
||||
ConvoyTimer(DateTime.Minutes(6), "WarningFourMinutesRemaining")
|
||||
|
||||
@@ -100,8 +100,6 @@ InitPlayers = function()
|
||||
ussr = Player.GetPlayer("USSR")
|
||||
|
||||
ussr.Cash = 10000
|
||||
|
||||
Media.PlayMovieFullscreen("brdgtilt.vqa")
|
||||
end
|
||||
|
||||
InitObjectives = function()
|
||||
@@ -263,8 +261,10 @@ end
|
||||
WorldLoaded = function()
|
||||
|
||||
InitPlayers()
|
||||
InitObjectives()
|
||||
InitTriggers()
|
||||
|
||||
SendAlliedUnits()
|
||||
Media.PlayMovieFullscreen("brdgtilt.vqa", function()
|
||||
InitObjectives()
|
||||
InitTriggers()
|
||||
SendAlliedUnits()
|
||||
end)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user