[SOLVED] Explosive Barrel

Ask questions, discuss ideas, get answers

Postby freddy » Sat Jan 08, 2011 11:32 am

you need to add the addArmorEffects in your mod to
User avatar
freddy
 
Posts: 1187
Joined: Sun Oct 18, 2009 4:58 pm

Re: Explosive Barrel

Postby Apache Thunder » Sat Jan 08, 2011 11:37 pm

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
Apache Thunder
 
Posts: 1195
Joined: Mon Oct 19, 2009 2:48 am
Location: Levelland Texas, USA

Re: Explosive Barrel

Postby Swaffy » Sun Jan 09, 2011 2:15 am

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™
Image
User avatar
Swaffy
 
Posts: 1661
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: Explosive Barrel

Postby Apache Thunder » Sun Jan 09, 2011 2:17 am

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
Apache Thunder
 
Posts: 1195
Joined: Mon Oct 19, 2009 2:48 am
Location: Levelland Texas, USA

Re: Explosive Barrel

Postby Swaffy » Sun Jan 09, 2011 2:20 am

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

Re: Explosive Barrel

Postby Swaffy » Wed Jan 12, 2011 8:16 am

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™
Image
User avatar
Swaffy
 
Posts: 1661
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: Explosive Barrel

Postby GoodDayToDie!! » Fri Jan 20, 2017 7:04 am

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
GoodDayToDie!!
 
Posts: 185
Joined: Mon Dec 13, 2010 7:59 am
Location: Bat Country, California

Re: Explosive Barrel

Postby Swaffy » Sat Jan 21, 2017 1:50 am

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™
Image
User avatar
Swaffy
 
Posts: 1661
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Previous

Return to 1942 Modding Discussion

Who is online

Users browsing this forum: Baidu [Spider], Bing [Bot], Google [Bot] and 10 guests

cron