I added smoke to a projectile with version 1.1. But with 1.2 I can no longer use the same edits. I did add smoke to artillery by adding an effect (note not a end_effect) in descr_projectile_new.txt:
Code:
projectile boulder
effect boulder_explosion_set
end_effect boulder_explosion_set
damage 70
damage_to_troops 8
radius 0.3
mass 0.1
area 2.0
accuracy_vs_units 0.09
accuracy_vs_buildings 0.0625
min_angle 0
max_angle 70
velocity 60
bounce 0.5 0.6 0.5 0.4
display aimed
effect_only
In descr_arrow_trail_effect I changed the boulder_explosion_set so that it contained only 1 effect:
Code:
effect_set boulder_explosion_set
{
lod 1000
{
;boulder_explosion_01
;boulder_explosion_02
;boulder_dust_explosion
boulder_dust_explosion2
}
}
Then the effect itself. I edited so it only contained one debris model. And the parameters are changed so that the effect does not last long.
Code:
effect boulder_dust_explosion2
{
type explosion
{
; dust explode
model models_effects/explosion_dust2.cas
anim_time 0.5
max_scale 0.1
max_particle_scale 4
scale_time_bias .9
alpha_time_bias 0.6
; debris
debris_model models_effects/explosion_dust2.cas
debris_num_particles 1
debris_lifetime_range 2.2, 15
debris_emit_angle 80 ; degrees
debris_time_bias 0.9
debris_velocity_range 1.01, 1.05
debris_scale_range 6.4, 7.6
}
}
The above works for artillery, but when applied to infantry it shows the smoke for a fraction of a second before the game CTDs. This wasn't the case in 1.1, so I guess the code was changed concerning projectiles (something to do with the flaming arrows?).
So does anyone know how to add smoke to infantry, or could someone from CA shed a light on this?
It would be perfect if we could add a smoke that stays floating in the air around the model before disappearing. But the first part of the effect (dust explode) is attached to the projectile so it moves forward very fast, while the second effect is affected by gravity so it comes down, while it should slowly drift upwards. Jerome? 
Thanks,
Rob
Bookmarks