DayZ 1.24
Loading...
Searching...
No Matches
Hit_Wood Class Reference
Inheritance diagram for Hit_Wood:
[legend]
Collaboration diagram for Hit_Wood:
[legend]

Private Member Functions

void Hit_Wood ()
 
override void OnEnterCalculations (Particle p)
 
override void OnExitCalculations (Particle p, float outSpeedf)
 

Detailed Description

Definition at line 1 of file Hit_Wood.c.

Constructor & Destructor Documentation

◆ Hit_Wood()

Member Function Documentation

◆ OnEnterCalculations()

override void Hit_Wood::OnEnterCalculations ( Particle p)
inlineprivate

Definition at line 10 of file Hit_Wood.c.

11 {
12 // All values represent scale
17
20
23
26
27
28 p.ScaleParticleParam(EmitorParam.VELOCITY, velocity_min);
29 p.ScaleParticleParam(EmitorParam.VELOCITY_RND, velocity_max);
30 p.ScaleParticleParam(EmitorParam.SIZE, size);
31 p.ScaleParticleParam(EmitorParam.BIRTH_RATE, birth_rate);
32 }
EmitorParam
Definition EnVisual.c:114

References EffBulletImpactBase::m_EnterSplashCoef, EffBulletImpactBase::m_StoppingForce, and EffBulletImpactBase::MIN_SCALING_PARAM.

◆ OnExitCalculations()

override void Hit_Wood::OnExitCalculations ( Particle p,
float outSpeedf )
inlineprivate

Definition at line 34 of file Hit_Wood.c.

35 {
38 float size = 1 + (outSpeedf * m_ExitSplashCoef) * 0.5;
39 float birth_rate = 1 + (outSpeedf * m_ExitSplashCoef) * 0.5;
40
43
46
49
50 p.ScaleParticleParam(EmitorParam.VELOCITY, velocity_min);
51 p.ScaleParticleParam(EmitorParam.VELOCITY_RND, velocity_max);
52 p.ScaleParticleParam(EmitorParam.SIZE, size);
53 p.ScaleParticleParam(EmitorParam.BIRTH_RATE, birth_rate);
54 }

References EffBulletImpactBase::m_ExitSplashCoef, and EffBulletImpactBase::MIN_SCALING_PARAM.


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