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
12 changes: 6 additions & 6 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, followed by the MilSO.
The Tachi and ZR68C 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,8 +22,8 @@ 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` and `jinrai_milso`. Each scene has one rig and one action, and both teams' arms (see One scene per
gun).
`jinrai_tachi`, `jinrai_zr68c` 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
Expand Down Expand Up @@ -101,8 +101,8 @@ field of view. The camera matches the game this way:

- The game puts the model at the player's eye, then moves it by `ViewModelOffset` (`forward`, `right`, `up`) in
`game/neo/scripts/weapon_GUN.txt`. The camera moves by the opposite amount instead, so the export is unchanged.
Forward in Blender is -Y, right is -X, up is +Z, so the camera sits at (right, forward, -up): Tachi (5, 5, 0).
It looks along -Y with +Z up.
Forward in Blender is -Y, right is -X, up is +Z, so the camera sits at (right, forward, -up): ZR68C (8, 10, 0),
Tachi (5, 5, 0). It looks along -Y with +Z up.
- The lens has a vertical field of view of 46.83 degrees (Sensor Fit: Vertical). That is the game's `VMFov` of 60,
which Source measures horizontally on a 4:3 screen. The game reads `VMFov` at the top level of the weapon script
(60 if absent); the `fov` key inside `ViewModelOffset` is not used.
Expand Down Expand Up @@ -220,7 +220,7 @@ exec wine "$HOME/sdk2013mp/bin/studiomdl.exe" "${args[@]}"
python3 compile_viewmodels.py jinrai_tachi nsf_tachi --compiler ~/bin/studiomdl-wine --game ~/src/neo/game/neo
```

Then copy the generated files (`v_*_tachi.*` for the Tachi) from the game directory's
Then copy the generated files (`v_*_tachi.*` for the Tachi, `v_*_zr68c.*` for the ZR68C) from the game directory's
`models/weapons/` to neoAssets `neo/models/weapons/`. The compile overwrites older models in the game directory.


Expand Down
1,276 changes: 1,276 additions & 0 deletions neo/modelsrc/weapons/jinrai_zr68c/anims/changemode.smd

Large diffs are not rendered by default.

1,382 changes: 1,382 additions & 0 deletions neo/modelsrc/weapons/jinrai_zr68c/anims/draw.smd

Large diffs are not rendered by default.

746 changes: 746 additions & 0 deletions neo/modelsrc/weapons/jinrai_zr68c/anims/fire.smd

Large diffs are not rendered by default.

746 changes: 746 additions & 0 deletions neo/modelsrc/weapons/jinrai_zr68c/anims/fire1.smd

Large diffs are not rendered by default.

746 changes: 746 additions & 0 deletions neo/modelsrc/weapons/jinrai_zr68c/anims/fire2.smd

Large diffs are not rendered by default.

746 changes: 746 additions & 0 deletions neo/modelsrc/weapons/jinrai_zr68c/anims/fire3.smd

Large diffs are not rendered by default.

534 changes: 534 additions & 0 deletions neo/modelsrc/weapons/jinrai_zr68c/anims/fireempty.smd

Large diffs are not rendered by default.

587 changes: 587 additions & 0 deletions neo/modelsrc/weapons/jinrai_zr68c/anims/holster.smd

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

640 changes: 640 additions & 0 deletions neo/modelsrc/weapons/jinrai_zr68c/anims/idletolow.smd

Large diffs are not rendered by default.

110 changes: 110 additions & 0 deletions neo/modelsrc/weapons/jinrai_zr68c/anims/lowidle.smd
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
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 "zr68c" 23
44 "Charge" 43
45 "Clip" 43
46 "clasp02" 43
47 "Muzzle" 43
48 "Eject" 43
49 "Dummy02" 0
50 "x_short" 49
51 "Main" 50
end
skeleton
time 0
0 8.828125 -0.733398 -23.687500 -0.156417 0.008252 -3.094876
1 -8.679690 19.109379 -11.820309 -1.383465 -0.929628 -2.385329
2 -0.035536 -23.756720 -0.084857 0.495295 -0.112085 -0.567376
3 0.273366 -3.765811 -0.387137 0.000000 0.000000 -0.000000
4 0.000003 -3.784228 -0.191473 -1.064579 -0.178241 0.000008
5 0.024374 -3.235440 0.175101 -0.922029 -0.002681 0.002286
6 -0.111965 -3.553719 0.074805 -1.102995 0.087016 0.015727
7 1.858443 -3.773891 0.198662 0.000000 -0.245131 0.075729
8 -0.000000 -3.784237 -0.191475 -1.156679 0.090794 -0.024576
9 0.074588 -3.334558 0.036043 -1.009349 -0.002691 0.002323
10 -0.033769 -2.966137 0.050353 -1.188054 0.026131 0.048063
11 -1.407703 -3.765809 -0.387135 0.000000 0.000000 -0.095034
12 0.000006 -3.784236 -0.191478 -1.140365 -0.125049 0.025217
13 0.038991 -2.749648 0.107391 -0.746850 -0.028932 -0.038362
14 0.013192 -3.474702 0.024518 -1.073980 0.019857 0.037766
15 -2.992730 -3.619920 0.091620 -0.000000 0.000000 -0.168174
16 -0.231691 -2.899983 -0.226467 -0.991913 -0.125068 0.025200
17 0.047093 -3.464695 0.060486 -1.096529 0.006876 0.017114
18 -0.012929 -2.746926 0.096230 -0.952576 -0.072484 0.061731
19 2.231814 -1.416991 1.590841 -1.030575 -0.774577 1.232289
20 0.316679 -3.892336 -0.185575 -0.364960 -0.578838 -0.202630
21 0.269052 -3.933446 0.328680 0.001255 0.089557 -0.216649
22 24.562498 -12.500000 1.715822 -1.574912 1.590168 -0.773557
23 0.035542 23.756729 -0.084860 0.853524 0.023350 -0.045445
24 -0.273363 3.765811 0.387137 0.000000 0.000000 -0.000000
25 -0.000000 3.784242 0.191474 -0.446109 -0.143092 0.061073
26 -0.024371 3.235438 -0.175101 -1.253705 -0.002704 0.002331
27 0.111963 3.553716 -0.074807 -1.364840 0.087075 0.015758
28 -1.858451 3.773900 -0.198661 -0.000000 -0.245131 0.075729
29 -0.000004 3.784230 0.191475 -0.122252 0.093311 -0.004824
30 -0.074582 3.334555 -0.036042 -0.223961 -0.002704 0.002331
31 0.033765 2.966137 -0.050351 -0.856461 0.026121 0.048147
32 1.407702 3.765814 0.387137 0.000000 -0.000000 -0.095034
33 -0.000000 3.784231 0.191476 -0.705893 -0.116309 0.040343
34 -0.038990 2.749645 -0.107381 -1.270513 -0.028980 -0.038419
35 -0.013190 3.474694 -0.024515 -1.423080 0.019874 0.037834
36 2.992722 3.619935 -0.091622 -0.000000 -0.000000 -0.168174
37 0.231692 2.899977 0.226468 -0.730128 -0.125139 0.025178
38 -0.047095 3.464710 -0.060472 -1.358395 0.006848 0.017134
39 0.012929 2.746930 -0.096230 -1.144578 -0.072458 0.061817
40 -2.231816 1.416991 -1.590842 -0.961137 -0.813399 1.071353
41 -0.316674 3.892336 0.185578 -0.766404 -0.578852 -0.202579
42 -0.269051 3.933445 -0.328676 -1.154412 0.089592 -0.216743
43 -3.258734 9.421424 -1.633043 1.568367 -0.052482 -1.570742
44 4.192390 -0.602886 7.525446 -0.000000 -0.000000 0.000000
45 -0.024063 0.281982 -0.022672 -0.000305 0.000005 0.030763
46 -31.359087 -3.020214 5.145412 -0.000000 0.000259 1.570583
47 -40.021358 -0.694194 5.523044 -1.568337 -3.134884 -0.002753
48 -9.750736 -0.012708 7.330534 -0.102747 -0.173202 1.566096
49 5.437929 23.108690 8.060462 0.000000 -0.000000 3.141592
50 0.000000 -7.350405 -4.908567 -0.034912 0.000306 3.141387
51 0.058807 -13.562499 6.867191 1.572943 -0.005977 1.568242
end
Loading