|
DayZ 1.24
|
Private Member Functions | |
| void | EffBulletImpactBase () |
| override void | OnCheckUpdate () |
| void | SetEnterParticle (int id) |
| void | SetExitParticle (int id) |
| void | SetRicochetParticle (int id) |
| void | SetSingleParticle (int id) |
| void | SetAngledEnterValue (float f) |
| void | EvaluateEffect (Object directHit, int componentIndex, vector pos, int impact_type, vector surfNormal, vector exitPos, vector inSpeed, vector outSpeed, string ammoType) |
| float | CalculateStoppingForce (float in_speedf, float out_speedf, string ammoType, float weight) |
| void | OnEnterCalculations (Particle p) |
| void | OnExitCalculations (Particle p, float outSpeedf) |
| void | OnRicochetCalculations (Particle p, float outspeedf) |
| void | OnEnterAngledCalculations (Particle p) |
| override void | Event_OnStarted () |
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 | |
| float | MIN_SCALING_PARAM = 0.1 |
| Object | m_DirectHit |
| float | m_StoppingForce |
| float | m_Weight |
| int | m_ImpactType |
| int | m_ComponentIndex |
| vector | m_Pos |
| vector | m_SurfNormal |
| vector | m_ExitPos |
| vector | m_InSpeed |
| vector | m_OutSpeed |
| string | m_AmmoType |
| int | m_ParticleEnter = -1 |
| int | m_ParticleExit = -1 |
| int | m_ParticleRicochet = -1 |
| float | m_EnterSplashCoef = 0.003 |
| float | m_ExitSplashCoef = 0.002 |
| float | m_RicochetSplashCoef = 0.002 |
| float | m_EnterAngledSplashCoef = 0.01 |
| float | m_AngledEnter = 0.40 |
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 const int | SURVIVOR_HEAD = 0 |
| static const int | INFECTED_HEAD = 3 |
| static float | DEFAULT_PROJECTILE_WEIGHT = 0.015 |
| static vector | INVALID = "0 0 0" |
Definition at line 1 of file BulletImpactBase.c.
|
inlineprivate |
Definition at line 35 of file BulletImpactBase.c.
|
inlineprivate |
Definition at line 88 of file BulletImpactBase.c.
References DEFAULT_PROJECTILE_WEIGHT, m_ImpactType, and Math::RandomFloat().
Referenced by EvaluateEffect().
|
inlineprivate |
Definition at line 72 of file BulletImpactBase.c.
References CalculateStoppingForce(), GetGame(), vector::Length(), m_AmmoType, m_ComponentIndex, m_DirectHit, m_ExitPos, m_ImpactType, m_InSpeed, m_OutSpeed, m_Pos, m_StoppingForce, m_SurfNormal, and m_Weight.
Definition at line 219 of file BulletImpactBase.c.
References vector::Distance(), vector::Dot(), GetDayZGame(), GetGame(), ParticleList::IMPACT_DISTANT_DUST, INVALID, vector::Length(), m_AngledEnter, m_ExitPos, m_ImpactType, m_InSpeed, m_OutSpeed, m_ParticleEnter, m_ParticleExit, m_ParticleRicochet, m_Pos, m_SurfNormal, vector::Normalized(), OnEnterAngledCalculations(), OnEnterCalculations(), OnExitCalculations(), OnRicochetCalculations(), ParticleManager(), EffectParticle::SetParticle(), Type, and vector::VectorToAngles().
Definition at line 40 of file BulletImpactBase.c.
Definition at line 197 of file BulletImpactBase.c.
References m_EnterAngledSplashCoef, m_StoppingForce, and MIN_SCALING_PARAM.
Referenced by Event_OnStarted().
Definition at line 100 of file BulletImpactBase.c.
References m_AmmoType, m_EnterSplashCoef, and m_StoppingForce.
Referenced by Event_OnStarted().
Definition at line 153 of file BulletImpactBase.c.
References m_ExitSplashCoef, and MIN_SCALING_PARAM.
Referenced by Event_OnStarted().
Definition at line 175 of file BulletImpactBase.c.
References m_RicochetSplashCoef, m_StoppingForce, and MIN_SCALING_PARAM.
Referenced by Event_OnStarted().
Definition at line 67 of file BulletImpactBase.c.
References m_AngledEnter.
Definition at line 45 of file BulletImpactBase.c.
References m_ParticleEnter.
Referenced by Hit_Water::CalculateStoppingForce(), Hit_Concrete::Hit_Concrete(), Hit_Dirt::Hit_Dirt(), Hit_Foliage::Hit_Foliage(), Hit_Glass::Hit_Glass(), Hit_Glass_Thin::Hit_Glass_Thin(), Hit_Grass::Hit_Grass(), Hit_Gravel::Hit_Gravel(), Hit_MeatBones::Hit_MeatBones(), Hit_Metal::Hit_Metal(), Hit_Plaster::Hit_Plaster(), Hit_Plastic::Hit_Plastic(), Hit_Rubber::Hit_Rubber(), Hit_Sand::Hit_Sand(), Hit_Textile::Hit_Textile(), Hit_Wood::Hit_Wood(), and SetSingleParticle().
Definition at line 50 of file BulletImpactBase.c.
References m_ParticleExit.
Referenced by Hit_Concrete::Hit_Concrete(), Hit_Dirt::Hit_Dirt(), Hit_Foliage::Hit_Foliage(), Hit_Glass::Hit_Glass(), Hit_Glass_Thin::Hit_Glass_Thin(), Hit_Grass::Hit_Grass(), Hit_Gravel::Hit_Gravel(), Hit_MeatBones::Hit_MeatBones(), Hit_Metal::Hit_Metal(), Hit_Plaster::Hit_Plaster(), Hit_Plastic::Hit_Plastic(), Hit_Rubber::Hit_Rubber(), Hit_Sand::Hit_Sand(), Hit_Textile::Hit_Textile(), Hit_Wood::Hit_Wood(), and SetSingleParticle().
Definition at line 55 of file BulletImpactBase.c.
References m_ParticleRicochet.
Referenced by Hit_Concrete::Hit_Concrete(), Hit_Dirt::Hit_Dirt(), Hit_Foliage::Hit_Foliage(), Hit_Glass::Hit_Glass(), Hit_Glass_Thin::Hit_Glass_Thin(), Hit_Grass::Hit_Grass(), Hit_Gravel::Hit_Gravel(), Hit_MeatBones::Hit_MeatBones(), Hit_Metal::Hit_Metal(), Hit_Plaster::Hit_Plaster(), Hit_Plastic::Hit_Plastic(), Hit_Rubber::Hit_Rubber(), Hit_Sand::Hit_Sand(), Hit_Textile::Hit_Textile(), Hit_Wood::Hit_Wood(), and SetSingleParticle().
Definition at line 60 of file BulletImpactBase.c.
References SetEnterParticle(), SetExitParticle(), and SetRicochetParticle().
Referenced by Hit_ErrorNoMaterial::Hit_ErrorNoMaterial(), Hit_MeatBones_MeleeFist::Hit_MeatBones_MeleeFist(), Hit_Undefined::Hit_Undefined(), and Hit_Water::Hit_Water().
|
staticprivate |
Definition at line 5 of file BulletImpactBase.c.
Referenced by CalculateStoppingForce(), Hit_Foliage::CalculateStoppingForce(), Hit_MeatBones::CalculateStoppingForce(), and Hit_Water::CalculateStoppingForce().
Definition at line 4 of file BulletImpactBase.c.
|
staticprivate |
Definition at line 21 of file BulletImpactBase.c.
Referenced by Event_OnStarted().
|
private |
Definition at line 19 of file BulletImpactBase.c.
Referenced by EvaluateEffect(), OnEnterCalculations(), and Hit_MeatBones::OnEnterCalculations().
|
private |
Definition at line 33 of file BulletImpactBase.c.
Referenced by Event_OnStarted(), Hit_Concrete::Hit_Concrete(), Hit_Grass::Hit_Grass(), Hit_MeatBones::Hit_MeatBones(), Hit_Water::Hit_Water(), and SetAngledEnterValue().
|
private |
Definition at line 13 of file BulletImpactBase.c.
Referenced by EvaluateEffect().
|
private |
Definition at line 9 of file BulletImpactBase.c.
Referenced by Hit_MeatBones::CalculateStoppingForce(), and EvaluateEffect().
|
private |
Definition at line 32 of file BulletImpactBase.c.
Referenced by OnEnterAngledCalculations().
|
private |
Definition at line 29 of file BulletImpactBase.c.
Referenced by Hit_MeatBones::Hit_MeatBones(), OnEnterCalculations(), Hit_MeatBones::OnEnterCalculations(), and Hit_Wood::OnEnterCalculations().
|
private |
Definition at line 16 of file BulletImpactBase.c.
Referenced by EvaluateEffect(), Event_OnStarted(), and Hit_MeatBones::Event_OnStarted().
|
private |
Definition at line 30 of file BulletImpactBase.c.
Referenced by Hit_MeatBones::Hit_MeatBones(), OnExitCalculations(), Hit_MeatBones::OnExitCalculations(), and Hit_Wood::OnExitCalculations().
|
private |
Definition at line 12 of file BulletImpactBase.c.
Referenced by CalculateStoppingForce(), Hit_Foliage::CalculateStoppingForce(), Hit_MeatBones::CalculateStoppingForce(), EvaluateEffect(), Event_OnStarted(), and Hit_MeatBones::Event_OnStarted().
|
private |
Definition at line 17 of file BulletImpactBase.c.
Referenced by EvaluateEffect(), Event_OnStarted(), and Hit_MeatBones::Event_OnStarted().
|
private |
Definition at line 18 of file BulletImpactBase.c.
Referenced by EvaluateEffect(), Event_OnStarted(), and Hit_MeatBones::Event_OnStarted().
|
private |
Definition at line 24 of file BulletImpactBase.c.
Referenced by Event_OnStarted(), and SetEnterParticle().
|
private |
Definition at line 25 of file BulletImpactBase.c.
Referenced by Event_OnStarted(), and SetExitParticle().
|
private |
Definition at line 26 of file BulletImpactBase.c.
Referenced by Event_OnStarted(), and SetRicochetParticle().
|
private |
Definition at line 14 of file BulletImpactBase.c.
Referenced by EvaluateEffect(), Event_OnStarted(), and Hit_MeatBones::OnEnterCalculations().
|
private |
Definition at line 31 of file BulletImpactBase.c.
Referenced by OnRicochetCalculations().
|
private |
Definition at line 10 of file BulletImpactBase.c.
Referenced by Hit_MeatBones::BloodSplatGround(), EvaluateEffect(), OnEnterAngledCalculations(), OnEnterCalculations(), Hit_MeatBones::OnEnterCalculations(), Hit_Wood::OnEnterCalculations(), and OnRicochetCalculations().
|
private |
Definition at line 15 of file BulletImpactBase.c.
Referenced by EvaluateEffect(), Hit_Water::EvaluateEffect(), and Event_OnStarted().
|
private |
Definition at line 11 of file BulletImpactBase.c.
Referenced by EvaluateEffect().
|
private |
Definition at line 7 of file BulletImpactBase.c.
Referenced by Hit_MeatBones::Hit_MeatBones(), OnEnterAngledCalculations(), Hit_MeatBones::OnEnterCalculations(), Hit_Wood::OnEnterCalculations(), OnExitCalculations(), Hit_MeatBones::OnExitCalculations(), Hit_Wood::OnExitCalculations(), and OnRicochetCalculations().
Definition at line 3 of file BulletImpactBase.c.