2018-01-18 20:40:18 +00:00
|
|
|
// runs every 0.4 seconds
|
|
|
|
|
|
|
|
if (EPOCH_IsAutoRunning) then {
|
|
|
|
if (call EPOCH_AutoRun_Check) then {
|
2018-01-19 15:14:21 +00:00
|
|
|
call EPOCH_AutoRun;
|
2018-01-18 20:40:18 +00:00
|
|
|
}
|
|
|
|
else {
|
2018-01-19 15:14:21 +00:00
|
|
|
EPOCH_IsAutoRunning = false;
|
|
|
|
player switchMove "";
|
2018-01-18 20:40:18 +00:00
|
|
|
};
|
2018-04-08 02:28:01 +00:00
|
|
|
};
|
|
|
|
|
2019-04-19 20:48:07 +00:00
|
|
|
if (player == vehicle player && {getPosATL player select 2 > 0.4} && {cameraview == 'GUNNER'}) then {
|
|
|
|
_weapondir = player weapondirection (currentweapon player);
|
|
|
|
if (animationstate player in ['aadjpknlmstpsraswpstddown','aadjpknlmstpsraswrflddown'] && {_weapondir select 2 < -0.88}) then {
|
|
|
|
player switchCamera "EXTERNAL";
|
|
|
|
player playAction "AdjustF";
|
|
|
|
_fadedblack = true;
|
|
|
|
TitleText ['Stop BugUsing!','BLACK FADED'];
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
_eyePos = eyepos player;
|
|
|
|
_eyedist = 0.25;
|
|
|
|
_end = [((_eyePos select 0)+_eyedist*(_weapondir select 0)),((_eyePos select 1)+_eyedist*(_weapondir select 1)),((_eyePos select 2)+_eyedist*(_weapondir select 2))];
|
|
|
|
_objects = lineintersectswith [_eyePos,_end,player];
|
2019-04-20 18:04:12 +00:00
|
|
|
_objects = _objects select {((_x iskindof "Constructions_static_F") and not(_x isKindOf "WoodLargeWall_EPOCH"))};
|
2019-04-19 20:48:07 +00:00
|
|
|
if !(_objects isequalto []) then {
|
|
|
|
player switchCamera "EXTERNAL";
|
|
|
|
_fadedblack = true;
|
|
|
|
TitleText ['Stop BugUsing!','BLACK FADED'];
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
call _UnFadeCheck;
|
2018-04-08 02:28:01 +00:00
|
|
|
};
|
|
|
|
};
|
2019-04-19 20:48:07 +00:00
|
|
|
}
|
|
|
|
else {
|
|
|
|
call _UnFadeCheck;
|
|
|
|
};
|
|
|
|
|