Rockets: nothing happens on impact (sometimes)
Posted: Sat Feb 09, 2013 6:13 am
Sometimes, my rockets (the projectile I use for my Mi24D and AH-6 helicopters) don't explode or do damage when they hit their target. What could be causing this issue? I checked the FireArms to see if it's a networkInfo problem, but they have the correct networkInfo. Could it be "setHasPointPhysics 0"?
Weapons.con
Physics.con
Could it be that the engine doesn't have a networkInfo? I might not even be on the right track... 
Weapons.con
Code: Select all
ObjectTemplate.create Projectile RPS2
ObjectTemplate.geometry projectile_m1
ObjectTemplate.timeToLive CRD_NONE/8/0/0
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.setHasPointPhysics 0
ObjectTemplate.drag 1
ObjectTemplate.mass 5
ObjectTemplate.startEffectTemplate e_HydraSmoke
ObjectTemplate.hasCollisionEffect 1
ObjectTemplate.hasOnTimeEffect 0
ObjectTemplate.invisibleAtEndEffect 0
ObjectTemplate.dieAfterColl 1
ObjectTemplate.stopAtEndEffect 0
ObjectTemplate.invisible 0
ObjectTemplate.damageType 1
ObjectTemplate.material 226
ObjectTemplate.material2 200
ObjectTemplate.radius 8
ObjectTemplate.ProximityFusePrimer 0.25
ObjectTemplate.explodeNearEnemyDistance 8
ObjectTemplate.ForceOnExplosion 1
ObjectTemplate.gravityModifier 0
ObjectTemplate.addTemplate KatyushaRocket_Wing
ObjectTemplate.setPosition 0/0/-1.5
ObjectTemplate.setRotation 0/0/0
ObjectTemplate.addTemplate RPS2_RocketEngine
ObjectTemplate.setPosition 0/0/-2
ObjectTemplate.setRotation 0/0/0
Code: Select all
ObjectTemplate.create Engine RPS2_RocketEngine
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.setMinRotation 0/0/0
ObjectTemplate.setMaxRotation 0/0/5000
ObjectTemplate.setMaxSpeed 0/0/100000
ObjectTemplate.setAcceleration 0/0/100000
ObjectTemplate.setInputToRoll c_PIThrottle
ObjectTemplate.setEngineType c_ETRocket
ObjectTemplate.setTorque 150.0
ObjectTemplate.setNoPropellerEffectAtSpeed 1000
ObjectTemplate.setDifferential 90.0
rem *** Rocket engine sound ***
rem ObjectTemplate.loadSoundScript Sounds/AT2_rkt.ssc
ObjectTemplate.loadSoundScript ..\..\..\common\Sounds\bazookaprojectile.ssc
