VHVL5HH44FNS7FRY53O7727TZ3OP26HDQQGGHQZ4JTJAYXMP27UAC
PeekTile = VisInfo.SourceTile;
PeekHead = PeekTile; PeekHead.Z = `XWORLD.GetFloorTileZ(PeekTile) + UnitState.UnitHeight;
`log("PeekTile:"@PeekTile.X@","@PeekTile.Y@","@PeekTile.Z, true, 'XCom_HitRolls');
PeekHead = VisInfo.SourceTile; PeekHead.Z = `XWORLD.GetFloorTileZ(PeekHead) + UnitState.UnitHeight;
if (`XWORLD.VoxelRaytrace_Tiles(PeekTile, LosTile, RayTrace))
{
if ((i == 0 && VisInfo.TargetCover == CT_None) || ((i == 1 || i == 2) && VisInfo.TargetCover != CT_Standing) || i > 2)
{
`log("LOS blocked by far cover:"@i@","@VisInfo.TargetCover, true, 'XCom_HitRolls');
FarCover += 1;
}
}