final fixes

This commit is contained in:
AKALegman 2015-06-15 20:55:49 +01:00
parent 5915e24f5d
commit c027db2e0e
3 changed files with 3 additions and 10 deletions

View File

@ -8,6 +8,8 @@ class ACE_Settings {
typeName = "BOOL";
};
class GVAR(ExplodeOnDefuse) {
displayName = CSTRING(ExplodeOnDefuse_DisplayName);
description = CSTRING(ExplodeOnDefuse_Description);
value = 1;
typeName = "BOOL";
};

View File

@ -17,8 +17,7 @@
#include "script_component.hpp"
EXPLODE_2_PVT(_this,_unit,_explosive);
_explode = random 1.0;
if (GVAR(ExplodeOnDefuse) && _explode < getNumber(ConfigFile >> "CfgAmmo" >> typeOf _explosive >> "ACE_explodeOnDefuse")) exitWith {
if (GVAR(ExplodeOnDefuse) && (random 1.0) < getNumber(ConfigFile >> "CfgAmmo" >> typeOf _explosive >> "ACE_explodeOnDefuse")) exitWith {
[_unit, -1, [_explosive, 1], true] call FUNC(detonateExplosive);
};

View File

@ -542,17 +542,9 @@
</Key>
<Key ID="STR_ACE_Explosives_ExplodeOnDefuse_DisplayName">
<English>Explode on defusal?</English>
<Polish></Polish>
<Spanish></Spanish>
<German></German>
<Czech></Czech>
</Key>
<Key ID="STR_ACE_Explosives_ExplodeOnDefuse_Description">
<English>Enable certain explosives to explode on defusal? Default: Yes</English>
<Polish></Polish>
<Spanish></Spanish>
<German></German>
<Czech></Czech>
</Key>
<Key ID="STR_ACE_Explosives_Module_Description">
<English></English>