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.SetCharacterDampingHelper Class Reference

Damp out cartwheeling and somersaulting above a certain threshold. More...

Inheritance diagram for GTA.NaturalMotion.SetCharacterDampingHelper:
GTA.NaturalMotion.CustomHelper

Public Member Functions

 SetCharacterDampingHelper (Ped ped)
 Creates a new Instance of the SetCharacterDampingHelper for sending a SetCharacterDamping 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 SomersaultThresh [set]
 Somersault AngularMomentum measure above which we start damping - try 34.0. Falling over straight backwards gives 54 on hitting ground. More...
 
float SomersaultDamp [set]
 Amount to damp somersaulting by (spinning around left/right axis) - try 0.45. More...
 
float CartwheelThresh [set]
 Cartwheel AngularMomentum measure above which we start damping - try 27.0. More...
 
float CartwheelDamp [set]
 Amount to damp somersaulting by (spinning around front/back axis) - try 0.8. More...
 
float VehicleCollisionTime [set]
 Time after impact with a vehicle to apply characterDamping. -ve values mean always apply whether collided with vehicle or not. =0.0 never apply. =timestep apply for only that frame. A typical roll from being hit by a car lasts about 4secs. More...
 
bool V2 [set]
 If true damping is proportional to Angular momentum squared. If false proportional to Angular momentum. 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...
 

Detailed Description

Damp out cartwheeling and somersaulting above a certain threshold.

Constructor & Destructor Documentation

◆ SetCharacterDampingHelper()

GTA.NaturalMotion.SetCharacterDampingHelper.SetCharacterDampingHelper ( Ped  ped)

Creates a new Instance of the SetCharacterDampingHelper for sending a SetCharacterDamping Message to a given Ped.

Parameters
pedThe Ped to send the SetCharacterDamping Message to.

Damp out cartwheeling and somersaulting above a certain threshold.

Property Documentation

◆ CartwheelDamp

float GTA.NaturalMotion.SetCharacterDampingHelper.CartwheelDamp
set

Amount to damp somersaulting by (spinning around front/back axis) - try 0.8.

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

◆ CartwheelThresh

float GTA.NaturalMotion.SetCharacterDampingHelper.CartwheelThresh
set

Cartwheel AngularMomentum measure above which we start damping - try 27.0.

Default value = 27.0f. Min value = 0.0f. Max value = 200.0f.

◆ SomersaultDamp

float GTA.NaturalMotion.SetCharacterDampingHelper.SomersaultDamp
set

Amount to damp somersaulting by (spinning around left/right axis) - try 0.45.

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

◆ SomersaultThresh

float GTA.NaturalMotion.SetCharacterDampingHelper.SomersaultThresh
set

Somersault AngularMomentum measure above which we start damping - try 34.0. Falling over straight backwards gives 54 on hitting ground.

Default value = 34.0f. Min value = 0.0f. Max value = 200.0f.

◆ V2

bool GTA.NaturalMotion.SetCharacterDampingHelper.V2
set

If true damping is proportional to Angular momentum squared. If false proportional to Angular momentum.

Default value = False.

◆ VehicleCollisionTime

float GTA.NaturalMotion.SetCharacterDampingHelper.VehicleCollisionTime
set

Time after impact with a vehicle to apply characterDamping. -ve values mean always apply whether collided with vehicle or not. =0.0 never apply. =timestep apply for only that frame. A typical roll from being hit by a car lasts about 4secs.

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


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