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

Public Member Functions

 ShotSnapHelper (Ped ped)
 Creates a new Instance of the ShotSnapHelper for sending a ShotSnap 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

bool Snap [set]
 Add a Snap to shot. More...
 
float SnapMag [set]
 The magnitude of the reaction. More...
 
float SnapMovingMult [set]
 MovingMult*snapMag = The magnitude of the reaction if moving(comVelMag) faster than movingThresh. More...
 
float SnapBalancingMult [set]
 BalancingMult*snapMag = The magnitude of the reaction if balancing = (not lying on the floor/ not upper body not collided) and not airborne. More...
 
float SnapAirborneMult [set]
 AirborneMult*snapMag = The magnitude of the reaction if airborne. More...
 
float SnapMovingThresh [set]
 If moving(comVelMag) faster than movingThresh then mvingMult applied to stunMag. More...
 
float SnapDirectionRandomness [set]
 The character snaps in a prescribed way (decided by bullet direction) - Higher the value the more random this direction is. More...
 
bool SnapLeftArm [set]
 Snap the leftArm. More...
 
bool SnapRightArm [set]
 Snap the rightArm. More...
 
bool SnapLeftLeg [set]
 Snap the leftLeg. More...
 
bool SnapRightLeg [set]
 Snap the rightLeg. More...
 
bool SnapSpine [set]
 Snap the spine. More...
 
bool SnapNeck [set]
 Snap the neck. More...
 
bool SnapPhasedLegs [set]
 Legs are either in phase with each other or not. More...
 
int SnapHipType [set]
 Type of hip reaction 0=none, 1=side2side 2=steplike. More...
 
bool SnapUseBulletDir [set]
 Legs are either in phase with each other or not. More...
 
bool SnapHitPart [set]
 Snap only around the wounded part//mmmmtodo check whether bodyPart doesn't have to be remembered for unSnap. More...
 
float UnSnapInterval [set]
 Interval before applying reverse snap. More...
 
float UnSnapRatio [set]
 The magnitude of the reverse snap. More...
 
bool SnapUseTorques [set]
 Use torques to make the snap otherwise use a change in the parts angular velocity. 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

◆ ShotSnapHelper()

GTA.NaturalMotion.ShotSnapHelper.ShotSnapHelper ( Ped  ped)

Creates a new Instance of the ShotSnapHelper for sending a ShotSnap Message to a given Ped.

Parameters
pedThe Ped to send the ShotSnap Message to.

Property Documentation

◆ Snap

bool GTA.NaturalMotion.ShotSnapHelper.Snap
set

Add a Snap to shot.

Default value = False.

◆ SnapAirborneMult

float GTA.NaturalMotion.ShotSnapHelper.SnapAirborneMult
set

AirborneMult*snapMag = The magnitude of the reaction if airborne.

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

◆ SnapBalancingMult

float GTA.NaturalMotion.ShotSnapHelper.SnapBalancingMult
set

BalancingMult*snapMag = The magnitude of the reaction if balancing = (not lying on the floor/ not upper body not collided) and not airborne.

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

◆ SnapDirectionRandomness

float GTA.NaturalMotion.ShotSnapHelper.SnapDirectionRandomness
set

The character snaps in a prescribed way (decided by bullet direction) - Higher the value the more random this direction is.

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

◆ SnapHipType

int GTA.NaturalMotion.ShotSnapHelper.SnapHipType
set

Type of hip reaction 0=none, 1=side2side 2=steplike.

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

◆ SnapHitPart

bool GTA.NaturalMotion.ShotSnapHelper.SnapHitPart
set

Snap only around the wounded part//mmmmtodo check whether bodyPart doesn't have to be remembered for unSnap.

Default value = False.

◆ SnapLeftArm

bool GTA.NaturalMotion.ShotSnapHelper.SnapLeftArm
set

Snap the leftArm.

Default value = False.

◆ SnapLeftLeg

bool GTA.NaturalMotion.ShotSnapHelper.SnapLeftLeg
set

Snap the leftLeg.

Default value = False.

◆ SnapMag

float GTA.NaturalMotion.ShotSnapHelper.SnapMag
set

The magnitude of the reaction.

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

◆ SnapMovingMult

float GTA.NaturalMotion.ShotSnapHelper.SnapMovingMult
set

MovingMult*snapMag = The magnitude of the reaction if moving(comVelMag) faster than movingThresh.

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

◆ SnapMovingThresh

float GTA.NaturalMotion.ShotSnapHelper.SnapMovingThresh
set

If moving(comVelMag) faster than movingThresh then mvingMult applied to stunMag.

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

◆ SnapNeck

bool GTA.NaturalMotion.ShotSnapHelper.SnapNeck
set

Snap the neck.

Default value = True.

◆ SnapPhasedLegs

bool GTA.NaturalMotion.ShotSnapHelper.SnapPhasedLegs
set

Legs are either in phase with each other or not.

Default value = True.

◆ SnapRightArm

bool GTA.NaturalMotion.ShotSnapHelper.SnapRightArm
set

Snap the rightArm.

Default value = False.

◆ SnapRightLeg

bool GTA.NaturalMotion.ShotSnapHelper.SnapRightLeg
set

Snap the rightLeg.

Default value = False.

◆ SnapSpine

bool GTA.NaturalMotion.ShotSnapHelper.SnapSpine
set

Snap the spine.

Default value = True.

◆ SnapUseBulletDir

bool GTA.NaturalMotion.ShotSnapHelper.SnapUseBulletDir
set

Legs are either in phase with each other or not.

Default value = True.

◆ SnapUseTorques

bool GTA.NaturalMotion.ShotSnapHelper.SnapUseTorques
set

Use torques to make the snap otherwise use a change in the parts angular velocity.

Default value = True.

◆ UnSnapInterval

float GTA.NaturalMotion.ShotSnapHelper.UnSnapInterval
set

Interval before applying reverse snap.

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

◆ UnSnapRatio

float GTA.NaturalMotion.ShotSnapHelper.UnSnapRatio
set

The magnitude of the reverse snap.

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


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