Пример #1
0
        public override void UnLoadCamera(BCAMEntry Entry)
        {
            base.UnLoadCamera(Entry);
            Entry.RotationX                 = 0.0f;
            Entry.RotationY                 = 0.0f;
            Entry.RotationZ                 = ((float)RotationZNumericUpDown.Value).DegreeToRadian();
            Entry.Zoom                      = (float)ZoomNumericUpDown.Value;
            Entry.Num1                      = 0;
            Entry.Num2                      = 0;
            Entry.String                    = StringTextBox.Text;
            Entry.FieldOfView               = (float)FieldOfViewNumericUpDown.Value;
            Entry.MaxY                      = 300;
            Entry.MinY                      = 800;
            Entry.TransitionTime            = (int)CamIntNumericUpDown.Value;
            Entry.TransitionEndTime         = (int)CamEndIntNumericUpDown.Value;
            Entry.LookOffset                = 0.0f;
            Entry.LookOffsetVertical        = 0.0f;
            Entry.GroundMoveDelay           = 120;
            Entry.AirMoveDelay              = 120;
            Entry.UpperBorder               = 0.0f;
            Entry.LowerBorder               = 0.0f;
            Entry.EventFrames               = (int)EventFrameNumericUpDown.Value;
            Entry.EventPriority             = Entry.IsOfCategory("e") ? 1 : 0;
            Entry.FixPointOffset            = FixpointVector3NumericUpDown.GetVector3();
            Entry.WorldPointOffset          = WorldOffsetVector3NumericUpDown.GetVector3();
            Entry.PlayerOffset              = new Vector3 <float>(((float)PlayerOffsetXNumericUpDown.Value).DegreeToRadian(), ((float)PlayerOffsetYNumericUpDown.Value).DegreeToRadian(), 0);
            Entry.VerticalPanAxis           = new Vector3 <float>(0, 0, 0);
            Entry.UpAxis                    = UpAxisVector3NumericUpDown.GetVector3();
            Entry.DisableReset              = false;
            Entry.EnableFoV                 = FieldOfViewCheckBox.Checked;
            Entry.StaticLookOffset          = false; //SharpZoomCheckBox.Checked;
            Entry.DisableAntiBlur           = false; // DisableAntiBlurCheckBox.Checked;
            Entry.DisableCollision          = DisableCollisionCheckBox.Checked;
            Entry.DisableFirstPerson        = !DisableFirstPersonCheckBox.Checked;
            Entry.GFlagEndErpFrame          = false; // GFlagEndErpFrameCheckBox.Checked;
            Entry.GFlagThrough              = false; // GFlagThroughCheckBox.Checked;
            Entry.GFlagEndTime              = 0;     // (int)GFlagEndTimeNumericUpDown.Value;
            Entry.EnableVerticalPanAxis     = false;
            Entry.EventUseTransitionTime    = EventUseTimeCheckBox.Checked;
            Entry.EventUseTransitionEndTime = EventUseEndTimeCheckBox.Checked;

            Entry.UDown = 120;
            Entry.TransitionGroundTime = 160;
        }
Пример #2
0
        public override void UnLoadCamera(BCAMEntry Entry)
        {
            base.UnLoadCamera(Entry);
            Entry.RotationX                 = ((float)RotationXNumericUpDown.Value).DegreeToRadian();
            Entry.RotationY                 = ((float)RotationYNumericUpDown.Value).DegreeToRadian();
            Entry.RotationZ                 = ((float)RotationZNumericUpDown.Value).DegreeToRadian();
            Entry.Zoom                      = (float)ZoomNumericUpDown.Value;
            Entry.Num1                      = (int)Num1NumericUpDown.Value;
            Entry.Num2                      = (int)Num2NumericUpDown.Value;
            Entry.String                    = StringTextBox.Text;
            Entry.FieldOfView               = (float)FieldOfViewNumericUpDown.Value;
            Entry.MaxY                      = (float)JumpingYNumericUpDown.Value;
            Entry.MinY                      = (float)FallingYNumericUpDown.Value;
            Entry.TransitionTime            = (int)CamIntNumericUpDown.Value;
            Entry.TransitionEndTime         = (int)CamEndIntNumericUpDown.Value;
            Entry.LookOffset                = (float)FrontOffsetNumericUpDown.Value;
            Entry.LookOffsetVertical        = (float)HeightOffsetNumericUpDown.Value;
            Entry.GroundMoveDelay           = (int)GroundDelayNumericUpDown.Value;
            Entry.AirMoveDelay              = (int)AirDelayNumericUpDown.Value;
            Entry.UpperBorder               = (float)UpperBorderNumericUpDown.Value;
            Entry.LowerBorder               = (float)LowerBorderNumericUpDown.Value;
            Entry.EventFrames               = (int)EventFrameNumericUpDown.Value;
            Entry.EventPriority             = (int)EventPriorityNumericUpDown.Value;
            Entry.FixPointOffset            = FixpointVector3NumericUpDown.GetVector3();
            Entry.WorldPointOffset          = WorldOffsetVector3NumericUpDown.GetVector3();
            Entry.PlayerOffset              = PlayerOffsetVector3NumericUpDown.GetVector3();
            Entry.VerticalPanAxis           = VerticalPanAxisVector3NumericUpDown.GetVector3();
            Entry.UpAxis                    = UpAxisVector3NumericUpDown.GetVector3();
            Entry.DisableReset              = !DisableResetCheckBox.Checked;
            Entry.EnableFoV                 = FieldOfViewCheckBox.Checked;
            Entry.StaticLookOffset          = SharpZoomCheckBox.Checked;
            Entry.DisableAntiBlur           = DisableAntiBlurCheckBox.Checked;
            Entry.DisableCollision          = !DisableCollisionCheckBox.Checked;
            Entry.DisableFirstPerson        = !DisableFirstPersonCheckBox.Checked;
            Entry.GFlagEndErpFrame          = GFlagEndErpFrameCheckBox.Checked;
            Entry.GFlagThrough              = GFlagThroughCheckBox.Checked;
            Entry.GFlagEndTime              = (int)GFlagEndTimeNumericUpDown.Value;
            Entry.EnableVerticalPanAxis     = UseVerticalPanAxisCheckBox.Checked;
            Entry.EventUseTransitionTime    = EventUseTimeCheckBox.Checked;
            Entry.EventUseTransitionEndTime = EventUseEndTimeCheckBox.Checked;

            Entry.UDown = 120;
            Entry.TransitionGroundTime = 120;
        }