Re: Damage System
Posted: Sat Jan 23, 2010 4:39 pm
I had a look at projectile codes and it appears the Minigun_Projectile is coded like a HandFireArm projectile and that was the bugger
Compare:
Compare:
I added this to your code and it workedrem *** UH1_GunProjectile ***
ObjectTemplate.create Projectile UH1_GunProjectile
ObjectTemplate.createNotInGrid 1<<This one i'm not sure it has something to do with the problem but who knows?
ObjectTemplate.loadSoundScript Sounds/Projectile.ssc
ObjectTemplate.hasPointPhysics 1<<Must be this one missing then
ObjectTemplate.timeToLive CRD_NONE/1.5/0/0
ObjectTemplate.gravityModifier 0
ObjectTemplate.damageType 0
ObjectTemplate.material 213
ObjectTemplate.material2 -1
ObjectTemplate.stopAtEndEffect 1
ObjectTemplate.hasCollisionEffect 1
rem *** Minigun_Projectile ***
ObjectTemplate.create Projectile Minigun_Projectile
ObjectTemplate.geometry bullet_m1
ObjectTemplate.timeToLive CRD_NONE/3/0/0
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.gravityModifier 0.0
ObjectTemplate.hasCollisionEffect 1
ObjectTemplate.hasOnTimeEffect 0
ObjectTemplate.invisibleAtEndEffect 1
ObjectTemplate.dieAfterColl 1
ObjectTemplate.stopAtEndEffect 1
ObjectTemplate.invisible 1
ObjectTemplate.material 224
ObjectTemplate.loadSoundScript ..\..\Common\Sounds/Projectile.ssc
ObjectTemplate.active Minigun_Projectile
ObjectTemplate.createNotInGrid 1
ObjectTemplate.hasPointPhysics 1
ObjectTemplate.damageType 1
ObjectTemplate.material 518
ObjectTemplate.material2 518
ObjectTemplate.radius 30
ObjectTemplate.ForceOnExplosion 60
ObjectTemplate.YModOnExplosion 2