mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Opps
This commit is contained in:
parent
b9638f749b
commit
61bc40a650
@ -26,7 +26,7 @@ class CfgMagazines {
|
|||||||
class ACE_Triggers {
|
class ACE_Triggers {
|
||||||
SupportedTriggers[] = {"PressurePlate"};
|
SupportedTriggers[] = {"PressurePlate"};
|
||||||
class PressurePlate {
|
class PressurePlate {
|
||||||
digDistance = 0.025;
|
digDistance = 0.02;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -63,11 +63,12 @@ if (isNumber (_magazineTrigger >> "digDistance")) then {
|
|||||||
_surfaceType = surfaceType _pos;
|
_surfaceType = surfaceType _pos;
|
||||||
if ((_surfaceType select [0,1]) == "#") then {_surfaceType = _surfaceType select [1, 99];};
|
if ((_surfaceType select [0,1]) == "#") then {_surfaceType = _surfaceType select [1, 99];};
|
||||||
if ((_surfaceType != "") || {isClass (configfile >> "CfgSurfaces" >> _surfaceType >> "soundEnviron")}) then {
|
if ((_surfaceType != "") || {isClass (configfile >> "CfgSurfaces" >> _surfaceType >> "soundEnviron")}) then {
|
||||||
_soundEnviron = (configfile >> "CfgSurfaces" >> _surfaceType >> "soundEnviron");
|
_soundEnviron = getText (configfile >> "CfgSurfaces" >> _surfaceType >> "soundEnviron");
|
||||||
|
TRACE_2("Dig Down Surface",_surfaceType,_soundEnviron);
|
||||||
_canDigDown = !(_soundEnviron in ["road", "tarmac", "concrete", "concrete_int", "int_concrete", "concrete_ext"]);
|
_canDigDown = !(_soundEnviron in ["road", "tarmac", "concrete", "concrete_int", "int_concrete", "concrete_ext"]);
|
||||||
};
|
};
|
||||||
//Don't dig down if pos ATL is high (in a building or A2 road)
|
//Don't dig down if pos ATL is high (in a building or A2 road)
|
||||||
if (_canDigDown && {(_pos select 2) > 0.1}) then {
|
if (_canDigDown && {(_pos select 2) < 0.1}) then {
|
||||||
TRACE_2("Can Dig Down",_digDistance,_pos);
|
TRACE_2("Can Dig Down",_digDistance,_pos);
|
||||||
_pos = _pos vectorAdd [0,0, (-1 * _digDistance)];
|
_pos = _pos vectorAdd [0,0, (-1 * _digDistance)];
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user