OSP Kit [MB Warband Japan] Human Animations (Modmerger pack)

Shcherbyna

Sergeant
Best answers
0




[MB Warband Japan OSP] Human Animations (Modmerger pack)


# Adds a new animations and player's actions in game
# MB Warband v1.1xx

Home: http://code.fosshub.com/MB-Warband-Japan-OSP/wiki/MB-Warband-Japan-OSP-Human-Animations-Modmerger-pack
ru-board: http://rusmnb.ru/index.php?topic=9010.0

Download page: http://code.fosshub.com/MB-Warband-Japan-OSP/downloads

Intro: http://youtu.be/hT942-x1_lg

Animations:
+ "run_forward" - walking (not runs) if no weapon in hands
+ "shinobi_jump" - ninja jumping style. Allows you to jump on the roofs. Player is ninja if he has ninja map icon. Player has ninja map icon if he equips Black Hood item (for example). * Attention! This staff requires [MB Warband Japan OSP] Map Icons Animation (ModMerger Kit)



+ Japanese sitting style for men and women
  "sitting_man_seiza"
  "sitting_man_agura"
  "sitting_woman_seiza"
  "sitting_woman_aguraR"
+ "stand_up" - stand up animation


* Attention! Next staff requires Native Command Line or StudyMod Command Line

Command Line commands:
+ "seiza" - player sits in seiza pose
+ "agura" - player sits in agura pose
+ "stand up" - player stands up from sitting pose

After reviewing the source code you will see:
+ How to use Modmerger to add or replace the animation in the module system
+ How to use Modmerger to replace tuple in script
+ How to replace the standard jump by new one under the given conditions

=== Install ===

* Installed ModMerger must be. (http://www.mbrepository.com/file.php?id=2151)

1) Copy resources to Warband/Modules/YourMod/
2) Edit module.ini
3) Copy to Module_system/ Japan_OSP-folder
4) Edit modmerger_options.py
5) Build module by build_module.bat
 

Shcherbyna

Sergeant
Best answers
0
Bug: The player does not sit with arms

player_actions_scripts.py said:
update_script_command_line_analyzer = [
            (this_or_next|eq, "$cmd_code", 2639), # "stand up"
            (eq, "$cmd_code", 1655), # "встать"
            (agent_set_animation, "$g_player_agent", "anim_stand_up"),
            #(mission_cam_set_mode, 0, 5000, 0), # привязать камеру к игроку
            (agent_set_no_dynamics, "$g_player_agent", 0), # включить движение агента
        (else_try),
            (eq, "$cmd_code", 1480), # "seiza" (crouch)
            # Камера привязывается к игроку на высоте 166-180, двигать камерой на новой высоте не получается.
            # (mission_cam_set_mode, 1, 0, 0), # отвязать камеру от игрока и разрешить ей сдвинуться вниз
            # (mission_cam_get_position, pos10),
            # (position_move_z, pos10, -50, 1),
            # (mission_cam_animate_to_position, pos10, 1000),
            # Hide weapon first / убрать оружие, иначе на сядет
            (agent_get_wielded_item, ":wielded_weapon", "$g_player_agent", 0),
            (agent_unequip_item, "$g_player_agent", ":wielded_weapon"),

            (troop_get_type, ":is_female", "trp_player"),
            ...
            ...

        (else_try),
            (eq, "$cmd_code", 1350), # "agura" (crouch)
            # Hide weapon first / убрать оружие, иначе на сядет
            (agent_get_wielded_item, ":wielded_weapon", "$g_player_agent", 0),
            (agent_unequip_item, "$g_player_agent", ":wielded_weapon"),

            (troop_get_type, ":is_female", "trp_player"),
            ...
            ...
           
]