
How to make arrows stick in the ground for longer/ for the entire battle.
This is a VERY simple change but I haven't seen any tutorials so here we go:
1. Open desr_projectile.txt and look at the entry you want to do this for (I have chosen vanilla arrows here):
Code:
projectile arrow
effect arrows_new_set
end_effect arrow_impact_ground_set
end_man_effect man_impact_tiny_set
end_package_effect arrow_impact_wall_set
end_shatter_effect arrow_impact_ground_set
end_shatter_man_effect man_impact_tiny_set
end_shatter_package_effect arrow_broken_impact_wall_set
effect_offset -1.5
damage 0
radius 0.1
mass 0.05
accuracy_vs_units 0.05
affected_by_rain
min_angle -75
max_angle 65
velocity 20 48
display aimed
effect_only
The line in red is the one you want.
2. Open descr_effect_impacts.txt and search (ctrl+f) for the effect set - in this case I searched for arrow_impact_ground_set.
You will find something like this:
Code:
effect_set arrow_impact_ground_set
{
play_time 5
lod 1000
{
arrow_ground_impact
bullet_impact_ground_small
}
}
The line in blue is the one you want.
3. Simply change the play_time value. This controls how long the arrows stay in the ground (I think this is in seconds). You can set this very high to make arrows not disappear at all.
4. (optional) You can change how quickly it fades in and out to stop arrows suddenly disappearing and instead fading out over a longer time. A long fade time can result in ghostly arrows though.
Note the effect listed in the effect_set (highlighted in green above) - this is the effect for the arrow model. You can search for this or scroll up a bit. Here is its entry:
Code:
effect arrow_ground_impact
{
type projectile
{
model models_effects/arrow_projectile_ground_impact.CAS
sort_for_speed
clr_adjust_by_ambient_intensity
fade_time 3
}
}
The line in orange is the one you want. A higher value is a longer fade time.
That's it.
Note: Depending on how powerful your pc is, this can lower the framerate quite a bit. On a relatively good pc I started to get bad framerate (10 or less) with 5000 horse archers using all their ammo and infinite duration for the arrows staying in the ground. If you are struggling with framerate just lower the play_time value of the projectile.