[SSM] Coral sea with 2 carriers full version and more

Lots of cool and useful tips to mod either serverside or clientside

Coral sea with 2 carriers full version and more

Postby Pigauchiu » Sat Apr 14, 2012 12:49 pm

origin:http://www.bfmods.com/viewtopic.php?f=43&t=27
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

*added the spwan point manager fixes, thx freddy for the explanation. 8-)

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, :lol: so normally this spawn point doesn't work. You may add this spawn point once, if you want and wont mind modifying objects.rfa, by changing the 1 to 0 in objects.rfa. and dont forget the hornet in coral sea.

lastly I have a question: what do that spawn point manager fixes in the original post do? my codes (seems) work well without them.
Last edited by Pigauchiu on Sat Dec 08, 2012 12:49 pm, edited 2 times in total.
Pigauchiu
 
Posts: 31
Joined: Fri Mar 30, 2012 1:00 pm

Re: Coral sea with 2 carriers full version and more

Postby freddy » Sat Apr 14, 2012 10:29 pm

Pigauchiu wrote:lastly I have a question: what do that spawn point manager fixes in the original post do? my codes (seems) work well without them.


in coral sea the tickets starts to count down as soon as you sunk a carrier, that is du to this line
Code: Select all
spawnPointManager.groupEnableToChangeTeam 0

if its not set to 0 for all spawn groups (example spawnPointManager.group 67) the tickets wount count down until all of the soldiers in that team are dead
User avatar
freddy
 
Posts: 1242
Joined: Sun Oct 18, 2009 4:58 pm


Return to General Modding Tutorials

Who is online

Users browsing this forum: No registered users and 4 guests