Exemplo n.º 1
0
        public static void SetFallSpeed(IFighterBase fighter, IStateVariables variables, HnSF.StateTimeline arg3, int arg4)
        {
            State.VarSetFallSpeed vars = (State.VarSetFallSpeed)variables;
            FighterManager        fm   = (FighterManager)fighter;

            fm.physicsManager.SetFallSpeed(vars.value);
        }
Exemplo n.º 2
0
        public static void ApplyGravity(IFighterBase fighter, IStateVariables variables, HnSF.StateTimeline arg3, int arg4)
        {
            State.VarApplyGravity vars = (State.VarApplyGravity)variables;
            FighterManager        fm   = (FighterManager)fighter;

            fm.physicsManager.ApplyGravity(vars.useMaxFallSpeedStat ? fm.statManager.maxFallSpeed : vars.maxFallSpeed,
                                           vars.useGravityStat ? fm.statManager.gravity : vars.gravity);
        }
Exemplo n.º 3
0
        public static void ApplyTraction(IFighterBase fighter, IStateVariables variables, HnSF.StateTimeline arg3, int arg4)
        {
            State.VarApplyTraction vars = (State.VarApplyTraction)variables;
            FighterManager         fm   = (FighterManager)fighter;

            if (vars.useTractionStat)
            {
                fm.physicsManager.ApplyFriction(vars.aerialTraction ? fm.statManager.aerialTraction : fm.statManager.groundTraction);
            }
            else
            {
                fm.physicsManager.ApplyFriction(vars.traction);
            }
        }