This page is under construction
Archives/bf1942/levels/Bombing_The_Reich-1943.rfa
bf1942/levels/Bombing_The_Reich-1943/ObjectiveMode/ObjectiveSpawnerTemplates.con

rem ======== Networkable ============================

NetworkableInfo.createNewInfo ObjectiveInfo
NetworkableInfo.setPredictionMode PMNone
NetworkableInfo.setBasePriority c_NIGhostAlways

rem ================ ObjectiveTemplates =====================
rem // Axis = 1 , Allied = 2


ObjectTemplate.create DestroyTargetObjective DestroyFactory01
ObjectTemplate.setNetworkableInfo ObjectiveInfo
ObjectTemplate.setTargetName GermanFactory01
ObjectTemplate.ObjectiveName Factory01
ObjectTemplate.setObjectiveDelay 1.0
ObjectTemplate.setTeam 2

ObjectTemplate.create DestroyTargetObjective DestroyFactory02
ObjectTemplate.setNetworkableInfo ObjectiveInfo
ObjectTemplate.setTargetName GermanFactory02
ObjectTemplate.ObjectiveName Factory02
ObjectTemplate.setObjectiveDelay 1.0
ObjectTemplate.setTeam 2

ObjectTemplate.create DestroyTargetObjective DestroyFactory03
ObjectTemplate.setNetworkableInfo ObjectiveInfo
ObjectTemplate.setTargetName GermanFactory03
ObjectTemplate.ObjectiveName Factory03
ObjectTemplate.setObjectiveDelay 1.0
ObjectTemplate.setTeam 2

ObjectTemplate.create DestroyTargetObjective DestroyFactory04
ObjectTemplate.setNetworkableInfo ObjectiveInfo
ObjectTemplate.setTargetName GermanFactory04
ObjectTemplate.ObjectiveName Factory04
ObjectTemplate.setObjectiveDelay 1.0
ObjectTemplate.setTeam 2



ObjectTemplate.create ANDCompositeObjective Composite
ObjectTemplate.setNetworkableInfo ObjectiveInfo
ObjectTemplate.addObjectiveSpawnerToComposite ObjectiveSpawner01
ObjectTemplate.addObjectiveSpawnerToComposite ObjectiveSpawner02
ObjectTemplate.addObjectiveSpawnerToComposite ObjectiveSpawner03
ObjectTemplate.addObjectiveSpawnerToComposite ObjectiveSpawner04
ObjectTemplate.setObjectiveDelay 3.0
ObjectTemplate.setTeam 2

ObjectTemplate.create TimerObjective Timer
ObjectTemplate.setNetworkableInfo ObjectiveInfo
ObjectTemplate.TimeLimit 900.0
ObjectTemplate.setObjectiveDelay 3.0
ObjectTemplate.setTeam 1
rem ============== ObjectTemplate for the objects to be destoryed ================

rem if v_arg1 == host


rem -----------------------------------------
rem --- German_Factory1Spawner ---
rem -----------------------------------------
ObjectTemplate.create ObjectSpawner German_Factory1Spawner
ObjectTemplate.setObjectTemplate 1 German_Factory1
ObjectTemplate.MinSpawnDelay 9999
ObjectTemplate.MaxSpawnDelay 9999
ObjectTemplate.SpawnDelayAtStart 0
ObjectTemplate.TimeToLive 45
ObjectTemplate.Distance 40
ObjectTemplate.DamageWhenLost 10

rem -----------------------------------------
rem --- German_Factory2Spawner ---
rem -----------------------------------------
ObjectTemplate.create ObjectSpawner German_Factory2Spawner
ObjectTemplate.setObjectTemplate 1 German_Factory2
ObjectTemplate.MinSpawnDelay 9999
ObjectTemplate.MaxSpawnDelay 9999
ObjectTemplate.SpawnDelayAtStart 0
ObjectTemplate.TimeToLive 45
ObjectTemplate.Distance 40
ObjectTemplate.DamageWhenLost 10

rem -----------------------------------------
rem --- German_Factory3Spawner ---
rem -----------------------------------------
ObjectTemplate.create ObjectSpawner German_Factory3Spawner
ObjectTemplate.setObjectTemplate 1 German_Factory3
ObjectTemplate.MinSpawnDelay 9999
ObjectTemplate.MaxSpawnDelay 9999
ObjectTemplate.SpawnDelayAtStart 0
ObjectTemplate.TimeToLive 45
ObjectTemplate.Distance 40
ObjectTemplate.DamageWhenLost 10

rem -----------------------------------------
rem --- German_Factory4Spawner ---
rem -----------------------------------------
ObjectTemplate.create ObjectSpawner German_Factory4Spawner
ObjectTemplate.setObjectTemplate 1 German_Factory4
ObjectTemplate.MinSpawnDelay 9999
ObjectTemplate.MaxSpawnDelay 9999
ObjectTemplate.SpawnDelayAtStart 0
ObjectTemplate.TimeToLive 45
ObjectTemplate.Distance 40
ObjectTemplate.DamageWhenLost 10


rem ================= OjectiveSpawnerTemplates =======================================


ObjectTemplate.create ObjectSpawner DestroyObjectiveSpawner01
ObjectTemplate.setObjectTemplate 2 DestroyFactory01
ObjectTemplate.SpawnDelayAtStart 0
ObjectTemplate.setTeam 2

ObjectTemplate.create ObjectSpawner DestroyObjectiveSpawner02
ObjectTemplate.setObjectTemplate 2 DestroyFactory02
ObjectTemplate.SpawnDelayAtStart 0
ObjectTemplate.setTeam 2

ObjectTemplate.create ObjectSpawner DestroyObjectiveSpawner03
ObjectTemplate.setObjectTemplate 2 DestroyFactory03
ObjectTemplate.SpawnDelayAtStart 0
ObjectTemplate.setTeam 2

ObjectTemplate.create ObjectSpawner DestroyObjectiveSpawner04
ObjectTemplate.setObjectTemplate 2 DestroyFactory04
ObjectTemplate.SpawnDelayAtStart 0
ObjectTemplate.setTeam 2


ObjectTemplate.create ObjectSpawner ANDCompositeObjectiveSpawner
ObjectTemplate.setObjectTemplate 2 Composite
ObjectTemplate.setTeam 2

ObjectTemplate.create ObjectSpawner TimerObjectiveSpawner
ObjectTemplate.setObjectTemplate 1 Timer
ObjectTemplate.setSpawnDelay 1
ObjectTemplate.SpawnDelayAtStart 0
ObjectTemplate.setTeam 1

rem endIf