Skip to content

Commit

Permalink
Switched to using the explosive value in cfgAmmo instead of maintaini…
Browse files Browse the repository at this point in the history
…ng a list of explosive bullets
  • Loading branch information
Brians200 committed Feb 14, 2014
1 parent 43e18a3 commit 94592be
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
7 changes: 5 additions & 2 deletions EPD/IED/ExplosionEventHandler.sqf
Expand Up @@ -18,9 +18,12 @@ if(allowExplosiveToTriggerIEDs) then {
};
} foreach ehExplosiveSuperClasses;

if((! _isExplosive) && (_projectile in explosiveBullets)) then
if(! _isExplosive) then
{
_isExplosiveBullet = true;
_explosiveValue = getNumber(configfile >> "CfgAmmo" >> format["%1", _projectile] >> "explosive");
if(_explosiveValue > 0) then {
_isExplosiveBullet = true;
};
};

{//smoke grenades.. chem lights.. ir strobes.. rocks..
Expand Down
3 changes: 0 additions & 3 deletions EPD/IED/Ied.sqf
Expand Up @@ -14,9 +14,6 @@ publicVariable "ehExplosiveSuperClasses";
explosiveSuperClasses = ["TimeBombCore","BombCore", "Grenade"];
publicVariable "explosiveSuperClasses";

explosiveBullets = ["B_20mm", "B_20mm_Tracer_Red", "B_30mm_HE", "B_30mm_HE_Tracer_Green", "B_30mm_HE_Tracer_Red", "B_30mm_HE_Tracer_Yellow", "B_30mm_MP", "B_30mm_MP_Tracer_Green", "B_30mm_MP_Tracer_Red", "B_30mm_MP_Tracer_Yellow", "B_35mm_AA", "B_35mm_AA_Tracer_Green", "B_35mm_AA_Tracer_Red", "B_35mm_AA_Tracer_Yellow", "B_40mm_GPR", "B_40mm_GPR_Tracer_Green", "B_40mm_GPR_Tracer_Red", "B_40mm_GPR_Tracer_Yellow"];
publicVariable "explosiveBullets";

thingsToIgnore = ["SmokeShell", "FlareCore", "IRStrobeBase", "GrenadeHand_stone", "Smoke_120mm_AMOS_White", "TMR_R_DG32V_F"];
publicVariable "thingsToIgnore";

Expand Down

0 comments on commit 94592be

Please sign in to comment.