my version adds three spawn points for each carrier.
ObjectSpawnTemplates.con:
Code: Select all
ObjectTemplate.create ObjectSpawner lighttankspawner
ObjectTemplate.setObjectTemplate 2 Gato
ObjectTemplate.setObjectTemplate 1 Sub7C
ObjectTemplate.SpawnDelay 300
ObjectTemplate.SpawnDelayAtStart 0
ObjectTemplate.TimeToLive 120
ObjectTemplate.Distance 200
ObjectTemplate.create ObjectSpawner DestroyerSpawner
ObjectTemplate.setObjectTemplate 2 fletcher
ObjectTemplate.setObjectTemplate 1 hatsuzuki
ObjectTemplate.SpawnDelay 200
ObjectTemplate.SpawnDelayAtStart 0
ObjectTemplate.TimeToLive 120
ObjectTemplate.Distance 200
ObjectTemplate.teamOnVehicle 2
beginrem
ObjectTemplate.create ObjectSpawner carrierSpawner
ObjectTemplate.setObjectTemplate 2 enterprise
ObjectTemplate.setObjectTemplate 1 shokaku
ObjectTemplate.SpawnDelay 300
ObjectTemplate.SpawnDelayAtStart 0
ObjectTemplate.TimeToLive 120
ObjectTemplate.Distance 200
ObjectTemplate.teamOnVehicle 1
endrem
ObjectTemplate.create ObjectSpawner carrierSpawner_1
ObjectTemplate.setObjectTemplate 1 Hiryu
ObjectTemplate.SpawnDelay 300
ObjectTemplate.SpawnDelayAtStart 0
ObjectTemplate.TimeToLive 120
ObjectTemplate.Distance 200
ObjectTemplate.teamOnVehicle 1
ObjectTemplate.nrOfObjectToSpawn 1
ObjectTemplate.create ObjectSpawner carrierSpawner_2
ObjectTemplate.setObjectTemplate 2 Hornet
ObjectTemplate.SpawnDelay 300
ObjectTemplate.SpawnDelayAtStart 0
ObjectTemplate.TimeToLive 120
ObjectTemplate.Distance 200
ObjectTemplate.teamOnVehicle 2
ObjectTemplate.nrOfObjectToSpawn 1
ObjectTemplate.create ObjectSpawner heavytankspawner
ObjectTemplate.setObjectTemplate 2 enterprise
ObjectTemplate.setObjectTemplate 1 shokaku
ObjectTemplate.SpawnDelay 120
ObjectTemplate.SpawnDelayAtStart 0
ObjectTemplate.TimeToLive 120
ObjectTemplate.Distance 200
ObjectTemplate.teamOnVehicle 1
ObjectTemplate.nrOfObjectToSpawn 1
ObjectTemplate.create ObjectSpawner APCSpawner
ObjectTemplate.setObjectTemplate 2 M3A1
ObjectTemplate.setObjectTemplate 1 Hanomag
ObjectTemplate.SpawnDelay 30
ObjectTemplate.SpawnDelayAtStart 0
ObjectTemplate.TimeToLive 120
ObjectTemplate.Distance 200
ObjectTemplate.create ObjectSpawner willyspawner
ObjectTemplate.setObjectTemplate 2 Willy
ObjectTemplate.setObjectTemplate 1 Kubelwagen
ObjectTemplate.SpawnDelay 20
ObjectTemplate.SpawnDelayAtStart 0
ObjectTemplate.TimeToLive 120
ObjectTemplate.Distance 200
ObjectTemplate.create ObjectSpawner ScoutCarSpawner
ObjectTemplate.setObjectTemplate 2 Willy
ObjectTemplate.setObjectTemplate 1 BlackMedal
ObjectTemplate.SpawnDelay 20
ObjectTemplate.SpawnDelayAtStart 0
ObjectTemplate.TimeToLive 120
ObjectTemplate.Distance 200
ObjectTemplate.MaxNrOfObjectSpawned 2
ObjectTemplate.create ObjectSpawner AAGunSpawner
ObjectTemplate.setObjectTemplate 2 AA_allies
ObjectTemplate.setObjectTemplate 1 flak38
ObjectTemplate.SpawnDelay 60
ObjectTemplate.SpawnDelayAtStart 0
ObjectTemplate.TimeToLive 120
ObjectTemplate.Distance 200
ObjectTemplate.create ObjectSpawner FighterSpawner
ObjectTemplate.setObjectTemplate 2 Spitfire
ObjectTemplate.setObjectTemplate 1 bf109
ObjectTemplate.SpawnDelay 60
ObjectTemplate.SpawnDelayAtStart 0
ObjectTemplate.TimeToLive 120
ObjectTemplate.Distance 200
ObjectTemplate.create ObjectSpawner LevelBomberSpawner
ObjectTemplate.setObjectTemplate 2 Mosquito
ObjectTemplate.setObjectTemplate 1 bf110
ObjectTemplate.MinSpawnDelay 40
ObjectTemplate.MaxSpawnDelay 80
ObjectTemplate.SpawnDelayAtStart 0
ObjectTemplate.TimeToLive 45
ObjectTemplate.Distance 40
ObjectTemplate.DamageWhenLost 10
ObjectTemplate.create ObjectSpawner DiveBomberSpawner
ObjectTemplate.setObjectTemplate 2 mustang
ObjectTemplate.setObjectTemplate 1 stuka
ObjectTemplate.SpawnDelay 60
ObjectTemplate.SpawnDelayAtStart 0
ObjectTemplate.TimeToLive 120
ObjectTemplate.Distance 200
ObjectTemplate.create ObjectSpawner HeavyBomberSpawner
ObjectTemplate.setObjectTemplate 2 B17
ObjectTemplate.setObjectTemplate 1 B17
ObjectTemplate.SpawnDelay 180
ObjectTemplate.SpawnDelayAtStart 0
ObjectTemplate.TimeToLive 120
ObjectTemplate.Distance 200
ObjectTemplate.create ObjectSpawner MachinegunSpawner
ObjectTemplate.setObjectTemplate 2 Stationary_browning
ObjectTemplate.setObjectTemplate 1 Stationary_mg42
ObjectTemplate.SpawnDelay 60
ObjectTemplate.SpawnDelayAtStart 0
ObjectTemplate.TimeToLive 120
ObjectTemplate.Distance 200
ObjectTemplate.create ObjectSpawner ArtillerySpawner
ObjectTemplate.setObjectTemplate 2 Priest
ObjectTemplate.setObjectTemplate 1 Wespe
ObjectTemplate.SpawnDelay 60
ObjectTemplate.SpawnDelayAtStart 0
ObjectTemplate.TimeToLive 120
ObjectTemplate.Distance 200
ObjectTemplate.create ObjectSpawner DestroyerSpawner
ObjectTemplate.setObjectTemplate 2 fletcher
ObjectTemplate.setObjectTemplate 1 hatsuzuki
ObjectTemplate.SpawnDelay 200
ObjectTemplate.SpawnDelayAtStart 0
ObjectTemplate.TimeToLive 120
ObjectTemplate.Distance 200
ObjectTemplate.teamOnVehicle 1
ObjectTemplate.create ObjectSpawner lcvpSpawner
ObjectTemplate.setObjectTemplate 2 lcvp
ObjectTemplate.setObjectTemplate 1 daihatsu
ObjectTemplate.SpawnDelay 20
ObjectTemplate.SpawnDelayAtStart 0
ObjectTemplate.TimeToLive 45
ObjectTemplate.Distance 200
ObjectTemplate.MaxNrOfObjectSpawned 2
ObjectTemplate.create ObjectSpawner DefgunSpawner
ObjectTemplate.setObjectTemplate 2 Defgun
ObjectTemplate.setObjectTemplate 1 Defgun
ObjectTemplate.SpawnDelay 180
ObjectTemplate.SpawnDelayAtStart 0
ObjectTemplate.TimeToLive 120
ObjectTemplate.Distance 200
rem Removing all the soldier spawners of the enterprise
ObjectTemplate.Active EnterpriseComplex
ObjectTemplate.removeTemplate 10
ObjectTemplate.removeTemplate 9
ObjectTemplate.removeTemplate 8
ObjectTemplate.removeTemplate 7
ObjectTemplate.removeTemplate 6
ObjectTemplate.removeTemplate 5
ObjectTemplate.removeTemplate 4
rem *** Making it immobile ***
ObjectTemplate.Active Enterprise_Engine
ObjectTemplate.setAcceleration 0/0/0
rem *** new spawn point ***
ObjectTemplate.Active Enterprise_DriverSoldierSpawn
ObjectTemplate.setEnterOnSpawn 0
rem *** Removing the spawnpoints from the Fletcher and Gato ***
ObjectTemplate.Active Fletcher
ObjectTemplate.removeTemplate 11
ObjectTemplate.removeTemplate 10
ObjectTemplate.removeTemplate 9
ObjectTemplate.Active Fletcher_Engine
ObjectTemplate.setAcceleration 0/0/0
ObjectTemplate.Active GatoComplex
ObjectTemplate.removeTemplate 4
ObjectTemplate.Active GatoEngine
ObjectTemplate.setAcceleration 0/0/0
rem *** Adding them to the Enterprise ***
ObjectTemplate.Active EnterpriseComplex
ObjectTemplate.addTemplate FletcherDriverSoldierSpawn
ObjectTemplate.setPosition 11/26/35
ObjectTemplate.addTemplate FletcherDriverSoldierSpawn
ObjectTemplate.setPosition 10/26/35
ObjectTemplate.addTemplate FletcherSoldierSpawn
ObjectTemplate.setPosition -1.5/20.4/-113.5
ObjectTemplate.addTemplate FletcherSoldierSpawn
ObjectTemplate.setPosition 3.9/20.4/-100.5
ObjectTemplate.addTemplate GatoDriverSoldierSpawn
ObjectTemplate.setPosition -13.949/12.4/-68
ObjectTemplate.addTemplate GatoDriverSoldierSpawn
ObjectTemplate.setPosition 13.95/12.4/-68
rem Same for Axis
ObjectTemplate.Active ShokakuComplex
ObjectTemplate.removeTemplate 5
ObjectTemplate.removeTemplate 4
ObjectTemplate.removeTemplate 3
ObjectTemplate.removeTemplate 2
ObjectTemplate.removeTemplate 1
ObjectTemplate.removeTemplate 0
ObjectTemplate.Active ShokakuEngine
ObjectTemplate.setAcceleration 0/0/0
rem *** Removing the spawnpoints from the Hatsuzuki and Sub7C ***
ObjectTemplate.Active Hatsuzuki
ObjectTemplate.removeTemplate 11
ObjectTemplate.removeTemplate 10
ObjectTemplate.removeTemplate 9
ObjectTemplate.Active HatsuzukiEngine
ObjectTemplate.setAcceleration 0/0/0
ObjectTemplate.Active Sub7CComplex
ObjectTemplate.removeTemplate 4
ObjectTemplate.Active Sub7C_Engine
ObjectTemplate.setAcceleration 0/0/0
rem *** Adding them to the Shokaku ***
ObjectTemplate.Active ShokakuComplex
ObjectTemplate.addTemplate HatsuzukiDriverSoldierSpawn
ObjectTemplate.setPosition 8.5/13/35
ObjectTemplate.addTemplate HatsuzukiDriverSoldierSpawn
ObjectTemplate.setPosition 8.5/13/38
ObjectTemplate.addTemplate HatsuzukiSoldierSpawn
ObjectTemplate.setPosition -6.779/13.5/-50
ObjectTemplate.addTemplate HatsuzukiSoldierSpawn
ObjectTemplate.setPosition 5.9/13.5/-33
ObjectTemplate.addTemplate Sub7CDriverSoldierSpawn
ObjectTemplate.setPosition 5.6/3.47/-122.7
ObjectTemplate.addTemplate Sub7CDriverSoldierSpawn
ObjectTemplate.setPosition -5.6/3.47/-122.7
rem *** Making the old carriers have quick respawning planes like the new ones ***
rem *** Enterprise_corsairSpawner ***
ObjectTemplate.Active Enterprise_corsairSpawner
ObjectTemplate.setObjectTemplate 1 corsair
ObjectTemplate.setObjectTemplate 2 corsair
ObjectTemplate.minSpawnDelay 10
ObjectTemplate.maxSpawnDelay 10
ObjectTemplate.TimeToLive 120
ObjectTemplate.Distance 20
ObjectTemplate.spawnOffset 0/0/0
ObjectTemplate.holdObject 1
ObjectTemplate.MaxNrOfObjectSpawned 6
rem
rem *** Enterprise_sbdSpawner ***
rem
ObjectTemplate.Active Enterprise_sbdSpawner
ObjectTemplate.setObjectTemplate 1 SBD
ObjectTemplate.setObjectTemplate 2 SBD
ObjectTemplate.minSpawnDelay 10
ObjectTemplate.maxSpawnDelay 10
ObjectTemplate.TimeToLive 120
ObjectTemplate.Distance 20
ObjectTemplate.spawnOffset 0/0/0
ObjectTemplate.holdObject 1
ObjectTemplate.MaxNrOfObjectSpawned 6
rem
rem *** ShokakuZeroSpawner ***
rem
ObjectTemplate.Active ShokakuZeroSpawner
ObjectTemplate.setObjectTemplate 1 Zero
ObjectTemplate.setObjectTemplate 2 Zero
ObjectTemplate.holdObject 1
ObjectTemplate.minSpawnDelay 10
ObjectTemplate.maxSpawnDelay 10
ObjectTemplate.TimeToLive 120
ObjectTemplate.Distance 200
ObjectTemplate.spawnOffset 0/0/0
ObjectTemplate.MaxNrOfObjectSpawned 6
rem
rem *** ShokakuAichiValSpawner ***
rem
ObjectTemplate.Active ShokakuAichiValSpawner
ObjectTemplate.setObjectTemplate 1 AichiVal
ObjectTemplate.setObjectTemplate 2 AichiVal
ObjectTemplate.holdObject 1
ObjectTemplate.minSpawnDelay 10
ObjectTemplate.maxSpawnDelay 10
ObjectTemplate.TimeToLive 120
ObjectTemplate.Distance 200
ObjectTemplate.spawnOffset 0/0/0
ObjectTemplate.MaxNrOfObjectSpawned 6
rem -------------------------------------------------------------------
rem *** Fletcher Driver ***
spawnPointManager.group 68
spawnPointManager.groupTeam 2
spawnPointManager.groupEnableToChangeTeam 0
rem *** Fletcher ***
spawnPointManager.group 69
spawnPointManager.groupTeam 2
spawnPointManager.groupEnableToChangeTeam 0
rem *** Gato ***
spawnPointManager.group 79
spawnPointManager.groupTeam 2
spawnPointManager.groupEnableToChangeTeam 0
rem -------------------------------------------------------------------
rem *** Hatsuzuki Driver ***
spawnPointManager.group 70
spawnPointManager.groupTeam 1
spawnPointManager.groupEnableToChangeTeam 0
rem *** Hatsuzuki ***
spawnPointManager.group 71
spawnPointManager.groupTeam 1
spawnPointManager.groupEnableToChangeTeam 0
rem *** Sub7C ***
spawnPointManager.group 78
spawnPointManager.groupTeam 1
spawnPointManager.groupEnableToChangeTeam 0
rem EndOfFile
![Cool 8-)](./images/smilies/icon_cool.gif)
Yes, Enterprise should have 3 spwan points too. But it seems that the argument of "ObjectTemplate.setEnterOnSpawn" under "ObjectTemplate.create SpawnPoint Enterprise_DriverSoldierSpawn" in the original Enterprise/Objects.con was mistakenly set,
![Laughing :lol:](./images/smilies/icon_lol.gif)
lastly I have a question: what do that spawn point manager fixes in the original post do? my codes (seems) work well without them.