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.ApplyBulletImpulseHelper Class Reference
Inheritance diagram for GTA.NaturalMotion.ApplyBulletImpulseHelper:
GTA.NaturalMotion.CustomHelper

Public Member Functions

 ApplyBulletImpulseHelper (Ped ped)
 Creates a new Instance of the ApplyBulletImpulseHelper for sending a ApplyBulletImpulse 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 EqualizeAmount [set]
 0 means straight impulse, 1 means multiply by the mass (change in velocity). More...
 
int PartIndex [set]
 Index of part being hit. More...
 
Vector3 Impulse [set]
 Impulse vector (impulse is change in momentum). More...
 
Vector3 HitPoint [set]
 Optional point on part where hit. More...
 
bool LocalHitPointInfo [set]
 True = hitPoint is in local coordinates of bodyPart, false = hit point is in world coordinates. More...
 
float ExtraShare [set]
 If not 0.0 then have an extra bullet applied to spine0 (approximates the COM). Uses setup from configureBulletsExtra. 0-1 shared 0.0 = no extra bullet, 0.5 = impulse split equally between extra and bullet, 1.0 only extra bullet. LT 0.0 then bullet + scaled extra bullet. Eg.-0.5 = bullet + 0.5 impulse extra bullet. 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

◆ ApplyBulletImpulseHelper()

GTA.NaturalMotion.ApplyBulletImpulseHelper.ApplyBulletImpulseHelper ( Ped  ped)

Creates a new Instance of the ApplyBulletImpulseHelper for sending a ApplyBulletImpulse Message to a given Ped.

Parameters
pedThe Ped to send the ApplyBulletImpulse Message to.

Property Documentation

◆ EqualizeAmount

float GTA.NaturalMotion.ApplyBulletImpulseHelper.EqualizeAmount
set

0 means straight impulse, 1 means multiply by the mass (change in velocity).

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

◆ ExtraShare

float GTA.NaturalMotion.ApplyBulletImpulseHelper.ExtraShare
set

If not 0.0 then have an extra bullet applied to spine0 (approximates the COM). Uses setup from configureBulletsExtra. 0-1 shared 0.0 = no extra bullet, 0.5 = impulse split equally between extra and bullet, 1.0 only extra bullet. LT 0.0 then bullet + scaled extra bullet. Eg.-0.5 = bullet + 0.5 impulse extra bullet.

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

◆ HitPoint

Vector3 GTA.NaturalMotion.ApplyBulletImpulseHelper.HitPoint
set

Optional point on part where hit.

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

◆ Impulse

Vector3 GTA.NaturalMotion.ApplyBulletImpulseHelper.Impulse
set

Impulse vector (impulse is change in momentum).

Default value = Vector3(0.0f, 0.0f, 0.0f). Min value = -1000.0f. Max value = 1000.0f.

◆ LocalHitPointInfo

bool GTA.NaturalMotion.ApplyBulletImpulseHelper.LocalHitPointInfo
set

True = hitPoint is in local coordinates of bodyPart, false = hit point is in world coordinates.

Default value = False.

◆ PartIndex

int GTA.NaturalMotion.ApplyBulletImpulseHelper.PartIndex
set

Index of part being hit.

Default value = 0. Min value = 0. Max value = 28.


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