Author: phronk
Author Website:

Requirements: No addons required

Version: 0.1

Short description: 'Simple IED Script' will spawn IEDs on / alongside random road segments within predetermined IED area markers setup by the mission designer.

Date: 2017-02-16 20:29
Submitted by: Armaholic


Comments: (1)
Rating:



 



Simple IED Script

by
phronk


Description:
'Simple IED Script' will spawn IEDs on / alongside random road segments within predetermined IED area markers setup by the mission designer. The position, direction, appearance, and blast magnitude of the IEDs are all random. Additionally, the script will also spawn trash randomly along the roads; trash can sometimes spawn on the position of an IED as well. The script is tiny, optimized, and compatible in all environments (SP, MP, Dedi). It doesn't require any addons or additional scripts and is compatible with any map that has roads.


Features:
Tiny filesize! 2KB
Fast performance
Compatible with SP, MP, and Dedicated
Works on any map with roads
Doesn't require any mods or additional scripts
Easy to implement!
Randomized Results:
-IED type spawned
-IED blast magnitude is random (damage / radius)
-IED position & direction
-Chance for trash to spawn with IED
-Trash appearance variety
IEDs are proximity based:
-If player is within 10 meters of IED AND is moving faster than a slow crawl, the IED will detonate
IEDs can be disarmed:
-If player is an Explosive Specialist and has a ToolKit, he can slow crawl up to the IED safely and disarm it
-IEDs can be detected with a Mine Detector


Installation / Usage:
For usage instructions and information of how to use the Simple IED Script please refer to the included documentation and/or example mission.

Move the "ied.sqf" from the downloaded file, to your mission folder.
Copy & Paste below line into your mission's "init.sqf":
execVM"ied.sqf";
Create rectangular area markers in your mission and name them.
3a. Make sure the A and B values of that marker is the same! Example: 500x500 In the "ied.sqf", add the names of your IED area markers to the array in line 1. For example:
iedMkr=["myMkr0","myMkr1","myMkr2"];
In the "ied.sqf", you can change the number of IEDs to spawn per marker, on line 5. For example:
iedNum=8; //Will spawn 8 IEDs per IED marker
Optional Debug Toggle:
If you want to see the IED area markers in-game, comment out line 6. For example:
//{_x setMarkerAlpha 0;}forEach iedMkr;
If you want to see markers on the position of all spawned IEDs, then uncomment lines 26 through 30. For example:
iedMkrs=[];
	 _mkrID=format["m %1",getPosATL _ied];
	 _mkr=createMarker[_mkrID,getPosATL _ied];
	 _mkr setMarkerShape "ICON";_mkr setMarkerType "mil_dot";
	 _mkr setMarkerBrush "Solid";_mkr setMarkerAlpha 1;
	 _mkr setMarkerColor "ColorEast";
	 iedMkrs set[count iedMkrs,_mkr];


Media:



Armaholic.com has its own Youtube channel where we will cover the Community made releases.
Subscribe to the Armaholic.com Youtube channel


Known issues:
None at this time. Needs more dedicated server testing with multiple players. Script will not work in missions/mods that prohibit the use of remoteExec.


Future plans:
Fix any bugs found
Add blacklist marker support
Add option for script to auto-detect areas to spawn IEDs in


Changelog:
v0.1
Initial release


Forum topic:
- BI forums




Enable javascript to be able to download from Armaholic please!



Tags: Scripts,   Modern,   Ied