mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
final fixes
This commit is contained in:
parent
5915e24f5d
commit
c027db2e0e
@ -8,6 +8,8 @@ class ACE_Settings {
|
||||
typeName = "BOOL";
|
||||
};
|
||||
class GVAR(ExplodeOnDefuse) {
|
||||
displayName = CSTRING(ExplodeOnDefuse_DisplayName);
|
||||
description = CSTRING(ExplodeOnDefuse_Description);
|
||||
value = 1;
|
||||
typeName = "BOOL";
|
||||
};
|
||||
|
@ -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);
|
||||
};
|
||||
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user