I'm making an airstrike weapon based on the original landmine. By attaching a spawner on it, i was able to make it spawn downward pointing V2 rockets at 500 units above it. It works well. Te rocket (which is a PCO) comes crashing down and explodes. The mine disappears 5 seconds after being tossed.
The problem is that though the mine's time to live is set to CRD_NONE/5/0/0, it keeps spawning rockets even after exploding, and doesn't seem to stop. I dont know why really. It appears the mine simply vanishes but still exists somehow.
[ i tried setting the maximum number of objects to spawn to 1, but that makes the airstrike usable only once per match, as any following landmines will not spawn anything. pretty lame. ]
Here's the projectile
Code: Select all
rem *** AirstrikeDeployProjectile ***
ObjectTemplate.create Projectile AirstrikeDeployProjectile
ObjectTemplate.networkableInfo ProjectileInfo
ObjectTemplate.geometry Landmine
ObjectTemplate.hasDynamicShadow 1
ObjectTemplate.setHasMobilePhysics 1
ObjectTemplate.setHasCollisionPhysics 1
ObjectTemplate.setHasResponsePhysics 0
ObjectTemplate.setHasPointPhysics 0
ObjectTemplate.hasCollisionEffect 0
ObjectTemplate.invisibleAtEndEffect 0
ObjectTemplate.timeToLive CRD_NONE/5/0/0
ObjectTemplate.addTemplate AirstrikeSpawner
ObjectTemplate.setPosition 0/200/0
ObjectTemplate.setRotation 0/90/0
ObjectTemplate.dieAfterColl 0
rem ObjectTemplate.radius 0
rem ObjectTemplate.ForceOnExplosion 0
rem ObjectTemplate.explodeNearEnemyDistance 3
rem ObjectTemplate.hasOnTimeEffect 1
ObjectTemplate.mass 130
ObjectTemplate.material 230
ObjectTemplate.material2 232
ObjectTemplate.damageType 4
rem ObjectTemplate.endEffectTemplate e_ExplGranade
ObjectTemplate.noFFSound 1
rem ObjectTemplate.addToProjectileList 1
rem ObjectTemplate.projectileType 1
Code: Select all
rem *** AirstrikeSpawner ***
ObjectTemplate.create ObjectSpawner AirstrikeSpawner
ObjectTemplate.setObjectTemplate 1 v2
ObjectTemplate.setObjectTemplate 2 v2
ObjectTemplate.holdObject 0
ObjectTemplate.minSpawnDelay 10
ObjectTemplate.maxSpawnDelay 10
ObjectTemplate.SpawnDelayAtStart 1
ObjectTemplate.TimeToLive 9999
ObjectTemplate.Distance 9999
ObjectTemplate.spawnOffset 0/.17/0
ObjectTemplate.team 2
ObjectTemplate.MaxNrOfObjectSpawned 1
ObjectTemplate.damageWhenLost 1