Mortarprojectile2

Ask questions, discuss ideas, get answers
Post Reply
User avatar
BotHunter
Posts: 480
Joined: Thu Jan 10, 2013 11:22 pm
Contact:

Mortarprojectile2

Post 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?
Walk quietly and carry a sniper rifle
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: Mortarprojectile2

Post by Swaffy »

Explode like what? I'm lost.
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
User avatar
one
Posts: 50
Joined: Thu Sep 15, 2011 4:14 pm

Re: Mortarprojectile2

Post by one »

First of all, where is this mortar from? Second, what do you mean by saying "explode" - visual effect or damage?
User avatar
BotHunter
Posts: 480
Joined: Thu Jan 10, 2013 11:22 pm
Contact:

Re: Mortarprojectile2

Post 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)
Walk quietly and carry a sniper rifle
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: Mortarprojectile2

Post 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.
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
User avatar
BotHunter
Posts: 480
Joined: Thu Jan 10, 2013 11:22 pm
Contact:

Re: Mortarprojectile2

Post by BotHunter »

Thanks! What about the credits? :roll:
Walk quietly and carry a sniper rifle
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: Mortarprojectile2

Post by Swaffy »

BotHunter wrote:Thanks! What about the credits? :roll:
Same RFA file. Look for it.
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
Post Reply