Page 1 of 1

Mortarprojectile2

Posted: Thu Apr 11, 2013 3:20 am
by BotHunter
Hello all! I was just looking at the mortar projectile and I was wondering what made it explode like it does. if you look at this, there are not even Endeffecttemplates or anything. what makes it explode like that?
Thanks! ;)

Code: Select all

rem *** MortarProjectile ***
ObjectTemplate.create Projectile mortarprojectile2
ObjectTemplate.createNotInGrid 1
rem *** tan made this ***
rem ObjectTemplate.loadSoundScript ../Vehicles/air/common/Sounds/Bomb.ssc
ObjectTemplate.loadSoundScript ../../Stationary_Weapons/common/Sounds/mortar.ssc
ObjectTemplate.geometry projectile_m1
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
ObjectTemplate.timeToLive CRD_NONE/15/0/0
ObjectTemplate.damageType 1
ObjectTemplate.material 706
ObjectTemplate.material2 705
ObjectTemplate.Radius 10
ObjectTemplate.hasCollisionEffect 1
ObjectTemplate.addTemplate e_PanzShootTrail
EDIT: Also, How do I modify in game credits?

Re: Mortarprojectile2

Posted: Thu Apr 11, 2013 6:05 am
by Swaffy
Explode like what? I'm lost.

Re: Mortarprojectile2

Posted: Thu Apr 11, 2013 6:26 am
by one
First of all, where is this mortar from? Second, what do you mean by saying "explode" - visual effect or damage?

Re: Mortarprojectile2

Posted: Thu Apr 11, 2013 3:52 pm
by BotHunter
Oops Sorry :oops: this is the mortar round from desert combat. here is a vid of a Modded Car15 using it.

https://www.youtube.com/watch?v=eXR-Owwi5PQ

see how it explodes? (The visual effect)

Re: Mortarprojectile2

Posted: Thu Apr 11, 2013 10:36 pm
by Swaffy
Look at the DamageSystem for the projectile. It'll be in "Game.rfa/Game/damage_system" and you have to find the CON file that has the two material IDs that the mortar projectile uses. If you scroll down the CON file, you'll notice that the ground materials have an effect attached to them. That's what you want.

Remember that direct hit (material) damages have an effect, and splash damage (material2) does not.

Re: Mortarprojectile2

Posted: Fri Apr 12, 2013 7:52 pm
by BotHunter
Thanks! What about the credits? :roll:

Re: Mortarprojectile2

Posted: Sat Apr 13, 2013 3:13 am
by Swaffy
BotHunter wrote:Thanks! What about the credits? :roll:
Same RFA file. Look for it.