mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
0.3.5.048
This commit is contained in:
parent
91d1c623aa
commit
9512f9dcea
@ -245,6 +245,7 @@ if (_class != "") then {
|
||||
|
||||
if ((diag_tickTime - _EPOCH_2) > 2) then {
|
||||
_EPOCH_2 = diag_tickTime;
|
||||
_arr_snapPoints = [];
|
||||
EPOCH_arr_snapPoints = [];
|
||||
{
|
||||
_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"];
|
||||
if (count _ins > 0) then {
|
||||
if (surfaceIsWater _snapPosition) then {
|
||||
EPOCH_arr_snapPoints pushBack (_ins select 0 select 0);
|
||||
_arr_snapPoints pushBack (_ins select 0 select 0);
|
||||
} 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;
|
||||
};
|
||||
|
||||
@ -325,6 +326,7 @@ if (_class != "") then {
|
||||
if (count _ins > 0) then {
|
||||
_numberOfContacts = _numberOfContacts + 1;
|
||||
};
|
||||
if (_numberOfContacts >= 2) exitWith {}
|
||||
} forEach _snapChecks;
|
||||
|
||||
if (_numberOfContacts < 2) then {
|
||||
|
@ -15,7 +15,7 @@ EPOCH_target = objNull;
|
||||
EPOCH_Z_OFFSET = 0;
|
||||
EPOCH_X_OFFSET = 0;
|
||||
EPOCH_Y_OFFSET = 5;
|
||||
EPOCH_snapVisArray = [];
|
||||
EPOCH_arr_snapPoints = [];
|
||||
EPOCH_prevTarget = objNull;
|
||||
EPOCH_interactOption = 0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user