Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions neo/modelsrc/weapons/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Weapon model sources

The Tachi viewmodels are the first weapons maintained under these conventions.
The Tachi viewmodels are the first weapons maintained under these conventions, followed by the MilSO.
Expect the folder layout, scripts and steps here to change as more weapons are added.

## Change an animation (quick recipe)
Expand All @@ -22,13 +22,15 @@ For example, a new pose in a slot of the Tachi. Run the commands from this folde
Layout:

- `viewmodels.blend`: the Blender file for every viewmodel. It holds one **scene** per gun, called a project:
`jinrai_tachi`. Each scene has one rig and one action, and both teams' arms (see One scene per gun).
`jinrai_tachi` and `jinrai_milso`. Each scene has one rig and one action, and both teams' arms (see One scene per
gun).
- `PROJECT/` (such as `jinrai_tachi/`): the project's `.qc`, `reference.smd` and `anims/*.smd` (written by the
export). The scripts take project names.
- `nsf_GUN/` (such as `nsf_tachi/`): the NSF model's `.qc`, `reference.smd` and its shipped clips in `anims/`. It has
no scene and is never exported: it compiles from these SMDs.
- `GUN/viewmodel.qci` (such as `tachi/viewmodel.qci`): the QC lines both team models of a gun share. Each team's `.qc`
sets only `$modelname` and includes this file.
sets only `$modelname` and includes this file. The MilSO keeps a whole `.qc` per team, as its team models differ
in more than their bones.
- `arms/textures/` (Jinrai and NSF arms, shared by every weapon) and `GUN/textures/`: preview images the `.blend` loads.
- `rom_limits.py`, `rom_spec.json` and `rom_widen.json`: the range-of-motion limits on the rigs (see
Range-of-motion limits).
Expand Down Expand Up @@ -57,6 +59,9 @@ teams' arm meshes are skinned to that rig, so a key moves both. Each team's mesh
- The shipped slots (`reload`, `draw`, ...) stay the original clips. The export fails when a shipped slot's SMD would
change, unless it runs with `--edit-shipped`; then the changed clip goes to both teams (see Exporting animations).
- `reference.smd` was not changed by the merge: each team's compiled model keeps its own rest pose.
- The MilSO team rigs differ by 0.006 units in the arms. The NSF mesh keeps this only in its compiled model; in the
scene, `merge_teams.py` re-bound the NSF arm vertices for the preview only, so the NSF arms show as the NSF model
plays them.

| term | meaning |
| :-- | :-- |
Expand Down
1,330 changes: 1,330 additions & 0 deletions neo/modelsrc/weapons/jinrai_milso/anims/draw.smd

Large diffs are not rendered by default.

1,330 changes: 1,330 additions & 0 deletions neo/modelsrc/weapons/jinrai_milso/anims/drawempty.smd

Large diffs are not rendered by default.

718 changes: 718 additions & 0 deletions neo/modelsrc/weapons/jinrai_milso/anims/fire.smd

Large diffs are not rendered by default.

718 changes: 718 additions & 0 deletions neo/modelsrc/weapons/jinrai_milso/anims/fire1.smd

Large diffs are not rendered by default.

718 changes: 718 additions & 0 deletions neo/modelsrc/weapons/jinrai_milso/anims/fire2.smd

Large diffs are not rendered by default.

718 changes: 718 additions & 0 deletions neo/modelsrc/weapons/jinrai_milso/anims/fire3.smd

Large diffs are not rendered by default.

718 changes: 718 additions & 0 deletions neo/modelsrc/weapons/jinrai_milso/anims/fireempty.smd

Large diffs are not rendered by default.

565 changes: 565 additions & 0 deletions neo/modelsrc/weapons/jinrai_milso/anims/holster.smd

Large diffs are not rendered by default.

565 changes: 565 additions & 0 deletions neo/modelsrc/weapons/jinrai_milso/anims/holsterempty.smd

Large diffs are not rendered by default.

1,585 changes: 1,585 additions & 0 deletions neo/modelsrc/weapons/jinrai_milso/anims/idle01.smd

Large diffs are not rendered by default.

1,585 changes: 1,585 additions & 0 deletions neo/modelsrc/weapons/jinrai_milso/anims/idle01empty.smd

Large diffs are not rendered by default.

667 changes: 667 additions & 0 deletions neo/modelsrc/weapons/jinrai_milso/anims/idletolow.smd

Large diffs are not rendered by default.

157 changes: 157 additions & 0 deletions neo/modelsrc/weapons/jinrai_milso/anims/lowidle.smd
Original file line number Diff line number Diff line change
@@ -0,0 +1,157 @@
version 1
nodes
0 "Dummy01" -1
1 "bone forearm01" 0
2 "bone hand01" 1
3 "bone middle 05" 2
4 "bone middle 06" 3
5 "bone middle 07" 4
6 "bone middle 08" 5
7 "bone index 05" 2
8 "bone index 06" 7
9 "bone index 07" 8
10 "bone index 08" 9
11 "bone ring 05" 2
12 "bone ring 06" 11
13 "bone ring 07" 12
14 "bone ring 08" 13
15 "bone pinky 05" 2
16 "bone pinky 06" 15
17 "bone pinky 07" 16
18 "bone pinky 08" 17
19 "bone thumb 04" 2
20 "bone thumb 05" 19
21 "bone thumb 06" 20
22 "bone forearm" 0
23 "bone hand" 22
24 "bone middle 1" 23
25 "bone middle 2" 24
26 "bone middle 3" 25
27 "bone middle 4" 26
28 "bone index 1" 23
29 "bone index 2" 28
30 "bone index 3" 29
31 "bone index 4" 30
32 "bone ring 1" 23
33 "bone ring 2" 32
34 "bone ring 3" 33
35 "bone ring 4" 34
36 "bone pinky 1" 23
37 "bone pinky 2" 36
38 "bone pinky 3" 37
39 "bone pinky 4" 38
40 "bone thumb 1" 23
41 "bone thumb 2" 40
42 "bone thumb 3" 41
43 "magrel" 23
44 "slide01" 43
45 "trigger01" 43
46 "mag" 43
47 "catch" 43
48 "Muzzle" 43
49 "Eject" 43
end
skeleton
time 0
0 7.163901 0.365875 -19.936886 -0.099005 0.001714 -3.122014
1 -0.351828 15.330445 -13.820519 -0.745817 -0.815646 -2.913810
2 -0.035546 -23.756725 -0.084865 0.617031 -0.107638 -0.198268
3 0.273359 -3.765809 -0.387137 0.000000 -0.000000 -0.000000
4 0.000005 -3.784251 -0.191478 -0.436319 -0.178305 -0.000000
5 0.024373 -3.235446 0.175102 -0.573025 -0.002704 0.002331
6 -0.111968 -3.553710 0.074802 -0.841225 0.087075 0.015758
7 1.858450 -3.773904 0.198662 0.000000 -0.245131 0.075729
8 0.000001 -3.784233 -0.191478 -0.371285 0.090881 -0.024549
9 0.074581 -3.334573 0.036046 -0.660281 -0.002704 0.002331
10 -0.033768 -2.966134 0.050348 -0.664473 0.026121 0.048147
11 -1.407700 -3.765816 -0.387134 0.000000 -0.000000 -0.095034
12 -0.000001 -3.784249 -0.191473 -0.529534 -0.125139 0.025178
13 0.038986 -2.749633 0.107389 -0.572380 -0.028980 -0.038419
14 0.013192 -3.474696 0.024528 -1.073998 0.019874 0.037834
15 -2.992724 -3.619922 0.091620 0.000000 -0.000000 -0.168174
16 -0.231695 -2.899973 -0.226470 -0.730107 -0.125139 0.025178
17 0.047090 -3.464697 0.060471 -0.747514 0.006848 0.017134
18 -0.012937 -2.746932 0.096220 -0.778043 -0.072458 0.061817
19 2.231810 -1.416989 1.590839 -0.527384 -0.897563 0.885636
20 0.316673 -3.892339 -0.185578 -0.364956 -0.578900 -0.202701
21 0.269059 -3.933446 0.328676 -0.522312 0.089592 -0.216743
22 12.577015 11.498296 1.716355 1.571258 1.551342 1.587294
23 0.035548 23.756725 -0.084859 -0.030468 0.000040 -0.168776
24 -0.273364 3.765804 0.387136 -0.000000 0.000000 0.000000
25 0.000003 3.784235 0.191475 -0.446109 -0.143092 0.061073
26 -0.024380 3.235449 -0.175099 -1.253705 -0.002704 0.002331
27 0.111962 3.553718 -0.074808 -1.364840 0.087075 0.015758
28 -1.858452 3.773895 -0.198659 -0.000000 -0.245131 0.075729
29 -0.000003 3.784242 0.191475 -0.122252 0.093311 -0.004824
30 -0.074586 3.334556 -0.036043 -0.223961 -0.002704 0.002331
31 0.033763 2.966134 -0.050352 -0.856461 0.026121 0.048147
32 1.407697 3.765801 0.387136 -0.000000 -0.000000 -0.095034
33 -0.000005 3.784227 0.191476 -0.705893 -0.116309 0.040343
34 -0.038990 2.749640 -0.107389 -1.270513 -0.028980 -0.038419
35 -0.013191 3.474699 -0.024517 -1.423080 0.019874 0.037834
36 2.992725 3.619932 -0.091621 0.000000 0.000000 -0.168174
37 0.231693 2.899966 0.226468 -0.730128 -0.125139 0.025178
38 -0.047102 3.464699 -0.060486 -1.358395 0.006848 0.017134
39 0.012935 2.746931 -0.096226 -1.144578 -0.072458 0.061817
40 -2.231817 1.416989 -1.590838 -0.961137 -0.813399 1.071353
41 -0.316673 3.892344 0.185572 -0.766382 -0.578900 -0.202701
42 -0.269057 3.933442 -0.328682 -1.154412 0.089592 -0.216743
43 -0.654441 13.212668 -2.661255 1.576859 1.518257 -1.616950
44 -0.000018 1.025505 6.485553 -0.000000 -0.000000 -0.000000
45 -0.000019 -0.074531 3.103131 -0.000000 -0.000000 -0.000000
46 -0.058746 4.909491 2.580144 0.139615 -0.000322 -0.000178
47 0.009377 -0.940649 3.765424 -0.000000 -0.000000 -0.000000
48 -0.001690 -7.901526 6.167818 1.570796 -0.024092 -1.570796
49 -0.122456 0.036167 6.235779 0.003526 -0.174498 3.121287
time 1
0 7.163901 0.365875 -19.936886 -0.099005 0.001714 -3.122014
1 -0.351828 15.330445 -13.820519 -0.745817 -0.815646 -2.913810
2 -0.035546 -23.756725 -0.084865 0.617031 -0.107638 -0.198268
3 0.273359 -3.765809 -0.387137 0.000000 -0.000000 -0.000000
4 0.000005 -3.784251 -0.191478 -0.436319 -0.178305 -0.000000
5 0.024373 -3.235446 0.175102 -0.573025 -0.002704 0.002331
6 -0.111968 -3.553710 0.074802 -0.841225 0.087075 0.015758
7 1.858450 -3.773904 0.198662 0.000000 -0.245131 0.075729
8 0.000001 -3.784233 -0.191478 -0.371285 0.090881 -0.024549
9 0.074581 -3.334573 0.036046 -0.660281 -0.002704 0.002331
10 -0.033768 -2.966134 0.050348 -0.664473 0.026121 0.048147
11 -1.407700 -3.765816 -0.387134 0.000000 -0.000000 -0.095034
12 -0.000001 -3.784249 -0.191473 -0.529534 -0.125139 0.025178
13 0.038986 -2.749633 0.107389 -0.572380 -0.028980 -0.038419
14 0.013192 -3.474696 0.024528 -1.073998 0.019874 0.037834
15 -2.992724 -3.619922 0.091620 0.000000 -0.000000 -0.168174
16 -0.231695 -2.899973 -0.226470 -0.730107 -0.125139 0.025178
17 0.047090 -3.464697 0.060471 -0.747514 0.006848 0.017134
18 -0.012937 -2.746932 0.096220 -0.778043 -0.072458 0.061817
19 2.231810 -1.416989 1.590839 -0.527384 -0.897563 0.885636
20 0.316673 -3.892339 -0.185578 -0.364956 -0.578900 -0.202701
21 0.269059 -3.933446 0.328676 -0.522312 0.089592 -0.216743
22 12.577015 11.498296 1.716355 1.571258 1.551342 1.587294
23 0.035548 23.756725 -0.084859 -0.030468 0.000040 -0.168776
24 -0.273364 3.765804 0.387136 -0.000000 0.000000 0.000000
25 0.000003 3.784235 0.191475 -0.446109 -0.143092 0.061073
26 -0.024380 3.235449 -0.175099 -1.253705 -0.002704 0.002331
27 0.111962 3.553718 -0.074808 -1.364840 0.087075 0.015758
28 -1.858452 3.773895 -0.198659 -0.000000 -0.245131 0.075729
29 -0.000003 3.784242 0.191475 -0.122252 0.093311 -0.004824
30 -0.074586 3.334556 -0.036043 -0.223961 -0.002704 0.002331
31 0.033763 2.966134 -0.050352 -0.856461 0.026121 0.048147
32 1.407697 3.765801 0.387136 -0.000000 -0.000000 -0.095034
33 -0.000005 3.784227 0.191476 -0.705893 -0.116309 0.040343
34 -0.038990 2.749640 -0.107389 -1.270513 -0.028980 -0.038419
35 -0.013191 3.474699 -0.024517 -1.423080 0.019874 0.037834
36 2.992725 3.619932 -0.091621 0.000000 0.000000 -0.168174
37 0.231693 2.899966 0.226468 -0.730128 -0.125139 0.025178
38 -0.047102 3.464699 -0.060486 -1.358395 0.006848 0.017134
39 0.012935 2.746931 -0.096226 -1.144578 -0.072458 0.061817
40 -2.231817 1.416989 -1.590838 -0.961137 -0.813399 1.071353
41 -0.316673 3.892344 0.185572 -0.766382 -0.578900 -0.202701
42 -0.269057 3.933442 -0.328682 -1.154412 0.089592 -0.216743
43 -0.654441 13.212668 -2.661255 1.576859 1.518257 -1.616950
44 -0.000018 1.025505 6.485553 -0.000000 -0.000000 -0.000000
45 -0.000019 -0.074531 3.103131 -0.000000 -0.000000 -0.000000
46 -0.058746 4.909491 2.580144 0.139615 -0.000322 -0.000178
47 0.009377 -0.940649 3.765424 -0.000000 -0.000000 -0.000000
48 -0.001690 -7.901526 6.167818 1.570796 -0.024092 -1.570796
49 -0.122456 0.036167 6.235779 0.003526 -0.174498 3.121287
end
Loading