Results 1 to 2 of 2

Thread: Animation Speed Tip (Better looking Battles)

  1. #1
    bitterhowl's Avatar Campidoctor
    Join Date
    Feb 2011
    Location
    Russian Feodality
    Posts
    1,542

    Default Animation Speed Tip (Better looking Battles)

    Inspired by this thread https://www.twcenter.net/forums/show...1#post16057774

    I've composed this script to make battles look better. The only known limitation is that you can set battle speed to 0 only with pause button or hotkey, pressing "toggle speed down" button after 1.2 speed will have no effect.

    Also note, that battle speed always set to 1.0 while camera moves, and then set back to speed which was set before camera movement. Whith this script this way works only for speed 6.0, and if yoy set battle speed to 2.0 and then moved camera speed will return to 1.2

    Code:
    declare_counter pause_on
    declare_counter slow_on
    declare_counter slow_check
    declare_counter speed
    
    set_counter pause_on 0
    set_counter slow_on 0
    set_counter slow_check 0
    set_counter speed 0
    
    monitor_event ShortcutTriggered ShortcutTriggered timeline_control toggle_speed
    
    if I_CompareCounter pause_on = 0
    and I_BattleSpeed = 0.0
    set_counter pause_on 1
    set_counter slow_on 1
    set_counter speed -1
    end_if
    if I_CompareCounter pause_on = 1
    and I_BattleSpeed != 0.0
    set_counter pause_on 0
    set_counter slow_on 0
    set_counter speed 1
    battle_wait 0.1
    battle_set_speed 1.2f
    end_if
    end_monitor
    
    
    monitor_event ButtonPressed ButtonPressed toggle_pause_button
    
    if I_CompareCounter pause_on = 0
    and I_BattleSpeed = 0.0
    set_counter pause_on 1
    set_counter slow_on 1
    set_counter speed -1
    end_if
    if I_CompareCounter pause_on = 1
    and I_BattleSpeed != 0.0
    set_counter pause_on 0
    set_counter slow_on 0
    set_counter speed 1
    battle_wait 0.1
    battle_set_speed 1.2f
    end_if
    end_monitor
    
    monitor_conditions I_InBattle
                if I_BattleSpeed = 2.0
                    if I_CompareCounter speed = 1
                    set_counter speed 2
                    end_if
                    if I_CompareCounter speed = 6
                    set_counter speed 2
                    
                    end_if
                end_if
                if I_BattleSpeed = 6.0
                and I_CompareCounter speed < 6
                set_counter speed 6
                set_counter slow_check 1
                end_if
                if I_BattleSpeed = 1.0
                    if I_CompareCounter speed = 0
                        and I_CompareCounter pause_on = 0
                        set_counter speed 1
                        battle_set_speed 1.2f
                        end_if
                    if I_CompareCounter speed = 0
                        and I_CompareCounter pause_on = 1
                        set_counter speed 1
                        battle_set_speed 1.2f
                        set_counter pause_on 0
                        end_if
                    if I_CompareCounter speed = 2
                        set_counter slow_check 0
                        set_counter speed 1
                        battle_set_speed 1.2f
                        end_if
                    if I_CompareCounter speed = 1
                        battle_set_speed 1.2f
                        end_if
                    if I_CompareCounter speed = 6
                    and I_CompareCounter slow_check = 1
                    battle_set_speed 6.0f
                    end_if
                end_if
    end_if
    
    end_monitor
    To use in custom battle you should use "advisor script" method.

    My sister, do you still recall the blue Hasan and Khalkhin-Gol?
    Russian warship is winning. Proofs needed? Go find yourself!

  2. #2
    bitterhowl's Avatar Campidoctor
    Join Date
    Feb 2011
    Location
    Russian Feodality
    Posts
    1,542

    Default Re: Animation Speed Tip (Better looking Battles)

    I find out that 1.2 speed is sometimes too fast for units that already boosted in EDU, such as missile cavalry - their fast movement looks unnaturally. So I set 1.1 for me and it looks just fine.

    My sister, do you still recall the blue Hasan and Khalkhin-Gol?
    Russian warship is winning. Proofs needed? Go find yourself!

Posting Permissions

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