Shields not turning off
Posted: Thu Dec 05, 2013 11:52 pm
Hey all!
I have this problem with my shields where when you destroy the shield bubble, it remains there for a while before it disappears. What I want is when you destroy the shield bubble, it immediately disappears and then, after 30 seconds or so, it reappears. What am I doing wrong?
Here is the code:
I have this problem with my shields where when you destroy the shield bubble, it remains there for a while before it disappears. What I want is when you destroy the shield bubble, it immediately disappears and then, after 30 seconds or so, it reappears. What am I doing wrong?
Here is the code:
Code: Select all
ObjectTemplate.create Bundle US_Shield_Generator
ObjectTemplate.setHasCollisionPhysics 1
ObjectTemplate.hasDynamicShadow 1
rem objectTemplate.aiTemplate US_Shield_Generator_ai
rem -------------------------------------
ObjectTemplate.addTemplate lodUS_Shield_Generator
rem -------------------------------------
objectTemplate.loadSoundScript Sounds/windmill.ssc
LodSelectorTemplate.create DistanceSelector US_Shield_GeneratorSelector
LodSelectorTemplate.addLodDistance 200
ObjectTemplate.create LodObject lodUS_Shield_Generator
ObjectTemplate.lodselector US_Shield_GeneratorSelector
ObjectTemplate.addTemplate US_Shield_GeneratorInterior
ObjectTemplate.addTemplate US_Shield_GeneratorExterior
ObjectTemplate.addTemplate US_Shield_Generator_Bottom_rot_Shadow
ObjectTemplate.create Bundle US_Shield_GeneratorInterior
ObjectTemplate.geometry Base_m1
ObjectTemplate.addTemplate US_Shield_Generator_Bottom_rot
ObjectTemplate.setPosition 0/0/0
ObjectTemplate.addTemplate US_Shield_Generator_Top_rot
ObjectTemplate.setPosition 0/0/0
ObjectTemplate.addTemplate ShieldDomespawner
ObjectTemplate.setPosition 0/0/0
ObjectTemplate.create SimpleObject US_Shield_GeneratorExterior
ObjectTemplate.geometry US_Shield_Generator_l1
ObjectTemplate.create RotationalBundle US_Shield_Generator_Bottom_rot
ObjectTemplate.geometry Bottom_rot
ObjectTemplate.hasDynamicShadow 1
ObjectTemplate.setHasCollisionPhysics 1
ObjectTemplate.setMinRotation 0/0/0
ObjectTemplate.setMaxRotation 0/0/0
ObjectTemplate.setPivotPosition 0/0/0
ObjectTemplate.setMaxSpeed 110/0/0
ObjectTemplate.setAcceleration 10/0/0
ObjectTemplate.setContinousRotationSpeed 12/0/0
ObjectTemplate.create RotationalBundle US_Shield_Generator_Bottom_rot_Shadow
ObjectTemplate.geometry Bottom_rot
ObjectTemplate.hasDynamicShadow 1
ObjectTemplate.setHasCollisionPhysics 0
ObjectTemplate.createInvisible 1
ObjectTemplate.setMinRotation 0/0/0
ObjectTemplate.setMaxRotation 0/0/0
ObjectTemplate.setPivotPosition 0/0/0
ObjectTemplate.setMaxSpeed 110/0/0
ObjectTemplate.setAcceleration 10/0/0
ObjectTemplate.setContinousRotationSpeed 12/0/0
ObjectTemplate.create RotationalBundle US_Shield_Generator_Top_rot
ObjectTemplate.geometry Top_rot
ObjectTemplate.hasDynamicShadow 1
ObjectTemplate.setHasCollisionPhysics 1
ObjectTemplate.setMinRotation 0/0/0
ObjectTemplate.setMaxRotation 0/0/0
ObjectTemplate.setPivotPosition 0/0/0
ObjectTemplate.setMaxSpeed 110/0/0
ObjectTemplate.setAcceleration 10/0/0
ObjectTemplate.setContinousRotationSpeed -12/0/0
ObjectTemplate.create Obstacle ShieldBlock
ObjectTemplate.geometry shield_down
ObjectTemplate.setHasCollisionPhysics 1
ObjectTemplate.createInvisible 1
ObjectTemplate.loadSoundScript Sounds/Landmine.ssc
ObjectTemplate.Damage 0
rem *** ShieldDome ***
ObjectTemplate.create PlayerControlObject ShieldDome
ObjectTemplate.setNetworkableInfo Shield_Bubble_Info
ObjectTemplate.geometry None
ObjectTemplate.saveInSeparateFile 1
ObjectTemplate.cullRadiusScale 3
ObjectTemplate.addArmorEffect 321 e_White_rays_01 0/8.31/0
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 0
ObjectTemplate.speedMod 0
ObjectTemplate.hasArmor 1
ObjectTemplate.hitPoints 320
ObjectTemplate.maxHitPoints 320
ObjectTemplate.material 51
ObjectTemplate.drag 1.0
ObjectTemplate.inertiaModifier 0/0/0
ObjectTemplate.mass 20
ObjectTemplate.criticalDamage 360
ObjectTemplate.setSoldierExitLocation -2.5/0/0 0/0/0
ObjectTemplate.damageFromWater 0
ObjectTemplate.setMinimapIcon "empty.tga"
ObjectTemplate.timeToLiveAfterDeath 0
rem ----------------------------------
ObjectTemplate.addTemplate ShieldBlock
ObjectTemplate.addTemplate e_glowShield
ObjectTemplate.SetPosition 0/-4/0
rem ----------------------------------
rem *** claymorespawner2 ***
ObjectTemplate.create ObjectSpawner ShieldDomespawner
ObjectTemplate.setObjectTemplate 1 ShieldDome
ObjectTemplate.setObjectTemplate 2 ShieldDome
ObjectTemplate.minSpawnDelay 30
ObjectTemplate.maxSpawnDelay 30
ObjectTemplate.timeToLive 99999
ObjectTemplate.distance 99999
ObjectTemplate.spawnOffset 0/0/0
ObjectTemplate.team 2
ObjectTemplate.MaxNrOfObjectSpawned 1