*ssm* random vehicle/soldier spawners

Lots of cool and useful tips to mod either serverside or clientside
Post Reply
freddy
Posts: 1267
Joined: Sun Oct 18, 2009 4:58 pm

*ssm* random vehicle/soldier spawners

Post by freddy »

you will need some unused spawners for this and a wehicle not used in the map, you can vary this code to make random soldierspawns (or what ever you can think of) by changing the fighter planes to vehicles with soldierspawns on.

note: i used ObjectTemplate.criticalDamage 50 on the willy for it to destroy itself in about 10-15 minutes so it could put out a new plane, but it seems it works better to use a deathbubble for this.

if you skip the ObjectTemplate.criticalDamage 50 or deathbubbles, it will change plane spawner when the map restarts instead.

in this example the willy is spawned high up in the air with the holdobjectline, its only used as a "dummy" for the other spawners.

Code: Select all

ObjectTemplate.Active Willy
ObjectTemplate.criticalDamage 50
ObjectTemplate.hpLostWhileCriticalDamage 0.4
ObjectTemplate.addTemplate DestroyerSpawner
ObjectTemplate.setPosition 0/-1199.7/0
ObjectTemplate.setRotation -3/-13/0
ObjectTemplate.setRandomGeometries 3


ObjectTemplate.create ObjectSpawner DestroyerSpawner1
ObjectTemplate.setObjectTemplate 2 Corsair
ObjectTemplate.setSpawnPositionOffset 0/-0.4/0
ObjectTemplate.SpawnDelay 10
ObjectTemplate.SpawnDelayAtStart 0
ObjectTemplate.TimeToLive 120
ObjectTemplate.Distance 200
ObjectTemplate.DamageWhenLost 5
ObjectTemplate.team 2
ObjectTemplate.MaxNrOfObjectSpawned 4


ObjectTemplate.create ObjectSpawner DestroyerSpawner2
ObjectTemplate.setObjectTemplate 2 Spitfire
ObjectTemplate.SpawnDelay 10
ObjectTemplate.SpawnDelayAtStart 0
ObjectTemplate.TimeToLive 120
ObjectTemplate.Distance 200
ObjectTemplate.DamageWhenLost 10
ObjectTemplate.team 2
ObjectTemplate.MaxNrOfObjectSpawned 4


ObjectTemplate.create ObjectSpawner DestroyerSpawner3
ObjectTemplate.setObjectTemplate 2 Mustang
ObjectTemplate.SpawnDelay 10
ObjectTemplate.SpawnDelayAtStart 0
ObjectTemplate.TimeToLive 120
ObjectTemplate.Distance 200
ObjectTemplate.DamageWhenLost 10
ObjectTemplate.team 2
ObjectTemplate.MaxNrOfObjectSpawned 4
tested to work ssm in one map (coral sea)
freddy
Posts: 1267
Joined: Sun Oct 18, 2009 4:58 pm

Post by freddy »

Post Reply