Explosive Barrel

Ask questions, discuss ideas, get answers
freddy
Posts: 1267
Joined: Sun Oct 18, 2009 4:58 pm

Post by freddy »

you need to add the addArmorEffects in your mod to
User avatar
Apache Thunder
Posts: 1210
Joined: Mon Oct 19, 2009 2:48 am
Location: Levelland Texas, USA
Contact:

Re: Explosive Barrel

Post by Apache Thunder »

Your timeToLiveAfterDeath is too short. Try making it at least 0.5. A value of 1 is recommended. You can use a lod system with a invisible wreck mesh so you don't endup seeing two barrels at the time of destruction. ;)

Too short timeToLiveAfterDeath settings usually result in death effects not working completely or not work at all. This also makes it not work as well in multiplayer as well. ;)
ImageImageImage
I have cameras in your head!
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: Explosive Barrel

Post by Swaffy »

I found out what I need. The TimeToLiveAfterDeath is fine, as it's directly copied from your barrel.

ObjectTemplate.addArmorEffect 0 e_ExplGas_tank 0/0/0
ObjectTemplate.addArmorEffect 0 e_BF2Barrel_w 0/2/0
ObjectTemplate.addArmorEffect 0 e_scrapmetal 0/0/0
ObjectTemplate.addArmorEffect 0 e_scrapmetalsmoke 0/0/0

None of these effects work, as they haven't been added to my mod yet.
It will take me some time to find all of the files, but I'm on the right track.

- - - - - - - - - - - - - - - - - - -

I also need these materials:

ObjectTemplate.explosionMaterial 205
ObjectTemplate.Material 45

Where can I find these materials? I could not find them in your "damage_system" folder.
Also, what does "ObjectTemplate.explosionMaterial" and "ObjectTemplate.Material" do?
Last edited by Swaffy on Sun Jan 09, 2011 2:19 am, edited 1 time in total.
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
User avatar
Apache Thunder
Posts: 1210
Joined: Mon Oct 19, 2009 2:48 am
Location: Levelland Texas, USA
Contact:

Re: Explosive Barrel

Post by Apache Thunder »

Material 45 is a vanilla material and I think 205 might be the vanilla Exppack explosion material, so you won't need to port anything from the damage system.
ImageImageImage
I have cameras in your head!
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: Explosive Barrel

Post by Swaffy »

Thank you, sir.
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: Explosive Barrel

Post by Swaffy »

Alright! The barrels are finished. Everything works as planned. [Thank God.]

All I have left to do is edit the fire and smoke, then a couple of sounds.

This is another finished project for Swaffy.
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
GoodDayToDie!!
Posts: 221
Joined: Mon Dec 13, 2010 7:59 am
Location: Bat Country, California
Contact:

Re: Explosive Barrel

Post by GoodDayToDie!! »

Hey Swaffy,

Can I use your map to copy over the exploding barrel?
Would you be so kind as to link the map to me?

Cheers,
Image
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: Explosive Barrel

Post by Swaffy »

It's part of my mod, not a map. They are on a few maps, if you can find them. I went a little overboard on King Of The Island lol.
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
Post Reply