Beispiel #1
0
        public static Lot GetCameraTargetLot()
        {
            if (LotManager.sLots == null)
            {
                return(LotManager.sActiveLot ?? LotManager.sWorldLot);
            }
            LotLocation LotLocation = default(LotLocation);
            ulong       Location    = World.GetLotLocation(NFinalizeDeath.Fast_SnapToFloor(ScriptCore.CameraController.Camera_GetTarget()), ref LotLocation);
            Lot         TargetLot   = LotManager.GetLot(Location);

            if (TargetLot == null)
            {
                return(LotManager.sActiveLot ?? LotManager.sWorldLot);
            }
            return(TargetLot);
        }