Results 1 to 11 of 11

Thread: How to make arrows stay in the ground longer (very easy)

  1. #1

    Icon3 How to make arrows stay in the ground longer (very easy)



    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.



    Last edited by AleksiMizaro; August 29, 2017 at 11:02 AM.

  2. #2

    Default Re: How to make arrows stay in the ground longer (very easy)

    Nice - +1 rep

  3. #3
    Frunk's Avatar Form Follows Function
    took an arrow to the knee

    Join Date
    Jun 2009
    Location
    Gold Coast
    Posts
    6,503

    Default Re: How to make arrows stay in the ground longer (very easy)

    Quote Originally Posted by UBBERDORC View Post
    Nice - +1 rep
    Seconded.

  4. #4
    Gigantus's Avatar I am not special - I am a limited edition.
    Patrician took an arrow to the knee spy of the council

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    53,125
    Blog Entries
    35

    Default Re: How to make arrows stay in the ground longer (very easy)

    There are a few mods that use 'permanent arrows' - but so far no one explained how to do it, thanks for closing the gap. Please add a caution to your OP: this can massively affect your frame rate.

    The usual way is to simply set the fade_time to a ridiculous number, but the more correct way would be the play_time.
    Last edited by Gigantus; August 29, 2017 at 07:57 AM.










  5. #5

    Default Re: How to make arrows stay in the ground longer (very easy)

    Quote Originally Posted by Gigantus View Post
    There are a few mods that use 'permanent arrows' - but so far no one explained how to do it, thanks for closing the gap. Please add a caution to your OP: this can massively affect your frame rate.

    The usual way is to simply set the fade_time to a ridiculous number, but the more correct way would be the play_time.
    Thanks, will do

  6. #6
    Valiant Champion's Avatar Praepositus
    Join Date
    Jun 2008
    Location
    Central Kentucky
    Posts
    5,443

    Default Re: How to make arrows stay in the ground longer (very easy)

    so what do i do if a mod im playing the arrow impact models are invisible. i cant see any arrows stuck in the ground. my graphics is set to highest when it comes to effects. i checked all my other mods and the arrows are in the ground. i tried switching out some arrow models with ones from another mod but that didnt work.

    are the arrow impact models invisible because there are no textures?

    and where would I find these.

    if there are no arrow impact textures in the mod folder wouldnt the file parsing default to vanilla ?

    BETTER PIKES
    https://www.twcenter.net/forums/show...2#post16143112

    THE PIKE WARS HAVE BEGUN!

  7. #7
    Gigantus's Avatar I am not special - I am a limited edition.
    Patrician took an arrow to the knee spy of the council

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    53,125
    Blog Entries
    35

    Default Re: How to make arrows stay in the ground longer (very easy)

    The model needs a texture - the best that can happen without a texture is 'silver surfers' the worst a crash. Which means the texture is complete alpha channel.

    Look for this model: models_effects/arrow_projectile_ground_impact.CAS
    Open it with Notepad and check at the bottom for the texture entry, should be this one: textures\siege_rocket_launcher.tga
    Replace\edit the texture










  8. #8
    Valiant Champion's Avatar Praepositus
    Join Date
    Jun 2008
    Location
    Central Kentucky
    Posts
    5,443

    Default Re: How to make arrows stay in the ground longer (very easy)

    so do i need to to replace the seige_rocket_launcher.texture from mtw2 vanilla? over the seige_rocket_launcher.texture in the mod im using? I have looked for the seige_rocket_launcher.tga even in the mtw2 vanilla model effects / texture and cant find it.

    or are you saying to replace the entry model_effects/arrow_ground_impact.cas entry seige_rocket_launcher.tga path with seige_rocket_launcher.texture ?
    Last edited by Valiant Champion; June 01, 2023 at 07:51 AM.

    BETTER PIKES
    https://www.twcenter.net/forums/show...2#post16143112

    THE PIKE WARS HAVE BEGUN!

  9. #9
    Gigantus's Avatar I am not special - I am a limited edition.
    Patrician took an arrow to the knee spy of the council

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    53,125
    Blog Entries
    35

    Default Re: How to make arrows stay in the ground longer (very easy)

    If the texture isn't present then the default one will be used. Which raises two questions:

    1. Is that CAS model being used?
    2. Has the 'stay' time been reduced to zero?

    The following train will make sure:
    A. Identify a unit whose arrows do not show.
    B. Lookup the unit in the EDU and check it's stat_pri entry for the projectile being used, example: stat_pri 5, 1, arrow, 120, 30, missile
    C. Find the projectile in descr_projectiles (eg projectile arrow), then searxh for it's 'end_shatter_effect' entry (eg arrow_impact_ground_set)
    D. Open descr_projectile_impact and look for that effect, it will state 'arrow_ground_impact' - look for that
    E. Which eventually will lead to this, showing you the CAS model used and the fade time value the arrow is supposed to show:
    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
        }
    }
    Now follow up as described earlier. If the model and\or texture cannot be found in your mod then the default will be used.










  10. #10
    Valiant Champion's Avatar Praepositus
    Join Date
    Jun 2008
    Location
    Central Kentucky
    Posts
    5,443

    Default Re: How to make arrows stay in the ground longer (very easy)

    what i did that i think fixed it was to delete the seige rocket texture and replace it with the seige rocket texture from vanilla total war.

    i just realized it was working now when i saw my orc crossbows arrows sticking in the ground. (all the crossbow and arrow projectiles use the arrow ground impact cas)

    the texture file existed in the BOTET model effects/texture but it was apparently missing something in the texture file.
    Last edited by Valiant Champion; June 02, 2023 at 12:03 AM.

    BETTER PIKES
    https://www.twcenter.net/forums/show...2#post16143112

    THE PIKE WARS HAVE BEGUN!

  11. #11
    Gigantus's Avatar I am not special - I am a limited edition.
    Patrician took an arrow to the knee spy of the council

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    53,125
    Blog Entries
    35

    Default Re: How to make arrows stay in the ground longer (very easy)

    Glad you got it sorted - possibly some format issue or wrongly applied alpha. Simply deleting that file would have already reverted to the default file, but better be sure, I guess.










Tags for this Thread

Posting Permissions

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