Skip to content

Commit

Permalink
add: warrior & CharacterMode
Browse files Browse the repository at this point in the history
  • Loading branch information
Sufhal committed Sep 24, 2024
1 parent d0b11f9 commit e8932e6
Show file tree
Hide file tree
Showing 94 changed files with 500 additions and 119 deletions.
Binary file added assets/pack/item/weapon/0270.glb
Binary file not shown.
Binary file added assets/pack/item/weapon/03180.glb
Binary file not shown.
Binary file added assets/pack/item/weapon/05330.glb
Binary file not shown.
Binary file modified assets/pack/monster/stray_dog/00.glb
Binary file not shown.
Binary file modified assets/pack/monster/stray_dog/00_1.glb
Binary file not shown.
Binary file modified assets/pack/monster/stray_dog/00_2.glb
Binary file not shown.
Binary file added assets/pack/monster/stray_dog/02.glb
Binary file not shown.
Binary file added assets/pack/monster/stray_dog/03.glb
Binary file not shown.
Binary file added assets/pack/monster/stray_dog/20.glb
Binary file not shown.
Binary file added assets/pack/monster/stray_dog/20_1.glb
Binary file not shown.
Binary file added assets/pack/monster/stray_dog/30.glb
Binary file not shown.
Binary file added assets/pack/monster/stray_dog/31.glb
Binary file not shown.
Binary file added assets/pack/monster/stray_dog/32.glb
Binary file not shown.
Binary file added assets/pack/monster/stray_dog/33.glb
Binary file not shown.
Binary file added assets/pack/monster/stray_dog/34.glb
Binary file not shown.
Binary file added assets/pack/monster/stray_dog/34_1.glb
Binary file not shown.
Binary file added assets/pack/monster/stray_dog/35.glb
Binary file not shown.
Binary file added assets/pack/monster/stray_dog/37.glb
Binary file not shown.
Binary file added assets/pack/monster/stray_dog/37_1.glb
Binary file not shown.
Binary file modified assets/pack/monster/stray_dog/stray_dog.glb
Binary file not shown.
Binary file added assets/pack/monster/wolf/00.glb
Binary file not shown.
Binary file added assets/pack/monster/wolf/00_1.glb
Binary file not shown.
Binary file added assets/pack/monster/wolf/00_2.glb
Binary file not shown.
Binary file added assets/pack/monster/wolf/02.glb
Binary file not shown.
Binary file added assets/pack/monster/wolf/03.glb
Binary file not shown.
Binary file added assets/pack/monster/wolf/20.glb
Binary file not shown.
Binary file added assets/pack/monster/wolf/20_1.glb
Binary file not shown.
Binary file added assets/pack/monster/wolf/30.glb
Binary file not shown.
Binary file added assets/pack/monster/wolf/31.glb
Binary file not shown.
Binary file added assets/pack/monster/wolf/32.glb
Binary file not shown.
Binary file added assets/pack/monster/wolf/33.glb
Binary file not shown.
Binary file added assets/pack/monster/wolf/34.glb
Binary file not shown.
Binary file added assets/pack/monster/wolf/35.glb
Binary file not shown.
Binary file added assets/pack/monster/wolf/37.glb
Binary file not shown.
Binary file added assets/pack/monster/wolf/wolf.glb
Binary file not shown.
Binary file added assets/pack/monster/wolf/wolf_blue.glb
Binary file not shown.
Binary file added assets/pack/monster/wolf/wolf_gray.glb
Binary file not shown.
221 changes: 166 additions & 55 deletions assets/pack/pc/shaman_m/motions.json
Original file line number Diff line number Diff line change
@@ -1,57 +1,168 @@
{
"groups": [
{
"name": "WAIT",
"motions": [
{
"file": "wait",
"probability": 70
},
{
"file": "wait_1",
"probability": 30
}
]
},
{
"name": "RUN",
"motions": [
{
"file": "run",
"probability": 100
}
]
},
{
"name": "ATTACK",
"motions": [
{
"file": "attack",
"probability": 50
},
{
"file": "attack_1",
"probability": 50
}
]
},
{
"name": "FAN_WAIT",
"motions": [
{
"file": "fan/wait",
"probability": 100
}
]
},
{
"name": "FAN_RUN",
"motions": [
{
"file": "fan/run",
"probability": 100
}
]
}
]
"groups": [
{
"name": "WAIT",
"motions": [
{
"file": "wait",
"probability": 70
},
{
"file": "wait_1",
"probability": 30
}
]
},
{
"name": "RUN",
"motions": [
{
"file": "run",
"probability": 100
}
]
},
{
"name": "ATTACK",
"motions": [
{
"file": "attack",
"probability": 50
},
{
"file": "attack_1",
"probability": 50
}
]
},
{
"name": "FAN_WAIT",
"motions": [
{
"file": "fan/wait",
"probability": 100
}
]
},
{
"name": "FAN_RUN",
"motions": [
{
"file": "fan/run",
"probability": 100
}
]
},
{
"name": "BELL_WALK",
"motions": [
{
"file": "bell/walk",
"probability": 100
}
]
},
{
"name": "BELL_RUN",
"motions": [
{
"file": "bell/run",
"probability": 100
}
]
},
{
"name": "BELL_WAIT",
"motions": [
{
"file": "bell/wait",
"probability": 100
}
]
},
{
"name": "BELL_COMBO_1",
"motions": [
{
"file": "bell/combo_01",
"probability": 100
}
]
},
{
"name": "BELL_COMBO_2",
"motions": [
{
"file": "bell/combo_02",
"probability": 100
}
]
},
{
"name": "BELL_COMBO_3",
"motions": [
{
"file": "bell/combo_03",
"probability": 100
}
]
},
{
"name": "BELL_COMBO_4",
"motions": [
{
"file": "bell/combo_04",
"probability": 100
}
]
},
{
"name": "BELL_COMBO_5",
"motions": [
{
"file": "bell/combo_05",
"probability": 100
}
]
},
{
"name": "BELL_COMBO_6",
"motions": [
{
"file": "bell/combo_06",
"probability": 100
}
]
},
{
"name": "BELL_COMBO_7",
"motions": [
{
"file": "bell/combo_07",
"probability": 100
}
]
},
{
"name": "BELL_DAMAGE",
"motions": [
{
"file": "bell/damage",
"probability": 25
},
{
"file": "bell/damage_1",
"probability": 25
},
{
"file": "bell/damage_2",
"probability": 25
},
{
"file": "bell/damage_3",
"probability": 25
}
]
}
]
}
Binary file added assets/pack/pc/warrior_m/general/attack.glb
Binary file not shown.
Binary file added assets/pack/pc/warrior_m/general/attack_1.glb
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added assets/pack/pc/warrior_m/general/damage.glb
Binary file not shown.
Binary file added assets/pack/pc/warrior_m/general/damage_1.glb
Binary file not shown.
Binary file added assets/pack/pc/warrior_m/general/damage_2.glb
Binary file not shown.
Binary file added assets/pack/pc/warrior_m/general/damage_3.glb
Binary file not shown.
Binary file not shown.
Binary file added assets/pack/pc/warrior_m/general/dead.glb
Binary file not shown.
Binary file added assets/pack/pc/warrior_m/general/dig.glb
Binary file not shown.
Binary file not shown.
Binary file added assets/pack/pc/warrior_m/general/run.glb
Binary file not shown.
Binary file added assets/pack/pc/warrior_m/general/wait.glb
Binary file not shown.
Binary file added assets/pack/pc/warrior_m/general/wait_1.glb
Binary file not shown.
Binary file added assets/pack/pc/warrior_m/general/walk.glb
Binary file not shown.
Binary file added assets/pack/pc/warrior_m/hair/hair_3_1.glb
Binary file not shown.
Binary file added assets/pack/pc/warrior_m/hair/hair_4_1.glb
Binary file not shown.
143 changes: 143 additions & 0 deletions assets/pack/pc/warrior_m/motions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
{
"groups": [
{
"name": "GENERAL_WAIT",
"motions": [
{
"file": "general/wait",
"probability": 70
},
{
"file": "general/wait",
"probability": 30
}
]
},
{
"name": "GENERAL_RUN",
"motions": [
{
"file": "general/run",
"probability": 100
}
]
},
{
"name": "GENERAL_ATTACK",
"motions": [
{
"file": "general/attack",
"probability": 50
},
{
"file": "general/attack_1",
"probability": 50
}
]
},
{
"name": "ONEHANDSWORD_WAIT",
"motions": [
{
"file": "onehand_sword/wait",
"probability": 70
},
{
"file": "onehand_sword/wait_1",
"probability": 30
}
]
},
{
"name": "ONEHANDSWORD_RUN",
"motions": [
{
"file": "onehand_sword/run",
"probability": 100
}
]
},
{
"name": "ONEHANDSWORD_WALK",
"motions": [
{
"file": "onehand_sword/walk",
"probability": 100
}
]
},
{
"name": "ONEHANDSWORD_DAMAGE",
"motions": [
{
"file": "onehand_sword/damage",
"probability": 25
},
{
"file": "onehand_sword/damage_1",
"probability": 25
},
{
"file": "onehand_sword/damage_2",
"probability": 25
},
{
"file": "onehand_sword/damage_3",
"probability": 25
}
]
},
{
"name": "TWOHANDSWORD_WAIT",
"motions": [
{
"file": "twohand_sword/wait",
"probability": 70
},
{
"file": "twohand_sword/wait_1",
"probability": 30
}
]
},
{
"name": "TWOHANDSWORD_RUN",
"motions": [
{
"file": "twohand_sword/run",
"probability": 100
}
]
},
{
"name": "TWOHANDSWORD_WALK",
"motions": [
{
"file": "twohand_sword/walk",
"probability": 100
}
]
},
{
"name": "TWOHANDSWORD_DAMAGE",
"motions": [
{
"file": "twohand_sword/damage",
"probability": 25
},
{
"file": "twohand_sword/damage_1",
"probability": 25
},
{
"file": "twohand_sword/damage_2",
"probability": 25
},
{
"file": "twohand_sword/damage_3",
"probability": 25
}
]
}
]
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added assets/pack/pc/warrior_m/onehand_sword/run.glb
Binary file not shown.
Binary file added assets/pack/pc/warrior_m/onehand_sword/wait.glb
Binary file not shown.
Binary file not shown.
Binary file added assets/pack/pc/warrior_m/onehand_sword/walk.glb
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added assets/pack/pc/warrior_m/twohand_sword/run.glb
Binary file not shown.
Binary file added assets/pack/pc/warrior_m/twohand_sword/wait.glb
Binary file not shown.
Binary file not shown.
Binary file added assets/pack/pc/warrior_m/twohand_sword/walk.glb
Binary file not shown.
Binary file added assets/pack/pc/warrior_m/warrior_cheongrin.glb
Binary file not shown.
4 changes: 2 additions & 2 deletions src/modules/assets/gltf_loader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,8 @@ fn extract_skeleton(
)
);
match name {
"equip_left" => skeleton.equip_left = Some(skeleton.bones.len() - 1),
"equip_right" => skeleton.equip_right = Some(skeleton.bones.len() - 1),
"equip_left" | "equip_left_hand" => skeleton.equip_left = Some(skeleton.bones.len() - 1),
"equip_right" | "equip_right_hand" => skeleton.equip_right = Some(skeleton.bones.len() - 1),
_ => (),
};
}
Expand Down
Loading

0 comments on commit e8932e6

Please sign in to comment.