Jump to content
Sign in to follow this  
Tankbuster

Making an IED Disruptor (with an satchel config replacement)

Recommended Posts

Guys,

I've had a number of proficient coders looking at this with varying degrees of success and I'm very grateful to all of them, but none of them have managed to get this to work.

As part of an roadside bomb script that plugs into a mission I'm working on, I want my engineers to have the ability to render the bombs safe using a disruptor charge.

The charge is basically a reconfigged satchel and works the in the same way, except that it's explosive power is much reduced.

Here's the relevant parts of my config.cpp so far.

class CfgAmmo
{
class PipeBomb;

class TKY_Disruptor : PipeBomb
{
	hit = 50;
	indirectHit = 20;
	indirectHitRange = 5;
	cratereffects = "GrenadeCrater";
	explosioneffects = "GrenadeExplosion";
	soundhit[] = {"Ca\sounds\Weapons\explosions\GP25_explosion", 3.16228, 1, 1300};
	model="\ca\Weapons\satchel";
};
}

class CfgWeapons
{
class PipeBomb;

class TKY_Disruptor : PipeBomb 
               { 
               scope=1; 
               enableAttack=1; 
               ammo="TKY_Disruptor"; 
               displayName="IED Disruptor"; 
               nameSound="satchelcharge"; 
               count=1; 
               initSpeed=0; 
               maxLeadSpeed=0; 
               showEmpty=0; 
               useAction=1; 
               useActionTitle="Put %1 (%2 left)"; 
               magazines[]={"this"}; 

               descriptionShort="IED D Charge"; 
               }; 
};

---------- Post added at 06:37 PM ---------- Previous post was at 06:37 PM ----------

However, this doesn't work as required. I'll knock up a quick YT vid.

---------- Post added at 06:44 PM ---------- Previous post was at 06:37 PM ----------

Ah, scratch the YT vid. :) I'm getting config.bin errors. :(

Warning Message: No entry 'bin\config.bin/CfgMagazines.TKY_Disruptor'.
Warning Message: No entry '.picture'.
Warning Message: '/' is not a value
Warning Message: No entry '.scope'.
Warning Message: '/' is not a value
Warning Message: Error: creating magazine TKY_Disruptor with scope=private
Warning Message: No entry '.displayName'.
Warning Message: '/' is not a value
Warning Message: No entry '.displayNameShort'.
Warning Message: '/' is not a value
Warning Message: No entry '.nameSound'.
Warning Message: '/' is not a value
Warning Message: No entry '.Library'.
Warning Message: No entry '.libTextDesc'.
Warning Message: '/' is not a value
Warning Message: No entry '.type'.
Warning Message: '/' is not a value
Warning Message: No entry '.count'.
Warning Message: '/' is not a value
Warning Message: No entry '.maxLeadSpeed'.
Warning Message: '/' is not a value
Warning Message: No entry '.initSpeed'.
Warning Message: '/' is not a value
Warning Message: No entry '.reloadAction'.
Warning Message: '/' is not a value
Warning Message: No entry '.modelSpecial'.
Warning Message: '/' is not a value
Warning Message: No entry '.ammo'.
Warning Message: '/' is not a value

Any help gratefully received.

Edited by Tankbuster

Share this post


Link to post
Share on other sites

My own research has shown the config for the satchel is odd. I'm the first to admit I'm not at all familiar with them and I thought that it would simply be a case of plugging it onto a new model, but that's just not how it works.

I'd love some input from those who know more about this than me.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×