Exemple #1
0
        public TimeCircuitsCopy(TimeCircuits circuits, bool noLastDisplacementCopy = false)
        {
            if (!noLastDisplacementCopy)
            {
                LastDisplacementCopy = circuits.Delorean.LastDisplacementCopy;
            }

            IsOn               = circuits.IsOn;
            DestinationTime    = circuits.DestinationTime;
            PreviousTime       = circuits.PreviousTime;
            IsFueled           = circuits.IsFueled;
            WasOnTracks        = circuits.WasOnTracks;
            IsWarmedUp         = circuits.IsWarmedUp;
            IsFlying           = circuits.IsFlying;
            CutsceneMode       = circuits.GetHandler <TimeTravelHandler>().CutsceneMode;
            IsRemoteControlled = circuits.IsRemoteControlled;
            LastVelocity       = circuits.Delorean.LastVelocity;
            IsFreezing         = circuits.IsFreezing;

            if (IsFreezing)
            {
                IceValue = Function.Call <float>(Hash.GET_VEHICLE_ENVEFF_SCALE, circuits.Vehicle);
            }
        }