Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
hit_foliage.c
Go to the documentation of this file.
2{
9
10 override float CalculateStoppingForce(float in_speedf, float out_speedf, string ammoType, float weight)
11 {
12 if ( m_ImpactType == ImpactTypes.MELEE )
13 {
14 return 500;
15 }
16
17 float projectile_weight_coef = weight / DEFAULT_PROJECTILE_WEIGHT;
18
19 float stopping_force = in_speedf * projectile_weight_coef * 0.5;
20
21 return stopping_force;
22 }
23}
static float DEFAULT_PROJECTILE_WEIGHT
void SetExitParticle(int id)
void SetRicochetParticle(int id)
void SetEnterParticle(int id)
void Hit_Foliage()
Definition hit_foliage.c:3
override float CalculateStoppingForce(float in_speedf, float out_speedf, string ammoType, float weight)
Definition hit_foliage.c:10
static const int IMPACT_FOLIAGE_ENTER
static const int IMPACT_FOLIAGE_RICOCHET
static const int IMPACT_FOLIAGE_EXIT
ImpactTypes