mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
Merge pull request #1001 from 82ndab-Bravo17/seethrough
Makes sense, thx!
This commit is contained in:
commit
3cfca928d0
@ -23,7 +23,7 @@ if (player == vehicle player && {getPosATL player select 2 > 0.4} && {cameraview
|
|||||||
_eyedist = 0.25;
|
_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))];
|
_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];
|
_objects = lineintersectswith [_eyePos,_end,player];
|
||||||
_objects = _objects select {_x iskindof "Constructions_static_F"};
|
_objects = _objects select {((_x iskindof "Constructions_static_F") and not(_x isKindOf "WoodLargeWall_EPOCH"))};
|
||||||
if !(_objects isequalto []) then {
|
if !(_objects isequalto []) then {
|
||||||
player switchCamera "EXTERNAL";
|
player switchCamera "EXTERNAL";
|
||||||
_fadedblack = true;
|
_fadedblack = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user