Page 1 of 1

rotating paraspawn for midway seaflags

PostPosted: Fri Feb 15, 2013 7:28 pm
by freddy
Uses the submarines for rotating paradropspawns in midway.

ControlPointTemplates.con
Code: Select all
ObjectTemplate.create ControlPoint North_Midway
rem -- add this --
ObjectTemplate.objectSpawnerId 2

ObjectTemplate.create ControlPoint South_Midway
rem -- add this --
ObjectTemplate.objectSpawnerId 1

ObjectSpawns.con
Code: Select all
Object.create bunker1_M1
Object.absolutePosition 2029/1000/2006

rem --- new position and OSid on subspawners
Object.create SubmarineSpawner
rem Object.absolutePosition 3506.87/12.7078/2691.11
Object.absolutePosition 3506.87/1012.7078/2691.11
Object.rotation -135.733/-1.74174e-006/1.52588e-005
rem Object.setteam  2
Object.setOSId 1

Object.create SubmarineSpawner
rem Object.absolutePosition 897.528/12.6481/1877.26
Object.absolutePosition 897.528/1012.6481/1877.26
Object.rotation 82.4035/9.96307e-006/1.52588e-005
rem Object.setteam  1
Object.setOSId 2

ObjectSpawnTemplates.con
Code: Select all
ObjectTemplate.Active radarbun_M1
ObjectTemplate.removeTemplate 0

ObjectTemplate.Active bunker1_M1
ObjectTemplate.addTemplate radarbun_tower_M1
ObjectTemplate.setPosition -0.004/4.75/0.116

ObjectTemplate.Active radarbun_tower_M1
ObjectTemplate.setContinousRotationSpeed 35/0/0

ObjectTemplate.Active radarbun_tower_M1
ObjectTemplate.addTemplate GatoDriverSoldierSpawn
ObjectTemplate.setPosition 170/-800/0
ObjectTemplate.addTemplate Sub7CDriverSoldierSpawn
ObjectTemplate.setPosition -170/-800/0
ObjectTemplate.addTemplate GatoDriverSoldierSpawn
ObjectTemplate.setPosition 190/-800/0
ObjectTemplate.addTemplate Sub7CDriverSoldierSpawn
ObjectTemplate.setPosition -190/-800/0
ObjectTemplate.addTemplate GatoDriverSoldierSpawn
ObjectTemplate.setPosition 210/-850/100
ObjectTemplate.addTemplate Sub7CDriverSoldierSpawn
ObjectTemplate.setPosition -210/-850/100
ObjectTemplate.addTemplate GatoDriverSoldierSpawn
ObjectTemplate.setPosition 200/-850/100
ObjectTemplate.addTemplate Sub7CDriverSoldierSpawn
ObjectTemplate.setPosition -200/-850/100

ObjectTemplate.Active GatoDriverSoldierSpawn
ObjectTemplate.setSpawnAsParaTroper 1

ObjectTemplate.Active Sub7CDriverSoldierSpawn
ObjectTemplate.setSpawnAsParaTroper 1

ObjectTemplate.Active Sub7CComplex
ObjectTemplate.removeTemplate 4

ObjectTemplate.Active GatoComplex
ObjectTemplate.removeTemplate 4

ObjectTemplate.Active Sub7C
ObjectTemplate.timeToLiveAfterDeath 8
ObjectTemplate.destroyed 1

ObjectTemplate.Active Gato
ObjectTemplate.timeToLiveAfterDeath 8
ObjectTemplate.destroyed 1

rem -- version_1
rem -- opposite team gets spawn
ObjectTemplate.create ObjectSpawner SubmarineSpawner
ObjectTemplate.setObjectTemplate 2 Sub7c
ObjectTemplate.setObjectTemplate 1 Gato
ObjectTemplate.SpawnDelay 1
ObjectTemplate.SpawnDelayAtStart 0
ObjectTemplate.holdObject 1

rem -- version_2
rem -- flagcappers team gets spawn
ObjectTemplate.create ObjectSpawner SubmarineSpawner
ObjectTemplate.setObjectTemplate 2 Gato
ObjectTemplate.setObjectTemplate 1 Sub7c
ObjectTemplate.SpawnDelay 1
ObjectTemplate.SpawnDelayAtStart 0
ObjectTemplate.holdObject 1


if you want to use the subs in the map without the soldierspawns add these code lines
Code: Select all
ObjectTemplate.Active Sub7C
ObjectTemplate.disableSpawnPointsOnEnter 0

ObjectTemplate.Active Gato
ObjectTemplate.disableSpawnPointsOnEnter 0