Added soviet mission 1 script, expanded _global with more vehicle types and CreateVehicle/CreateInfrantry now support coordinate input.

This commit is contained in:
Justin Marshall
2020-07-14 15:05:25 -07:00
parent e5544d2fc2
commit 5d441ca39e
4 changed files with 74 additions and 14 deletions
+31
View File
@@ -0,0 +1,31 @@
require("_Global")
function map_briefing()
SetBriefingText("Welcome Comrade General! Here in Alaska we will be begin our glorous conquest!")
end
function map_start()
end
function map_frame()
local numTeslaTanks = 0
local numRadarDomes = 0
numRadarDomes = CountBuildings(BuildingTypes.DOME)
if numRadarDomes == 0 then
Lose(Houses.USSR)
end
if numRadarDomes == 2 then
Win(Houses.USSR)
end
numTaslaTanks = CountUnits(VehicleTypes.TESLATANK)
if numTaslaTanks == 0 then
PlaySpeech(11) -- Reinforcements have arrived
CreateVehicle(VehicleTypes.TESLATANK,Houses.USSR,5833)
CreateVehicle(VehicleTypes.TESLATANK,Houses.USSR,5577)
CreateVehicle(VehicleTypes.TESLATANK,Houses.USSR,5706)
end
end
+7 -1
View File
@@ -144,7 +144,13 @@
-- Counterstrike only:
ANT1=14, -- First ant type
ANT2=15, -- Second ant type
ANT3=16 -- Third ant type
ANT3=16, -- Third ant type
-- Aftermath
CHRONOTANK=17, -- Chrono shifting tank
TESLATANK=18, -- Tesla Tank
MAD=19,
DEMOTRUNK
}
-- *********************************************************