DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено
Hit_Water.c
См. документацию.
2{
9
10 override void EvaluateEffect(Object directHit, int componentIndex, vector pos, int impact_type, vector surfNormal, vector exitPos, vector inSpeed, vector outSpeed, string ammoType)
11 {
12 super.EvaluateEffect(directHit, componentIndex, pos, impact_type, surfNormal, exitPos, inSpeed, outSpeed, ammoType);
13
14 m_SurfNormal = "0 0 0";
15 }
16
17 override float CalculateStoppingForce(float in_speedf, float out_speedf, string ammoType, float weight)
18 {
19 float projectile_weight_coef = weight / DEFAULT_PROJECTILE_WEIGHT;
20
21 float stopping_force = (in_speedf - out_speedf) * projectile_weight_coef;
22
23 if ( stopping_force < 350 )
25
26 if ( stopping_force >= 350 && stopping_force < 750 )
28
29 if ( stopping_force >= 750 )
31
32 return stopping_force;
33 }
34
35 override void OnEnterCalculations( Particle p )
36 {
37 // no particle scaling
38 }
39
40 override void OnExitCalculations(Particle p, float outSpeedf)
41 {
42 // no particle scaling
43 }
44
45 override void OnRicochetCalculations(Particle p, float outspeedf)
46 {
47 // no particle scaling
48 }
49
51 {
52 // no particle scaling
53 }
54}
vector m_SurfNormal
Определения BulletImpactBase.c:15
void SetSingleParticle(int id)
Определения BulletImpactBase.c:60
void SetEnterParticle(int id)
Определения BulletImpactBase.c:45
float m_AngledEnter
Определения BulletImpactBase.c:33
void EffBulletImpactBase()
Определения BulletImpactBase.c:35
static float DEFAULT_PROJECTILE_WEIGHT
Определения BulletImpactBase.c:5
override void OnRicochetCalculations(Particle p, float outspeedf)
Определения Hit_Water.c:45
override void EvaluateEffect(Object directHit, int componentIndex, vector pos, int impact_type, vector surfNormal, vector exitPos, vector inSpeed, vector outSpeed, string ammoType)
Определения Hit_Water.c:10
override float CalculateStoppingForce(float in_speedf, float out_speedf, string ammoType, float weight)
Определения Hit_Water.c:17
void Hit_Water()
Определения Hit_Water.c:3
override void OnEnterCalculations(Particle p)
Определения Hit_Water.c:35
override void OnEnterAngledCalculations(Particle p)
Определения Hit_Water.c:50
override void OnExitCalculations(Particle p, float outSpeedf)
Определения Hit_Water.c:40
Определения ObjectTyped.c:2
Legacy way of using particles in the game.
Определения Particle.c:7
static const int IMPACT_WATER_SMALL_ENTER
Определения ParticleList.c:247
static const int IMPACT_WATER_MEDIUM_ENTER
Определения ParticleList.c:248
static const int IMPACT_WATER_LARGE_ENTER
Определения ParticleList.c:249
Определения ParticleList.c:12
Определения EnConvert.c:106