SHVDN  v3
An ASI plugin for Grand Theft Auto V, which allows running scripts written in any .NET language in-game. Developed by crosire https://github.com/crosire/scripthookvdotnet/
GTA.NaturalMotion.BodyWritheHelper Class Reference
Inheritance diagram for GTA.NaturalMotion.BodyWritheHelper:
GTA.NaturalMotion.CustomHelper

Public Member Functions

 BodyWritheHelper (Ped ped)
 Creates a new Instance of the BodyWritheHelper for sending a BodyWrithe Message to a given Ped. More...
 
- Public Member Functions inherited from GTA.NaturalMotion.CustomHelper
void Start ()
 Starts this Natural Motion behavior on the Ped that will loop until manually aborted. More...
 
void Start (int duration)
 Starts this Natural Motion behavior on the Ped for a specified duration. More...
 
void Stop ()
 Stops this Natural Motion behavior on the Ped. More...
 
void SetArgument (string argName, bool value)
 Sets a Message argument to a bool value. More...
 
void SetArgument (string argName, int value)
 Sets a Message argument to a int value. More...
 
void SetArgument (string argName, float value)
 Sets a Message argument to a float value. More...
 
void SetArgument (string argName, string value)
 Sets a Message argument to a string value. More...
 
void SetArgument (string argName, Vector3 value)
 Sets a Message argument to a Vector3 value. More...
 
void ResetArguments ()
 Resets all arguments to their default values. More...
 
override string ToString ()
 Returns the internal message name. More...
 

Properties

float ArmStiffness [set]
 
float BackStiffness [set]
 
float LegStiffness [set]
 The stiffness of the character will determine how 'determined' a writhe this is - high values will make him thrash about wildly. More...
 
float ArmDamping [set]
 Damping amount, less is underdamped. More...
 
float BackDamping [set]
 Damping amount, less is underdamped. More...
 
float LegDamping [set]
 Damping amount, less is underdamped. More...
 
float ArmPeriod [set]
 Controls how fast the writhe is executed, smaller values make faster motions. More...
 
float BackPeriod [set]
 Controls how fast the writhe is executed, smaller values make faster motions. More...
 
float LegPeriod [set]
 Controls how fast the writhe is executed, smaller values make faster motions. More...
 
string Mask [set]
 Two character body-masking value, bitwise joint mask or bitwise logic string of two character body-masking value (see Active Pose notes for possible values). More...
 
float ArmAmplitude [set]
 
float BackAmplitude [set]
 Scales the amount of writhe. 0 = no writhe. More...
 
float LegAmplitude [set]
 Scales the amount of writhe. 0 = no writhe. More...
 
float ElbowAmplitude [set]
 
float KneeAmplitude [set]
 
bool RollOverFlag [set]
 Flag to set trying to rollOver. More...
 
float BlendArms [set]
 Blend the writhe arms with the current desired arms (0=don't apply any writhe, 1=only writhe). More...
 
float BlendBack [set]
 Blend the writhe spine and neck with the current desired (0=don't apply any writhe, 1=only writhe). More...
 
float BlendLegs [set]
 Blend the writhe legs with the current desired legs (0=don't apply any writhe, 1=only writhe). More...
 
bool ApplyStiffness [set]
 Use writhe stiffnesses if true. If false don't set any stiffnesses. More...
 
bool OnFire [set]
 Extra shoulderBlend. Rolling:one way only, maxRollOverTime, rollOverRadius, doesn't reduce arm stiffness to help rolling. No shoulder twist. More...
 
float ShoulderLean1 [set]
 Blend writhe shoulder desired lean1 with this angle in RAD. Note that onFire has to be set to true for this parameter to take any effect. More...
 
float ShoulderLean2 [set]
 Blend writhe shoulder desired lean2 with this angle in RAD. Note that onFire has to be set to true for this parameter to take any effect. More...
 
float Lean1BlendFactor [set]
 Shoulder desired lean1 with shoulderLean1 angle blend factor. Set it to 0 to use original shoulder withe desired lean1 angle for shoulders. Note that onFire has to be set to true for this parameter to take any effect. More...
 
float Lean2BlendFactor [set]
 Shoulder desired lean2 with shoulderLean2 angle blend factor. Set it to 0 to use original shoulder withe desired lean2 angle for shoulders. Note that onFire has to be set to true for this parameter to take any effect. More...
 
float RollTorqueScale [set]
 Scale rolling torque that is applied to character spine. More...
 
float MaxRollOverTime [set]
 Rolling torque is ramped down over time. At this time in seconds torque value converges to zero. Use this parameter to restrict time the character is rolling. Note that onFire has to be set to true for this parameter to take any effect. More...
 
float RollOverRadius [set]
 Rolling torque is ramped down with distance measured from position where character hit the ground and started rolling. At this distance in meters torque value converges to zero. Use this parameter to restrict distance the character travels due to rolling. Note that onFire has to be set to true for this parameter to take any effect. More...
 

Additional Inherited Members

- Protected Member Functions inherited from GTA.NaturalMotion.CustomHelper
 CustomHelper (Ped target, string message)
 Creates a helper class for building Natural Motion messages to send to a given Ped. More...
 

Constructor & Destructor Documentation

◆ BodyWritheHelper()

GTA.NaturalMotion.BodyWritheHelper.BodyWritheHelper ( Ped  ped)

Creates a new Instance of the BodyWritheHelper for sending a BodyWrithe Message to a given Ped.

Parameters
pedThe Ped to send the BodyWrithe Message to.

Property Documentation

◆ ApplyStiffness

bool GTA.NaturalMotion.BodyWritheHelper.ApplyStiffness
set

Use writhe stiffnesses if true. If false don't set any stiffnesses.

Default value = True.

◆ ArmAmplitude

float GTA.NaturalMotion.BodyWritheHelper.ArmAmplitude
set

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

◆ ArmDamping

float GTA.NaturalMotion.BodyWritheHelper.ArmDamping
set

Damping amount, less is underdamped.

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

◆ ArmPeriod

float GTA.NaturalMotion.BodyWritheHelper.ArmPeriod
set

Controls how fast the writhe is executed, smaller values make faster motions.

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

◆ ArmStiffness

float GTA.NaturalMotion.BodyWritheHelper.ArmStiffness
set

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

◆ BackAmplitude

float GTA.NaturalMotion.BodyWritheHelper.BackAmplitude
set

Scales the amount of writhe. 0 = no writhe.

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

◆ BackDamping

float GTA.NaturalMotion.BodyWritheHelper.BackDamping
set

Damping amount, less is underdamped.

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

◆ BackPeriod

float GTA.NaturalMotion.BodyWritheHelper.BackPeriod
set

Controls how fast the writhe is executed, smaller values make faster motions.

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

◆ BackStiffness

float GTA.NaturalMotion.BodyWritheHelper.BackStiffness
set

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

◆ BlendArms

float GTA.NaturalMotion.BodyWritheHelper.BlendArms
set

Blend the writhe arms with the current desired arms (0=don't apply any writhe, 1=only writhe).

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

◆ BlendBack

float GTA.NaturalMotion.BodyWritheHelper.BlendBack
set

Blend the writhe spine and neck with the current desired (0=don't apply any writhe, 1=only writhe).

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

◆ BlendLegs

float GTA.NaturalMotion.BodyWritheHelper.BlendLegs
set

Blend the writhe legs with the current desired legs (0=don't apply any writhe, 1=only writhe).

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

◆ ElbowAmplitude

float GTA.NaturalMotion.BodyWritheHelper.ElbowAmplitude
set

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

◆ KneeAmplitude

float GTA.NaturalMotion.BodyWritheHelper.KneeAmplitude
set

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

◆ Lean1BlendFactor

float GTA.NaturalMotion.BodyWritheHelper.Lean1BlendFactor
set

Shoulder desired lean1 with shoulderLean1 angle blend factor. Set it to 0 to use original shoulder withe desired lean1 angle for shoulders. Note that onFire has to be set to true for this parameter to take any effect.

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

◆ Lean2BlendFactor

float GTA.NaturalMotion.BodyWritheHelper.Lean2BlendFactor
set

Shoulder desired lean2 with shoulderLean2 angle blend factor. Set it to 0 to use original shoulder withe desired lean2 angle for shoulders. Note that onFire has to be set to true for this parameter to take any effect.

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

◆ LegAmplitude

float GTA.NaturalMotion.BodyWritheHelper.LegAmplitude
set

Scales the amount of writhe. 0 = no writhe.

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

◆ LegDamping

float GTA.NaturalMotion.BodyWritheHelper.LegDamping
set

Damping amount, less is underdamped.

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

◆ LegPeriod

float GTA.NaturalMotion.BodyWritheHelper.LegPeriod
set

Controls how fast the writhe is executed, smaller values make faster motions.

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

◆ LegStiffness

float GTA.NaturalMotion.BodyWritheHelper.LegStiffness
set

The stiffness of the character will determine how 'determined' a writhe this is - high values will make him thrash about wildly.

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

◆ Mask

string GTA.NaturalMotion.BodyWritheHelper.Mask
set

Two character body-masking value, bitwise joint mask or bitwise logic string of two character body-masking value (see Active Pose notes for possible values).

Default value = "fb".

◆ MaxRollOverTime

float GTA.NaturalMotion.BodyWritheHelper.MaxRollOverTime
set

Rolling torque is ramped down over time. At this time in seconds torque value converges to zero. Use this parameter to restrict time the character is rolling. Note that onFire has to be set to true for this parameter to take any effect.

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

◆ OnFire

bool GTA.NaturalMotion.BodyWritheHelper.OnFire
set

Extra shoulderBlend. Rolling:one way only, maxRollOverTime, rollOverRadius, doesn't reduce arm stiffness to help rolling. No shoulder twist.

Default value = False.

◆ RollOverFlag

bool GTA.NaturalMotion.BodyWritheHelper.RollOverFlag
set

Flag to set trying to rollOver.

Default value = False.

◆ RollOverRadius

float GTA.NaturalMotion.BodyWritheHelper.RollOverRadius
set

Rolling torque is ramped down with distance measured from position where character hit the ground and started rolling. At this distance in meters torque value converges to zero. Use this parameter to restrict distance the character travels due to rolling. Note that onFire has to be set to true for this parameter to take any effect.

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

◆ RollTorqueScale

float GTA.NaturalMotion.BodyWritheHelper.RollTorqueScale
set

Scale rolling torque that is applied to character spine.

Default value = 150.0f. Min value = 0.0f. Max value = 300.0f.

◆ ShoulderLean1

float GTA.NaturalMotion.BodyWritheHelper.ShoulderLean1
set

Blend writhe shoulder desired lean1 with this angle in RAD. Note that onFire has to be set to true for this parameter to take any effect.

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

◆ ShoulderLean2

float GTA.NaturalMotion.BodyWritheHelper.ShoulderLean2
set

Blend writhe shoulder desired lean2 with this angle in RAD. Note that onFire has to be set to true for this parameter to take any effect.

Default value = 0.4f. Min value = 0.0f. Max value = 6.3f.


The documentation for this class was generated from the following file: