Author: KePcHu
Author Website: http://www.arma2la.com

Requirements: No addons required

Version: 1.1.1

Short description: First public version of this script that creates an explosive barrels rig using a pre-placed pallet in editor. The explosion can be set using public variable, so you can set it any way you want (trigger, addaction menu, scripting, etc.).

Date: 2011-05-22 04:16


Comments: (0)
Rating:



 

Explosive Barrels Rig

by
Kepchu [CLA]


Description:
This script creates an Eplosive Barrels Rig (EBR) using a pre-placed pallet in editor. The explosion can be set using public variable, so you can set it any way you want (trigger, addaction menu, scripting, etc.).


Features:
- Random directions for barrels and charges when placed.
- You can pick barrel´s color when calling the script.
- Different types of explosions.
- Barrels will fly when explosion.
- Second blast for barrels is allowed in a random fashion.
- Easy change of explosion by script variables (no need to touch other code than init variables).
- If you shoot a barrel, it will burn, then explode and set the entire rig explosion.
- You can have several EBRs, they will all explode at the same time when you set the variable.


Installation/Usage:
1. Copy EBR folder from demo mission.
2. Place a pallet in editor, set direction and height.
3. Call ths script from object´s init line:
nul = [this,"SIZE","BARRELTYPE"] execVM "EBR\bomb_init.sqf";

Where:
- this or object_name: the name of the pallet where you want the bomb if called in another init line.
- SIZE: size of explosion can be:
		"SMALL"
		"MEDIUM"
		"LARGE"
- BARRELTYPE: just to change the barrel object among red, black and green:
		"RED"
		"GREEN"
		"BLACK"
4. Set variable
CLA_EBR_Explode = 1; publicVariable "CLA_EBR_Explode";
to set the explosion.


Demo mission:
This archive comes with a demo mission on Utes.


Media:



Notes:
MP tested and working Ok (both on dedicated and non dedicated servers).


Credits & Thanks:
Agresor [CLA]
[CLA] Comunidad Latinoamericana de Arma 2


Change log:
v1.1.1
- Added small change to set barrel types, now you can choose colors
- Some recode.
- Tested esplosions for future versions

v1.1.0b
- Object pallet used instead of marker. Now you get direction and possition from pallet, so you just must care about possitiong it in editor the way you want.
- Some optimisation of code.
- Changed second blasts, now barrels will not change dramatically directions.
- Added variables to control classes for explosives.

v1.0.0b
- Using marker as refference for bomb position.


Forums Topic:
- BI forums




Enable javascript to be able to download from Armaholic please!



Tags: Barrels,   Explosive,   Rig