Explosive Barrel
- Apache Thunder
- Posts: 1213
- Joined: Mon Oct 19, 2009 2:48 am
- Location: Levelland Texas, USA
- Contact:
Re: Explosive Barrel
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.

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.




I have cameras in your head!
Re: Explosive Barrel
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?
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™
- Apache Thunder
- Posts: 1213
- Joined: Mon Oct 19, 2009 2:48 am
- Location: Levelland Texas, USA
- Contact:
Re: Explosive Barrel
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.



I have cameras in your head!
Re: Explosive Barrel
Thank you, sir.
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
Re: Explosive Barrel
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.
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™
-
- Posts: 226
- Joined: Mon Dec 13, 2010 7:59 am
- Location: Bat Country, California
- Contact:
Re: Explosive Barrel
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,
Can I use your map to copy over the exploding barrel?
Would you be so kind as to link the map to me?
Cheers,

Re: Explosive Barrel
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™