I think i'm getting there. I got the sound and flash effect. But the mortar barrel is not turn to the firing direction. Also, how do you "buried" the bunker to the ground ?
In the weapon,
Set anim_table/track_horizontal to Mortar_Angle
Set anim_table/track_horizontal_speed to Turn_Rate
In the barrage ability,
Set artillery_attack/face_to_target to True
To make it burried, you have to create an .abp like this:
vehicle_render_offsety does the trick
model =
{
"ums_mortar_bunker",
}
simvis_attributes =
{
vehicle_physics = 0,
vehicle_width = 0,
vehicle_length = 0,
vehicle_nr_wheels = 0,
vehicle_spring_constant = 0,
vehicle_damper_constant = 0,
vehicle_wheel_travel = 0,
vehicle_acceleration_factor = 0,
vehicle_gravity = 1,
vehicle_render_offset = 0,
vehicle_debug_render = 0,
vehicle_smoothness = 3,
vehicle_render_offsetx = 0,
vehicle_render_offsety = -2.4,
vehicle_render_offsetz = 0,
}