9 SetEffectPath(
"{21AB2949F7DAD15A}Particles/Vehicle/Vehicle_dust_car_BTR_wheel_default.ptc");
12 override void UpdateVehicleDustEffect(
float speed,
float start_speed,
float end_speed)
14 float size_coef = Math.AbsFloat( 0.5 + ( (speed - start_speed)*0.5) / end_speed );
15 float speed_coef = Math.AbsFloat( (speed - start_speed) / end_speed );
16 float gravity_coef = Math.AbsFloat( (speed - start_speed) / end_speed );
18 size_coef = Math.Clamp(size_coef , 0, 1);
19 speed_coef = Math.Clamp(speed_coef , 0, 1);
20 gravity_coef = Math.Clamp(gravity_coef , 0, 1);
23 Particles particles = GetParticles();
24 particles.MultParam(-1, EmitterParam.SIZE, size_coef);
25 particles.MultParam(-1, EmitterParam.GRAVITY_SCALE_RND, gravity_coef);
26 particles.MultParam(-1, EmitterParam.VELOCITY, speed_coef);
27 particles.MultParam(-1, EmitterParam.VELOCITY_RND, speed_coef);