0.3.5.048

This commit is contained in:
vbawol 2015-11-22 17:52:24 -06:00
parent 91d1c623aa
commit 9512f9dcea
2 changed files with 6 additions and 4 deletions

View File

@ -245,6 +245,7 @@ if (_class != "") then {
if ((diag_tickTime - _EPOCH_2) > 2) then { if ((diag_tickTime - _EPOCH_2) > 2) then {
_EPOCH_2 = diag_tickTime; _EPOCH_2 = diag_tickTime;
_arr_snapPoints = [];
EPOCH_arr_snapPoints = []; EPOCH_arr_snapPoints = [];
{ {
_pos1_snap = _currentTarget modelToWorldVisual (_x select 0); _pos1_snap = _currentTarget modelToWorldVisual (_x select 0);
@ -252,12 +253,12 @@ if (_class != "") then {
_ins = lineIntersectsSurfaces [AGLToASL _pos1_snap, AGLToASL _pos2_snap,player,_currentTarget,true,1,"VIEW","FIRE"]; _ins = lineIntersectsSurfaces [AGLToASL _pos1_snap, AGLToASL _pos2_snap,player,_currentTarget,true,1,"VIEW","FIRE"];
if (count _ins > 0) then { if (count _ins > 0) then {
if (surfaceIsWater _snapPosition) then { if (surfaceIsWater _snapPosition) then {
EPOCH_arr_snapPoints pushBack (_ins select 0 select 0); _arr_snapPoints pushBack (_ins select 0 select 0);
} else { } else {
EPOCH_arr_snapPoints pushBack ASLToATL(_ins select 0 select 0); _arr_snapPoints pushBack ASLToATL(_ins select 0 select 0);
}; };
}; };
if (count EPOCH_arr_snapPoints >= 2) exitWith {} if (count _arr_snapPoints >= 2) exitWith { EPOCH_arr_snapPoints = _arr_snapPoints; }
} forEach _snapChecks; } forEach _snapChecks;
}; };
@ -325,6 +326,7 @@ if (_class != "") then {
if (count _ins > 0) then { if (count _ins > 0) then {
_numberOfContacts = _numberOfContacts + 1; _numberOfContacts = _numberOfContacts + 1;
}; };
if (_numberOfContacts >= 2) exitWith {}
} forEach _snapChecks; } forEach _snapChecks;
if (_numberOfContacts < 2) then { if (_numberOfContacts < 2) then {

View File

@ -15,7 +15,7 @@ EPOCH_target = objNull;
EPOCH_Z_OFFSET = 0; EPOCH_Z_OFFSET = 0;
EPOCH_X_OFFSET = 0; EPOCH_X_OFFSET = 0;
EPOCH_Y_OFFSET = 5; EPOCH_Y_OFFSET = 5;
EPOCH_snapVisArray = []; EPOCH_arr_snapPoints = [];
EPOCH_prevTarget = objNull; EPOCH_prevTarget = objNull;
EPOCH_interactOption = 0; EPOCH_interactOption = 0;