function ScriptPostLoad()
AddDeathRegion("death")
AddDeathRegion("death1")
AddDeathRegion("death2")
AddDeathRegion("death3")
AddDeathRegion("death4")
SetProperty ("LibCase1","MaxHealth",1000)
SetProperty ("LibCase2","MaxHealth",1000)
SetProperty ("LibCase3","MaxHealth",1000)
SetProperty ("LibCase4","MaxHealth",1000)
SetProperty ("LibCase5","MaxHealth",1000)
SetProperty ("LibCase6","MaxHealth",1000)
SetProperty ("LibCase7","MaxHealth",1000)
SetProperty ("LibCase8","MaxHealth",1000)
SetProperty ("LibCase9","MaxHealth",1000)
SetProperty ("LibCase10","MaxHealth",1000)
SetProperty ("LibCase11","MaxHealth",1000)
SetProperty ("LibCase12","MaxHealth",1000)
SetProperty ("LibCase13","MaxHealth",1000)
SetProperty ("LibCase14","MaxHealth",1000)
SetProperty ("LibCase1","CurHealth",1000)
SetProperty ("LibCase2","CurHealth",1000)
SetProperty ("LibCase3","CurHealth",1000)
SetProperty ("LibCase4","CurHealth",1000)
SetProperty ("LibCase5","CurHealth",1000)
SetProperty ("LibCase6","CurHealth",1000)
SetProperty ("LibCase7","CurHealth",1000)
SetProperty ("LibCase8","CurHealth",1000)
SetProperty ("LibCase9","CurHealth",1000)
SetProperty ("LibCase10","CurHealth",1000)
SetProperty ("LibCase11","CurHealth",1000)
SetProperty ("LibCase12","CurHealth",1000)
SetProperty ("LibCase13","CurHealth",1000)
SetProperty ("LibCase14","CurHealth",1000)
EnableSPHeroRules()
DisableBarriers("SideDoor1")
DisableBarriers("MainLibraryDoors")
DisableBarriers("SideDoor2")
DisableBarriers("SIdeDoor3")
DisableBarriers("ComputerRoomDoor1")
DisableBarriers("StarChamberDoor1")
DisableBarriers("StarChamberDoor2")
DisableBarriers("WarRoomDoor1")
DisableBarriers("WarRoomDoor2")
DisableBarriers("WarRoomDoor3")
PlayAnimation("DoorOpen01")
PlayAnimation("DoorOpen02")
--fc game mode selection start -v
--fc game mode selection start -v
--fc game mode selection start -v
--tell v1.3 to expect custom FC commands
SupportsCustomFCCommands = true
--make sure we don't wipe out someone else's custom commands
local moreCommands = nil
if AddFCCommands ~= nil then
moreCommands = AddFCCommands
end
--v1.3 will automatically call this for you at the proper times
AddFCCommands = function()
--Add your custom commands here using ff_AddCommand() as show below
--CONQUEST -V
--CONQUEST -V
--CONQUEST -V
ff_AddCommand(
"Play Regular Conquest", --name of the command, should be unique
nil, --command description. If nil, defaults to mods.fakeconsole.description.<name without spaces> (example: mods.fakeconsole.description.MyEnemyAITeleport)
function() --this function does whatever it is you want your command to do
--This defines the CPs. These need to happen first
cp1 = CommandPost:New{name = "cp1"}
cp2 = CommandPost:New{name = "cp2"}
cp3 = CommandPost:New{name = "cp3"}
cp4 = CommandPost:New{name = "cp4"}
cp5 = CommandPost:New{name = "cp5"}
cp6 = CommandPost:New{name = "cp6"}
--This sets up the actual objective. This needs to happen after cp's are defined
conquest = ObjectiveConquest:New{teamATT = ATT, teamDEF = DEF,
textATT = "game.modes.con",
textDEF = "game.modes.con2",
multiplayerRules = true}
--This adds the CPs to the objective. This needs to happen after the objective is set up
conquest:AddCommandPost(cp1)
conquest:AddCommandPost(cp2)
conquest:AddCommandPost(cp3)
conquest:AddCommandPost(cp4)
conquest:AddCommandPost(cp5)
conquest:AddCommandPost(cp6)
conquest:Start()
end
) --end of ff_AddCommand's parameters
--CONQUEST -^
--CONQUEST -^
--CONQUEST -^
--Conquer REPATT-v
--Conquer REPATT-v
--Conquer REPATT-v
ff_AddCommand(
"Play Conquer the CIS", --name of the command, should be unique
nil, --command description. If nil, defaults to mods.fakeconsole.description.<name without spaces> (example: mods.fakeconsole.description.MyEnemyAITeleport)
function() --this function does whatever it is you want your command to do
--This defines the CPs. These need to happen first
cp1 = CommandPost:New{name = "cp1"}
cp2 = CommandPost:New{name = "cp2"}
cp3 = CommandPost:New{name = "cp3"}
cp4 = CommandPost:New{name = "cp4"}
cp5 = CommandPost:New{name = "cp5"}
cp6 = CommandPost:New{name = "cp6"}
--This sets up the actual objective. This needs to happen after cp's are defined
conquest = ObjectiveConquest:New{teamATT = ATT, teamDEF = DEF,
textATT = "game.modes.con",
textDEF = "game.modes.con2",
multiplayerRules = true}
--This adds the CPs to the objective. This needs to happen after the objective is set up
conquest:AddCommandPost(cp1)
conquest:AddCommandPost(cp2)
conquest:AddCommandPost(cp3)
conquest:AddCommandPost(cp4)
conquest:AddCommandPost(cp5)
conquest:AddCommandPost(cp6)
SetProperty ("cp1", "Team", 2)
SetProperty ("cp2", "Team", 1)
SetProperty ("cp3", "Team", 2)
SetProperty ("cp4", "Team", 2)
SetProperty ("cp5", "Team", 2)
SetProperty ("cp6", "Team", 2)
SetProperty ("cp2", "CaptureRegion", "")
--SetProperty ("cp2", "GeometryName", "com_dyn_scp_locked")
OnFinishCapture(
function(post, holding)
if GetCommandPostTeam("cp1") == 1 then
SetProperty ("cp1", "CaptureRegion", "")
SetProperty ("cp1", "GeometryName", "com_dyn_scp_locked")
end
end
)
OnFinishCapture(
function(post, holding)
if GetCommandPostTeam("cp3") == 1 then
SetProperty ("cp3", "CaptureRegion", "")
SetProperty ("cp3", "GeometryName", "com_dyn_scp_locked")
end
end
)
OnFinishCapture(
function(post, holding)
if GetCommandPostTeam("cp4") == 1 then
SetProperty ("cp4", "CaptureRegion", "")
SetProperty ("cp4", "GeometryName", "com_dyn_scp_locked")
end
end
)
OnFinishCapture(
function(post, holding)
if GetCommandPostTeam("cp5") == 1 then
SetProperty ("cp5", "CaptureRegion", "")
SetProperty ("cp5", "GeometryName", "com_dyn_scp_locked")
end
end
)
OnFinishCapture(
function(post, holding)
if GetCommandPostTeam("cp6") == 1 then
SetProperty ("cp6", "CaptureRegion", "")
SetProperty ("cp6", "GeometryName", "com_dyn_scp_locked")
end
end
)
conquest:Start()
end
) --end of ff_AddCommand's parameters
--Conquer REPATT-^
--Conquer REPATT-^
--Conquer REPATT-^
--Conquer CISATT-v
--Conquer CISATT-v
--Conquer CISATT-v
ff_AddCommand(
"Play Conquer the Republic", --name of the command, should be unique
nil, --command description. If nil, defaults to mods.fakeconsole.description.<name without spaces> (example: mods.fakeconsole.description.MyEnemyAITeleport)
function() --this function does whatever it is you want your command to do
--This defines the CPs. These need to happen first
cp1 = CommandPost:New{name = "cp1"}
cp2 = CommandPost:New{name = "cp2"}
cp3 = CommandPost:New{name = "cp3"}
cp4 = CommandPost:New{name = "cp4"}
cp5 = CommandPost:New{name = "cp5"}
cp6 = CommandPost:New{name = "cp6"}
--This sets up the actual objective. This needs to happen after cp's are defined
conquest = ObjectiveConquest:New{teamATT = ATT, teamDEF = DEF,
textATT = "game.modes.conq",
textDEF = "game.modes.conq",
multiplayerRules = true}
--This adds the CPs to the objective. This needs to happen after the objective is set up
conquest:AddCommandPost(cp1)
conquest:AddCommandPost(cp2)
conquest:AddCommandPost(cp3)
conquest:AddCommandPost(cp4)
conquest:AddCommandPost(cp5)
conquest:AddCommandPost(cp6)
SetProperty ("cp1", "Team", 1)
SetProperty ("cp2", "Team", 2)
SetProperty ("cp3", "Team", 1)
SetProperty ("cp4", "Team", 1)
SetProperty ("cp5", "Team", 1)
SetProperty ("cp6", "Team", 1)
SetProperty ("cp2", "CaptureRegion", "")
SetProperty ("cp2", "GeometryName", "com_dyn_scp_locked")
OnFinishCapture(
function(post, holding)
if GetCommandPostTeam("cp1") == 2 then
SetProperty ("cp1", "CaptureRegion", "")
SetProperty ("cp1", "GeometryName", "com_dyn_scp_locked")
end
end
)
OnFinishCapture(
function(post, holding)
if GetCommandPostTeam("cp3") == 2 then
SetProperty ("cp3", "CaptureRegion", "")
SetProperty ("cp3", "GeometryName", "com_dyn_scp_locked")
end
end
)
OnFinishCapture(
function(post, holding)
if GetCommandPostTeam("cp4") == 2 then
SetProperty ("cp4", "CaptureRegion", "")
SetProperty ("cp4", "GeometryName", "com_dyn_scp_locked")
end
end
)
OnFinishCapture(
function(post, holding)
if GetCommandPostTeam("cp5") == 2 then
SetProperty ("cp5", "CaptureRegion", "")
SetProperty ("cp5", "GeometryName", "com_dyn_scp_locked")
end
end
)
OnFinishCapture(
function(post, holding)
if GetCommandPostTeam("cp6") == 2 then
SetProperty ("cp6", "CaptureRegion", "")
SetProperty ("cp6", "GeometryName", "com_dyn_scp_locked")
end
end
)
conquest:Start()
end
) --end of ff_AddCommand's parameters
--Conquer CISATT-^
--Conquer CISATT-^
--Conquer CISATT-^
--process someone else's custom FC commands
if moreCommands ~= nil then
return moreCommands()
end
end
--fc game mode selection start -^
--fc game mode selection start -^
--fc game mode selection start -^
end