OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Resources Beta Testing & Submission => Topic started by: johnnyboy on 17 Dec 2004, 19:17:42

Title: burning and exploding fuel barrels script
Post by: johnnyboy on 17 Dec 2004, 19:17:42
I've had a lot of fun with this one.   When you shoot barrels to half damage, they begin to burn, then explode a few seconds later (like HL2 barrels).  When barrels clustered together, it causes a very cool chain reaction:  When barrel explodes, it causes nearby barrels to burn/explode, etc.

You also pass in an array of soldier groups that you want to burn if the unit is within 10 meters of an exploding barrel.  I realize it would be cleaner to just find any unit within 10 meters of an exploding barrel, but that was a bit too complicated for me...

Any feedback would be welcome.  Especially how to make this work better for multi-player (the barrles explode on all clients, but not all players can see the fires?).

Unzip the attached file to your User Missions directory, and then run it via Mission Editor Preview.

Enjoy.

P.S.  Credit goes to GeneralBarron for his fireEffect.sqs script.  I use that one alot!
Title: Re:burning and exploding fuel barrels script
Post by: bored_onion on 17 Dec 2004, 21:27:02
requires an addon that i dont have : "KEGrpg7"

if the unit isnt in the mission then delete the entry from the sqm file
Title: Re:burning and exploding fuel barrels script
Post by: johnnyboy on 17 Dec 2004, 22:35:41
Sorry for wasting your time onion.  I removed the addon, and the attachment in the frist post should now be clean (no addons).
Title: Re:burning and exploding fuel barrels script
Post by: The-Architect on 19 Dec 2004, 09:58:27
I like it and I'm gonna use it in my latest project.  ;D
Title: Re:burning and exploding fuel barrels script
Post by: penguinman on 31 Dec 2004, 02:09:20
its a lot of fun, i like it.

Title: Re:burning and exploding fuel barrels script
Post by: Seabiscuit on 02 Feb 2005, 09:02:37
Very nice but I did get one error once the barrels blow up:

typeof |#|_obj == "logic"

Wonder if it's possible to have units in the area to either run away when they're on fire or try to put the barrels out somehow.

I especially liked the burning piles left after the explosion.

SB...
Title: Re: burning and exploding fuel barrels script
Post by: ÐurbanPoison™ on 30 Jun 2014, 00:15:58
I don't see where to download the script?
Title: Re: burning and exploding fuel barrels script
Post by: Gruntage on 30 Jun 2014, 20:34:52
As this thread is about 10 years old, it's likely that the download link was removed. However, there may some particle effects scripts in the editors' depot which fit your needs.