DayZ 1.24
Loading...
Searching...
No Matches
Hit_Wood.c
Go to the documentation of this file.
2{
9
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 }
33
34 override void OnExitCalculations(Particle p, float outSpeedf)
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 }
55}
void SetExitParticle(int id)
void SetEnterParticle(int id)
void SetRicochetParticle(int id)
override void OnExitCalculations(Particle p, float outSpeedf)
Definition Hit_Wood.c:34
void Hit_Wood()
Definition Hit_Wood.c:3
override void OnEnterCalculations(Particle p)
Definition Hit_Wood.c:10
Legacy way of using particles in the game.
Definition Particle.c:7
static const int IMPACT_WOOD_ENTER
static const int IMPACT_WOOD_RICOCHET
static const int IMPACT_WOOD_EXIT
EmitorParam
Definition EnVisual.c:114