Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
EffBulletImpactBase Class Reference
Inheritance diagram for EffBulletImpactBase:
EffectParticle Hit_Concrete Hit_Dirt Hit_ErrorNoMaterial Hit_Foliage Hit_Glass Hit_Glass_Thin Hit_Grass Hit_Gravel Hit_Ice Hit_MeatBones Hit_Metal Hit_Plaster Hit_Plastic Hit_Rubber Hit_Sand Hit_Snow Hit_Textile Hit_Undefined Hit_Water Hit_Wood

Private Member Functions

void EffBulletImpactBase ()
float CalculateStoppingForce (float in_speedf, float out_speedf, string ammoType, float weight)
void EvaluateEffect (Object directHit, int componentIndex, vector pos, int impact_type, vector surfNormal, vector exitPos, vector inSpeed, vector outSpeed, string ammoType)
override void Event_OnStarted ()
override void OnCheckUpdate ()
void OnEnterAngledCalculations (Particle p)
void OnEnterCalculations (Particle p)
void OnExitCalculations (Particle p, float outSpeedf)
void OnRicochetCalculations (Particle p, float outspeedf)
void SetAngledEnterValue (float f)
void SetEnterParticle (int id)
void SetExitParticle (int id)
void SetRicochetParticle (int id)
void SetSingleParticle (int id)
Private Member Functions inherited from EffectParticle
override EffectType GetEffectType ()
 Get what type of effect the Effect is.
override bool IsParticle ()
 Check whether the Effect is EffectParticle without casting.
void SetParticle (Particle p)
 Sets the main particle which this Effect will manage.
Particle GetParticle ()
 Gets the main particle which this Effect is managing.
override void Start ()
 Plays all elements this effect consists of.
override void Stop ()
 Stops all elements this effect consists of.
void AttachTo (Object obj, vector local_pos="0 0 0", vector local_ori="0 0 0", bool force_rotation_to_world=false)
 Read Particle.AddAsChild.
void ReAttach ()
 Helper method to attach to parent using stored settings.
void AddAsChild (Object obj, vector local_pos, vector local_ori, bool force_rotation_to_world)
 Helper method to attach to parent.
void Event_OnPlayStart ()
 Event which just simply exists (DEPRECATED).
void Event_OnPlayStarted ()
 Event which just simply exists (DEPRECATED).
void SetParticleID (int id)
 Sets the id of the particle to be used.
int GetParticleID ()
 Gets the id of the particle to be used.
void SetCurrentParticleID (int id)
 Sets the id of the particle to be used.
int GetCurrentParticleID ()
 Gets the current id of the managed Particle.
override void SetCurrentParent (Object parent_obj, bool updateCached=true)
 Set current parent of the managed Particle.
override Object GetCurrentParent ()
 Get the current parent of the managed Particle.
override void SetCurrentPosition (vector pos, bool updateCached=true)
 Set the current world position of the managed Particle.
override vector GetCurrentPosition ()
 Get the current world position of the managed Particle.
override void SetCurrentLocalPosition (vector pos, bool updateCached=true)
 Set the current local position of the managed Particle.
override vector GetCurrentLocalPosition ()
 Get the current local position of the managed Particle.
void SetOrientation (vector ori)
 Set orientation of the EffectParticle.
vector GetOrientation ()
 Get the orientation of the EffectParticle.
void SetCurrentOrientation (vector ori, bool updateCached=true)
 Set the current orientation of the managed Particle.
vector GetCurrentOrientation ()
 Get the current orientation of the managed Particle.
void ForceParticleRotationRelativeToWorld (bool state)
 Set orientation setting to be used by the effect when the Effect starts.
bool IsParticleRotationRelativeToWorld ()
 Get the orientation setting to be used by the effect when the Effect starts.
bool IsParticleCurrentRotationRelativeToWorld ()
 Get the current orientation setting to be used by the managed Particle.
void EffectParticle ()
 ctor
void ~EffectParticle ()
 dtor
override void InitEffect ()
 init
override string GetDebugName ()
 Override when getting debug information.
override void ValidateStart ()
 Validation whether an effect truly started playing or if the Effect should stop as none is present.
void CheckLifeSpan ()
 Was never called and probably should never be called.
void SetDecalOwner (Object o)

Private Attributes

string m_AmmoType
float m_AngledEnter = 0.40
int m_ComponentIndex
Object m_DirectHit
float m_EnterAngledSplashCoef = 0.01
float m_EnterSplashCoef = 0.003
vector m_ExitPos
float m_ExitSplashCoef = 0.002
int m_ImpactType
vector m_InSpeed
vector m_OutSpeed
int m_ParticleEnter = -1
int m_ParticleExit = -1
int m_ParticleRicochet = -1
vector m_Pos
float m_RicochetSplashCoef = 0.002
float m_StoppingForce
vector m_SurfNormal
float m_Weight
float MIN_SCALING_PARAM = 0.1
Private Attributes inherited from EffectParticle
Particle m_ParticleObj
 The main Particle effect that this Effect wrapper manages.
int m_ParticleID
 The ID in the ParticleList to create Particle from.
vector m_Orientation
 Orientation set by SetOrientation.
bool m_ForceRotationRelativeToWorld
 Orientation setting to be used by the effect when the Effect starts.
vector m_ParticleOrientation
Object m_Object

Static Private Attributes

static float DEFAULT_PROJECTILE_WEIGHT = 0.015
static const int INFECTED_HEAD = 3
static vector INVALID = "0 0 0"
static const int SURVIVOR_HEAD = 0

Detailed Description

Definition at line 1 of file bulletimpactbase.c.

Constructor & Destructor Documentation

◆ EffBulletImpactBase()

void EffBulletImpactBase ( )
inlineprivate

Definition at line 35 of file bulletimpactbase.c.

Member Function Documentation

◆ CalculateStoppingForce()

float CalculateStoppingForce ( float in_speedf,
float out_speedf,
string ammoType,
float weight )
inlineprivate

Definition at line 88 of file bulletimpactbase.c.

References DEFAULT_PROJECTILE_WEIGHT, m_ImpactType, and Math::RandomFloat().

Referenced by EvaluateEffect().

◆ EvaluateEffect()

void EvaluateEffect ( Object directHit,
int componentIndex,
vector pos,
int impact_type,
vector surfNormal,
vector exitPos,
vector inSpeed,
vector outSpeed,
string ammoType )
inlineprivate

◆ Event_OnStarted()

◆ OnCheckUpdate()

override void OnCheckUpdate ( )
inlineprivate

Definition at line 40 of file bulletimpactbase.c.

◆ OnEnterAngledCalculations()

void OnEnterAngledCalculations ( Particle p)
inlineprivate

◆ OnEnterCalculations()

void OnEnterCalculations ( Particle p)
inlineprivate

◆ OnExitCalculations()

void OnExitCalculations ( Particle p,
float outSpeedf )
inlineprivate

Definition at line 155 of file bulletimpactbase.c.

References m_ExitSplashCoef, MIN_SCALING_PARAM, and Particle::ScaleParticleParam().

Referenced by Event_OnStarted().

◆ OnRicochetCalculations()

void OnRicochetCalculations ( Particle p,
float outspeedf )
inlineprivate

◆ SetAngledEnterValue()

void SetAngledEnterValue ( float f)
inlineprivate

Definition at line 67 of file bulletimpactbase.c.

References m_AngledEnter.

◆ SetEnterParticle()

◆ SetExitParticle()

◆ SetRicochetParticle()

◆ SetSingleParticle()

Field Documentation

◆ DEFAULT_PROJECTILE_WEIGHT

float DEFAULT_PROJECTILE_WEIGHT = 0.015
staticprivate

◆ INFECTED_HEAD

const int INFECTED_HEAD = 3
staticprivate

Definition at line 4 of file bulletimpactbase.c.

◆ INVALID

vector INVALID = "0 0 0"
staticprivate

Definition at line 21 of file bulletimpactbase.c.

Referenced by Event_OnStarted().

◆ m_AmmoType

string m_AmmoType
private

◆ m_AngledEnter

◆ m_ComponentIndex

int m_ComponentIndex
private

Definition at line 13 of file bulletimpactbase.c.

Referenced by EvaluateEffect().

◆ m_DirectHit

Object m_DirectHit
private

Definition at line 9 of file bulletimpactbase.c.

Referenced by Hit_MeatBones::CalculateStoppingForce(), and EvaluateEffect().

◆ m_EnterAngledSplashCoef

float m_EnterAngledSplashCoef = 0.01
private

Definition at line 32 of file bulletimpactbase.c.

Referenced by OnEnterAngledCalculations().

◆ m_EnterSplashCoef

◆ m_ExitPos

vector m_ExitPos
private

◆ m_ExitSplashCoef

◆ m_ImpactType

◆ m_InSpeed

vector m_InSpeed
private

◆ m_OutSpeed

vector m_OutSpeed
private

◆ m_ParticleEnter

int m_ParticleEnter = -1
private

Definition at line 24 of file bulletimpactbase.c.

Referenced by Event_OnStarted(), and SetEnterParticle().

◆ m_ParticleExit

int m_ParticleExit = -1
private

Definition at line 25 of file bulletimpactbase.c.

Referenced by Event_OnStarted(), and SetExitParticle().

◆ m_ParticleRicochet

int m_ParticleRicochet = -1
private

Definition at line 26 of file bulletimpactbase.c.

Referenced by Event_OnStarted(), and SetRicochetParticle().

◆ m_Pos

vector m_Pos
private

◆ m_RicochetSplashCoef

float m_RicochetSplashCoef = 0.002
private

Definition at line 31 of file bulletimpactbase.c.

Referenced by OnRicochetCalculations().

◆ m_StoppingForce

◆ m_SurfNormal

vector m_SurfNormal
private

Definition at line 15 of file bulletimpactbase.c.

Referenced by EvaluateEffect(), Hit_Water::EvaluateEffect(), and Event_OnStarted().

◆ m_Weight

float m_Weight
private

Definition at line 11 of file bulletimpactbase.c.

Referenced by EvaluateEffect().

◆ MIN_SCALING_PARAM

◆ SURVIVOR_HEAD

const int SURVIVOR_HEAD = 0
staticprivate

Definition at line 3 of file bulletimpactbase.c.


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