Jump to content
Darth_Rogue

[RELEASE] Attach Explosives

Recommended Posts

Attach Explosives

 

 

 

(Please forgive my building noobishness.  I don't play much.)

 

 

I've been holding onto this one for a while, but after seeing all the whining and complaining here on the forums about not being able to breach bases without insane amounts of explosives, I've decided to release this. This is not my original work, but it has been modified by second_coming and myself to work for Epoch.

 

The problem with explosives currently is that it takes way too many of them to do any real damage to structures. The reason is that with Arma, when you place an explosives charge it is placed on the ground in front of the object. When the explosive goes off most of the explosive force is driven into the ground. Damage of the objects nearby is limited to splash damage only, which is only a fraction of the damage that can potentially be dealt by the explosive.

 

So, to solve this, you can use this script to attach the explosive charge directly to the object you are wanting to demolish, thereby greatly reducing the amount of explosives it takes to accomplish the desired effect. With the traditional placement method of setting a charge on the ground in front of an object, it can take up to 30 charges to breach a door. By attaching the explosive directly to the door, we can now have the same damage,  but through using only 3 or 4 charges.

 

The explosives can be attached to any object you specify within the script. You can set it to work with only Epoch buildables, or you can also include vehicles, as I have done in the download. This makes for some interesting scenarios where people can set traps for others by attaching a charge to their vehicles and then detonating them remotely to either create a distraction or also to destroy a vehicle with a target player inside. The possibilities are endless and can provide for some exciting gameplay, in addition to making base raiding more realistic and fun.

 

Installation: See included text file

 

 

 

 

Download

 

Some things to note:  I don't know how well this will work with the stock Anti-Hack since it uses addActions.  I've heard conflicting reports about how those are handled with the stock AH.  There is a new server files version coming which should fix this, but until then, your mileage may vary.  I also don't know that the stock AH will allow the damage to occur properly on player built items.  If you are using Infistar, please ensure that the indestructible option is turned off, otherwise this script will have no effect on buildable objects.  You should also disable 'Check Actions Plr ','Remove Actions Plr','Remove Actions Objs','revert_allowDamage', 'HandleDamage check', and Revert HandleDamage' to make sure those don't interfere as well, although you likely already have those turned off to accommodate other mods already.

Share this post


Link to post
Share on other sites

Timer bug fixed.  EtV.sqf line ~63 area should look like this

        //_illogic = group server createUnit ["logic", Position _explosive, [], 0, "FORM"];  //comment out this one
	_grp = createGroup east;  //add this line
	_illogic = _grp createUnit ["logic", Position _explosive, [], 0, "FORM"];  //add this line
	[_illogic] join _grp; //add this line

As a result of the code change, add this new BE filter to scripts.txt, line 35 (or whatever line your createUnit section resides)

!"_illogic = _grp createUnit ["logic", Position _explo""

Files on GitHub have been updated accordingly.  

Share this post


Link to post
Share on other sites

A couple questions by a normal player.

 

What explosives work with this?

 

Does it automatically attach or is there a scroll option when you're next to something it can attach to?  Like, Place satchel is normal, will it say attach satchel?

Share this post


Link to post
Share on other sites

Currently it works with C4 charges.  You can add satchels to it if you want but that will require some additional code, but not much.  I thought about it and figured that attaching a satchel to an object wasn't very realistic, whereas with a demo charge, that's pretty much what they're designed for.

 

To use the attach feature, you simply need to have a demo charge in your inventory, walk up to the vehicle or door that you want to attach it to and you will get a scroll option to attach it.  Once it's attached you can set a timer in 30 second increments or detonate it whenever you wish.  

 

One caveat with this is that the detonate feature has unlimited range.  So you could, in theory, set a demo charge in Elektro and detonate it as you stand in the middle of Berenzino.  I'm sure there's a way to "fix" this and create a range restriction, but I haven't worked out precisely how to do that yet.    

Share this post


Link to post
Share on other sites

Just a tip regarding the use of createGroup in the script: For logic units it's a good idea to use the "logic" side. Using player sides like east or west can cause issues if the 144 groups/side limit is exceeded, so using those sides should be avoided like the plague.

Share this post


Link to post
Share on other sites

am I missing something?  I tried putting it in my mission folder/epoch hive addons /epoch hive etc and get in the server etv.sqf not found pop up on screen doesnt matter where I put it.

 

 

It goes in the mission file.  Just make sure the path in your init matches where the EtV file actually resides.

Share this post


Link to post
Share on other sites

Just a tip regarding the use of createGroup in the script: For logic units it's a good idea to use the "logic" side. Using player sides like east or west can cause issues if the 144 groups/side limit is exceeded, so using those sides should be avoided like the plague.

 

 

Face, if I set the side to logic I get this error:

20:59:31 Error in expression <t = _this select 1;

_grp = createGroup logic;
_illogic = _grp createUnit ["logi>
20:59:31   Error position: <logic;
_illogic = _grp createUnit ["logi>
20:59:31   Error Undefined variable in expression: logic
20:59:31 File mpmissions\__CUR_MP.Bornholm\addons\EtV\EtV.sqf, line 63

This is the code I'm testing.

EtV_TimedCharge =
{
	_explosive = _this select 0;
	_unit = _this select 1;
	//_illogic = group server createUnit ["logic", Position _explosive, [], 0, "FORM"];
	_grp = createGroup logic;
	_illogic = _grp createUnit ["logic", Position _explosive, [], 0, "FORM"];
	[_illogic] join _grp;
	_illogic attachTo [_explosive];
	while {alive _explosive} do

I got the same error with the code that's commented out, which was the initial cause of the timer function not working.  

Share this post


Link to post
Share on other sites

I should have clarified it further, the logic side reference is "sideLogic", not "logic". You'll also need to do a createCenter sideLogic before creating your first Logic group, preferably during the initialization step of your script.

Share this post


Link to post
Share on other sites

Looks great but can see one potential issue.

Add Explosive in safe zone.

Wait.

Explode.

Profit.

:P

You can thank second_coming for thinking of that already. There's code in the script that prevents using explosives in safe zones, provided you have them set up in your mission. :)

Share this post


Link to post
Share on other sites

Anyone have any interference from other mods that use addactions or cmdmenus? I cannot get these addaction options to show up for the life of me. I can see in the rpt that it is loading the script up, but no matter how i arrange how it's called and what order it's called from (as i have a few scripts that call with {!isdedicated and hasinterface} ), the damn options will not show. 

 

 

frustrating as i really wanted to utilize this addon. <_<

Share this post


Link to post
Share on other sites

Yup, I was certain when I first applied it. What's annoying is I don't get any errors as to what is blocking the options from showing up.

 

I do however run the if {!isDedicated and hasinterface} line calls from my onPlayerRespawn.sqf, but i have tried moving just the EtV call line over to my init with a new {!isDedicated and hasinterface} and I still can't get the options to show. I might have to start disabling my 50 scripts one at a time until i figure out which is blocking it. <_<

 

annoying.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Similar Content

    • By victorks
      my first work in editin :) https://uploaddeimagens.com.br/imagens/20180307202515_1-jpg https://uploaddeimagens.com.br/imagens/20180307202245_1-jpg DOWNLOAD: https://www.dropbox.com/s/oq97j7x59362kqe/CASTLEai.sqf?dl=0 AI M2 NEED WAI: https://pastebin.com/GJMnPvZP ON THE MAP: https://pastebin.com/cyqH9rNV  
       
      https://www.dropbox.com/s/oq97j7x59362kqe/CASTLEai.sqf?dl=0
       
       
       
       
       
       
       
       
       
    • By Forrest
      I am looking for a friend or group that can be on from 7-10 am GMT. I want to build a base. My email is [email protected], Skype is Forrest Perkins, steam is forrestmikeperkinskirk. I may be on from 10- 16 am GMT on the 18th of July, 2017 but I'm always looking for friends I can trust.
    • By harcosgoogle
      Hi!
       
      plotpole bug. Base maintanied ,The base has disappeared. Why?
       
      He was paid in vain
       
      Thanks!
    • By JakeQue
      Legally Binded is a brand new community running a Arma 2 : DayZ Mod Overpoch 1.0.6.1 server in the UK with admins always on and some amazing new mods with the help of oldmatechoc
      IP: 81.19.216.151:2800
      WEBSITE: http://legallybinded.co.uk
      Blow up doors (Base raid)
      Set view distance (Right click binoculars/rangefinders)
      Suicide + Suicide bomb (Right click dog tags or press Home)
      Plot 4 Life (Build a base)
      Plot Management (Maintain it every 7 days)
      Door Management
      Gold Coins & Banks
      Advanced Fast Trading
      Nomad Roaming Trader
      Enhanced Spawn Select
      Spawn Classes
      Fast Build Snap Pro
      Vector Angle Building
      Fast Crafting & Building (1 step construction)
      Group Manager (F5)
      Walking Zombies
      Service Points (Refuel and repair from fuel pumps)
      Missions & Supply Drops
      Vehicle Locator (Right click GPS)
      Safezones
      Deploy Bike & LittleBird from Toolbox
      Tow & Lift
      Custom Areas
      Teabag corpse
      Campfire dance
  • Advertisement
  • Supporters
  • Discord

×
×
  • Create New...