Search Results for

    Show / Hide Table of Contents

    Class StaggerFallHelper

    Inheritance
    Object
    CustomHelper
    StaggerFallHelper
    Inherited Members
    CustomHelper.Start()
    CustomHelper.Start(Int32)
    CustomHelper.Stop()
    CustomHelper.SetArgument(String, Boolean)
    CustomHelper.SetArgument(String, Int32)
    CustomHelper.SetArgument(String, Single)
    CustomHelper.SetArgument(String, String)
    CustomHelper.SetArgument(String, Vector3)
    CustomHelper.ResetArguments()
    CustomHelper.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: GTA.NaturalMotion
    Assembly: ScriptHookVDotNet3.dll
    Syntax
    public sealed class StaggerFallHelper : CustomHelper

    Constructors

    | Improve this Doc View Source

    StaggerFallHelper(Ped)

    Creates a new Instance of the StaggerFallHelper for sending a StaggerFall Message to a given Ped.

    Declaration
    public StaggerFallHelper(Ped ped)
    Parameters
    Type Name Description
    Ped ped

    The Ped to send the StaggerFall Message to.

    Properties

    | Improve this Doc View Source

    AlwaysBendForwards

    Bend forwards at the hip (hipBendMult) whether moving backwards or forwards.

    Declaration
    public bool AlwaysBendForwards { set; }
    Property Value
    Type Description
    Boolean
    Remarks

    Default value = False.

    | Improve this Doc View Source

    ArmDamping

    Sets damping value for the arms.

    Declaration
    public float ArmDamping { set; }
    Property Value
    Type Description
    Single
    Remarks

    Default value = 1.0f. Min value = 0.0f. Max value = 2.0f.

    | Improve this Doc View Source

    ArmDampingStart

    ArmDamping during the yanked timescale i.e. timeAtStartValues.

    Declaration
    public float ArmDampingStart { set; }
    Property Value
    Type Description
    Single
    Remarks

    Default value = 0.1f. Min value = 0.0f. Max value = 2.0f.

    | Improve this Doc View Source

    ArmStiffness

    Stiffness of arms. Catch_fall's stiffness scales with this value, but has default values when this is default.

    Declaration
    public float ArmStiffness { set; }
    Property Value
    Type Description
    Single
    Remarks

    Default value = 12.0f. Min value = 0.0f. Max value = 16.0f.

    | Improve this Doc View Source

    ArmStiffnessStart

    ArmStiffness during the yanked timescale i.e. timeAtStartValues.

    Declaration
    public float ArmStiffnessStart { set; }
    Property Value
    Type Description
    Single
    Remarks

    Default value = 3.0f. Min value = 0.0f. Max value = 16.0f.

    | Improve this Doc View Source

    HeadLookAtVelProb

    Probability [0-1] that headLook will be looking in the direction of velocity when stepping.

    Declaration
    public float HeadLookAtVelProb { set; }
    Property Value
    Type Description
    Single
    Remarks

    Default value = 1.0f. Min value = -1.0f. Max value = 1.0f.

    | Improve this Doc View Source

    HeadLookInstanceIndex

    Level index of thing to look at.

    Declaration
    public int HeadLookInstanceIndex { set; }
    Property Value
    Type Description
    Int32
    Remarks

    Default value = -1. Min value = -1.

    | Improve this Doc View Source

    HeadLookPos

    Position of thing to look at.

    Declaration
    public Vector3 HeadLookPos { set; }
    Property Value
    Type Description
    Vector3
    Remarks

    Default value = Vector3(0.0f, 0.0f, 0.0f).

    | Improve this Doc View Source

    HipBendMult

    HipBend scaled with velocity.

    Declaration
    public float HipBendMult { set; }
    Property Value
    Type Description
    Single
    Remarks

    Default value = 0.0f. Min value = -10.0f. Max value = 10.0f.

    | Improve this Doc View Source

    Lean2multB

    Lean of spine to side in side velocity direction when going backwards.

    Declaration
    public float Lean2multB { set; }
    Property Value
    Type Description
    Single
    Remarks

    Default value = -2.0f. Min value = -5.0f. Max value = 5.0f.

    | Improve this Doc View Source

    Lean2multF

    Lean of spine to side in side velocity direction when going forwards.

    Declaration
    public float Lean2multF { set; }
    Property Value
    Type Description
    Single
    Remarks

    Default value = -1.0f. Min value = -5.0f. Max value = 5.0f.

    | Improve this Doc View Source

    LeanHipsMaxB

    Max of leanInDirectionHips magnitude when going backwards.

    Declaration
    public float LeanHipsMaxB { set; }
    Property Value
    Type Description
    Single
    Remarks

    Default value = 0.0f. Min value = 0.0f. Max value = 1.0f.

    | Improve this Doc View Source

    LeanHipsMaxF

    Max of leanInDirectionHips magnitude when going forwards.

    Declaration
    public float LeanHipsMaxF { set; }
    Property Value
    Type Description
    Single
    Remarks

    Default value = 0.0f. Min value = 0.0f. Max value = 1.0f.

    | Improve this Doc View Source

    LeanInDirMaxB

    Max of leanInDirection magnitude when going backwards.

    Declaration
    public float LeanInDirMaxB { set; }
    Property Value
    Type Description
    Single
    Remarks

    Default value = 0.3f. Min value = 0.0f. Max value = 1.0f.

    | Improve this Doc View Source

    LeanInDirMaxF

    Max of leanInDirection magnitude when going forwards.

    Declaration
    public float LeanInDirMaxF { set; }
    Property Value
    Type Description
    Single
    Remarks

    Default value = 0.1f. Min value = 0.0f. Max value = 1.0f.

    | Improve this Doc View Source

    LeanInDirRate

    LeanInDirection will be increased from 0 to leanInDirMax linearly at this rate.

    Declaration
    public float LeanInDirRate { set; }
    Property Value
    Type Description
    Single
    Remarks

    Default value = 1.0f. Min value = 0.0f. Max value = 10.0f.

    | Improve this Doc View Source

    LowerBodyStiffness

    LowerBodyStiffness should be 12.

    Declaration
    public float LowerBodyStiffness { set; }
    Property Value
    Type Description
    Single
    Remarks

    Default value = 13.0f. Min value = 0.0f. Max value = 16.0f.

    | Improve this Doc View Source

    LowerBodyStiffnessEnd

    LowerBodyStiffness at end.

    Declaration
    public float LowerBodyStiffnessEnd { set; }
    Property Value
    Type Description
    Single
    Remarks

    Default value = 8.0f. Min value = 0.0f. Max value = 16.0f.

    | Improve this Doc View Source

    MaxPushoffVel

    Stance leg will only pushOff to increase momentum if the vertical hip velocity is less than this value. 0.4 seems like a good value. The higher it is the less this functionality is applied. If it is very low or negative this can stop the pushOff altogether.

    Declaration
    public float MaxPushoffVel { set; }
    Property Value
    Type Description
    Single
    Remarks

    Default value = 20.0f. Min value = -20.0f. Max value = 20.0f.

    | Improve this Doc View Source

    PerStepReduction1

    LowerBody stiffness will be reduced every step to make the character fallover.

    Declaration
    public float PerStepReduction1 { set; }
    Property Value
    Type Description
    Single
    Remarks

    Default value = 0.7f. Min value = 0.0f. Max value = 10.0f.

    | Improve this Doc View Source

    PredictionTime

    Amount of time (seconds) into the future that the character tries to step to. Bigger values try to recover with fewer, bigger steps. Smaller values recover with smaller steps, and generally recover less.

    Declaration
    public float PredictionTime { set; }
    Property Value
    Type Description
    Single
    Remarks

    Default value = 0.1f. Min value = 0.0f. Max value = 1.0f.

    | Improve this Doc View Source

    PushOffDist

    Amount stance foot is behind com in the direction of velocity before the leg tries to pushOff to increase momentum. Increase to lower the probability of the pushOff making the character bouncy.

    Declaration
    public float PushOffDist { set; }
    Property Value
    Type Description
    Single
    Remarks

    Default value = 0.2f. Min value = -1.0f. Max value = 1.0f.

    | Improve this Doc View Source

    RampTimeFromStartValues

    Time spent ramping from Start to end values for arms and spine stiffness and damping i.e. for whiplash effect (occurs after timeAtStartValues).

    Declaration
    public float RampTimeFromStartValues { set; }
    Property Value
    Type Description
    Single
    Remarks

    Default value = 0.0f. Min value = 0.0f. Max value = 2.0f.

    | Improve this Doc View Source

    RampTimeToEndValues

    Time spent ramping from lowerBodyStiffness to lowerBodyStiffnessEnd.

    Declaration
    public float RampTimeToEndValues { set; }
    Property Value
    Type Description
    Single
    Remarks

    Default value = 0.0f. Min value = 0.0f. Max value = 10.0f.

    | Improve this Doc View Source

    SpineBendMult

    Spine bend scaled with velocity.

    Declaration
    public float SpineBendMult { set; }
    Property Value
    Type Description
    Single
    Remarks

    Default value = 0.4f. Min value = -10.0f. Max value = 10.0f.

    | Improve this Doc View Source

    SpineDamping

    Declaration
    public float SpineDamping { set; }
    Property Value
    Type Description
    Single
    Remarks

    Default value = 1.0f. Min value = 0.0f. Max value = 2.0f.

    | Improve this Doc View Source

    SpineDampingStart

    SpineDamping during the yanked timescale i.e. timeAtStartValues.

    Declaration
    public float SpineDampingStart { set; }
    Property Value
    Type Description
    Single
    Remarks

    Default value = 0.1f. Min value = 0.0f. Max value = 2.0f.

    | Improve this Doc View Source

    SpineStiffness

    Declaration
    public float SpineStiffness { set; }
    Property Value
    Type Description
    Single
    Remarks

    Default value = 10.0f. Min value = 0.0f. Max value = 16.0f.

    | Improve this Doc View Source

    SpineStiffnessStart

    SpineStiffness during the yanked timescale i.e. timeAtStartValues.

    Declaration
    public float SpineStiffnessStart { set; }
    Property Value
    Type Description
    Single
    Remarks

    Default value = 3.0f. Min value = 0.0f. Max value = 16.0f.

    | Improve this Doc View Source

    StaggerStepProb

    Probability per step of time spent in a stagger step.

    Declaration
    public float StaggerStepProb { set; }
    Property Value
    Type Description
    Single
    Remarks

    Default value = 0.0f. Min value = 0.0f. Max value = 1.0f.

    | Improve this Doc View Source

    StepsTillStartEnd

    Steps taken before lowerBodyStiffness starts ramping down by perStepReduction1.

    Declaration
    public int StepsTillStartEnd { set; }
    Property Value
    Type Description
    Int32
    Remarks

    Default value = 2. Min value = 0. Max value = 100.

    | Improve this Doc View Source

    TimeAtStartValues

    Time spent with Start values for arms and spine stiffness and damping i.e. for whiplash effect.

    Declaration
    public float TimeAtStartValues { set; }
    Property Value
    Type Description
    Single
    Remarks

    Default value = 0.0f. Min value = 0.0f. Max value = 2.0f.

    | Improve this Doc View Source

    TimeStartEnd

    Time from start of behavior before lowerBodyStiffness starts ramping down for rampTimeToEndValues to endValues.

    Declaration
    public float TimeStartEnd { set; }
    Property Value
    Type Description
    Single
    Remarks

    Default value = 100.0f. Min value = 0.0f. Max value = 100.0f.

    | Improve this Doc View Source

    Turn2TargetProb

    Weighted probability of turning towards headLook target. This is one of six turn type weights.

    Declaration
    public float Turn2TargetProb { set; }
    Property Value
    Type Description
    Single
    Remarks

    Default value = 0.0f. Min value = 0.0f. Max value = 1.0f.

    | Improve this Doc View Source

    Turn2VelProb

    Weighted probability of turning towards velocity. This is one of six turn type weights.

    Declaration
    public float Turn2VelProb { set; }
    Property Value
    Type Description
    Single
    Remarks

    Default value = 1.0f. Min value = 0.0f. Max value = 1.0f.

    | Improve this Doc View Source

    TurnAwayProb

    Weighted probability of turning away from headLook target. This is one of six turn type weights.

    Declaration
    public float TurnAwayProb { set; }
    Property Value
    Type Description
    Single
    Remarks

    Default value = 0.0f. Min value = 0.0f. Max value = 1.0f.

    | Improve this Doc View Source

    TurnLeftProb

    Weighted probability of turning left. This is one of six turn type weights.

    Declaration
    public float TurnLeftProb { set; }
    Property Value
    Type Description
    Single
    Remarks

    Default value = 0.0f. Min value = 0.0f. Max value = 1.0f.

    | Improve this Doc View Source

    TurnOffProb

    Weighted probability that turn will be off. This is one of six turn type weights.

    Declaration
    public float TurnOffProb { set; }
    Property Value
    Type Description
    Single
    Remarks

    Default value = 0.0f. Min value = 0.0f. Max value = 1.0f.

    | Improve this Doc View Source

    TurnRightProb

    Weighted probability of turning right. This is one of six turn type weights.

    Declaration
    public float TurnRightProb { set; }
    Property Value
    Type Description
    Single
    Remarks

    Default value = 0.0f. Min value = 0.0f. Max value = 1.0f.

    | Improve this Doc View Source

    UpperBodyReaction

    Enable upper body reaction i.e. blindBrace and armswindmill.

    Declaration
    public bool UpperBodyReaction { set; }
    Property Value
    Type Description
    Boolean
    Remarks

    Default value = True.

    | Improve this Doc View Source

    UseBodyTurn

    Enable and provide a positive bodyTurnTimeout and provide a look-at target to make the character turn to face it while balancing.

    Declaration
    public bool UseBodyTurn { set; }
    Property Value
    Type Description
    Boolean
    Remarks

    Default value = False.

    | Improve this Doc View Source

    UseHeadLook

    Enable and provide a look-at target to make the character's head turn to face it while balancing, balancer default is 0.2.

    Declaration
    public bool UseHeadLook { set; }
    Property Value
    Type Description
    Boolean
    Remarks

    Default value = True.

    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX