Results 1 to 3 of 3

Thread: Editing Artillery

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default Editing Artillery

    Hi,

    I'm editing some units, but I don't see how to augment the range of the mortar?
    --> 350 should be range (see below), but changing this figure to 500 doesn't seem to help? has this to do with the max and min angle in the projectile.txt? (I tried it with bows, and it worked...?)


    descr_projectiles.txt

    min_angle 45
    max_angle 90
    prefer_high
    velocity 60 30




    export_descr_units.txt


    type Dwarfs mortar
    dictionary Dwarfs_mortar
    category siege
    class missile
    voice_type Heavy
    ;accent Scottish
    banner faction main_missile
    banner holy crusade
    soldier Dwarfs_cannon_crew, 16, 4, 1.75
    engine mortar
    attributes sea_faring, can_withdraw, hardy, cannon, artillery
    formation 1.5, 1.5, 3, 3, 3, square
    stat_health 1, 0
    stat_pri 6, 4, no, 0, 0, melee, melee_blade, piercing, sword, 0, 1
    stat_pri_attr no
    stat_sec 50, 10, exploding_dwarf_mortar_kernel, 350, 80, siege_missile, artillery_gunpowder, blunt, none, 0, 1
    stat_sec_attr ap, launching, area
    stat_pri_armour 5, 4, 0, leather
    stat_sec_armour 0, 0, leather
    stat_heat 0
    stat_ground 0, -4, -5, 0
    stat_mental 9, disciplined, trained
    stat_charge_dist 50
    stat_fire_delay 0
    stat_food 60, 300
    stat_cost 2, 3000, 600, 100, 100, 3000, 2, 380
    armour_ug_levels 1
    armour_ug_models Dwarfs_cannon_crew
    ownership poland
    info_pic_dir merc
    ;card_pic_dir allgemein
    recruit_priority_offset 30

    Thnx!

  2. #2
    MeatChopper's Avatar Libertus
    Join Date
    Apr 2009
    Location
    Stuttgart, Germany
    Posts
    64

    Default Re: Editing Artillery

    The minimum angle shouldn't affect the range, because the maximum range is at 45° and they can shoot at that angle. I'll keep testing.


    Edit: Got it. EDU range 500 and projectile velocity 90 45 works for me. Not sure why, though. My guess would be this: the effect that's being played when the mortars fire has a maximum duration, so the projectile has to be fast enough to traverse the increased range in time. Can't verify it, though.

    2nd Edit: If I read these notes at the beginning of the descr_projectile correctly, my assumption was right. The maximum range is tied to the projectile's velocity.

    ; projectile descriptions text file
    ;
    ; to calculate projectile parameters take
    ; d = shot distance from export_unit_descr.txt
    ; d = v^2 / g (at 45 deg) -> v = sqrt(d*9.81)
    ; check weapon ranges with angle ranges using
    ; d = v^2 * sin(2*a) / g
    Last edited by MeatChopper; September 05, 2014 at 01:00 PM.
    Freiheit und Leben kann man uns nehmen, die Ehre nicht.


  3. #3

    Default Re: Editing Artillery

    OK.
    Thank you for the help!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •