예제 #1
0
 public void Reset()
 {
     Checkpoints.Clear();
     Frames.Clear();
     CurrentFrame = default;
     StartTick    = Human.Game.CurrentTick;
     Live         = true;
 }
예제 #2
0
        public void RunCommand()
        {
            if (!Live)
            {
                return;
            }

            Frames.Add(CurrentFrame);

            var vel = Human.Velocity;

            vel.y = 0;

            CurrentFrame = new FSTimelineFrame()
            {
                Tick     = CurrentFrame.Tick + 1,
                Angles   = Human.Angles,
                Position = Human.Origin,
                Time     = CurrentFrame.Time + Time.fixedDeltaTime,
                Strafes  = 0,
                Jumps    = 0,
                Velocity = (int)(vel.magnitude * SurfController.HammerScale)
            };
        }