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
Binary file added neo/models/weapons/v_jinrai_pz.dx80.vtx
Binary file not shown.
Binary file added neo/models/weapons/v_jinrai_pz.dx90.vtx
Binary file not shown.
Binary file added neo/models/weapons/v_jinrai_pz.mdl
Binary file not shown.
Binary file added neo/models/weapons/v_jinrai_pz.sw.vtx
Binary file not shown.
Binary file added neo/models/weapons/v_jinrai_pz.vvd
Binary file not shown.
Binary file added neo/models/weapons/v_nsf_pz.dx80.vtx
Binary file not shown.
Binary file added neo/models/weapons/v_nsf_pz.dx90.vtx
Binary file not shown.
Binary file added neo/models/weapons/v_nsf_pz.mdl
Binary file not shown.
Binary file added neo/models/weapons/v_nsf_pz.sw.vtx
Binary file not shown.
Binary file added neo/models/weapons/v_nsf_pz.vvd
Binary file not shown.
20 changes: 14 additions & 6 deletions neo/modelsrc/weapons/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Weapon model sources

The Tachi and ZR68C viewmodels are the first weapons maintained under these conventions, followed by the ZR68-S,
ZR68-L, Kyla, MilSO, AA13 and SRS.
ZR68-L, Kyla, MilSO, AA13, SRS and PZ252.
Expect the folder layout, scripts and steps here to change as more weapons are added.

## Change an animation (quick recipe)
Expand All @@ -26,20 +26,23 @@ Layout:

- `viewmodels.blend`: the Blender file for every viewmodel. It holds one **scene** per gun, called a project:
`jinrai_tachi`, `jinrai_zr68c`, `jinrai_zr68s`, `jinrai_zr68l`, `jinrai_klya9` (the Kyla), `jinrai_milso`,
`jinrai_aa13` and `jinrai_srs`. Each scene has one rig and one action, and both teams' arms (see One scene per gun).
`jinrai_aa13`, `jinrai_srs` and `jinrai_pz` (the PZ252). 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`, `anims/*.smd` (written by the
export) and `composites.txt` (if used). The scripts take project names.
- `nsf_GUN/` (such as `nsf_zr68c/`): 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 and from the Jinrai glued clips.
- `jinrai_GUN/glued.qci` (guns with glued clips, now the ZR68C, ZR68-L, Kyla, AA13 and SRS): the `$sequence` lines
of the glued clips, read from `jinrai_GUN/anims/`. Both team `.qc` files include it, so the NSF model compiles the
Jinrai glued clips. The variants of a gun family include their base gun's file instead (see Gun families).
- `jinrai_GUN/glued.qci` (guns with glued clips, now the ZR68C, ZR68-L, Kyla, AA13, SRS and PZ252): the
`$sequence` lines of the glued clips, read from `jinrai_GUN/anims/`. Both team `.qc` files include it, so the NSF
model compiles the Jinrai glued clips. The variants of a gun family include their base gun's file instead (see Gun
families).
- `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. The ZR68-S and ZR68-L follow the ZR68C layout
(`zr68s/viewmodel.qci`, `zr68l/viewmodel.qci`); the ZR68-L scope's preview images are the MX's, in `mx/textures/`.
The AA13 follows the ZR68C layout with `aa13/viewmodel.qci`. The SRS shares `srs/viewmodel.qci` and keeps
`$definebone` per team, as its team rigs differ; a part of its preview mesh uses the M41's image, in
`mosok41/textures/`. The MilSO keeps a whole `.qc` per team, as its team models differ in more than their bones.
`mosok41/textures/`. The PZ252 shares `pz/viewmodel.qci` and keeps `$definebone` per team, as the SRS.
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 @@ -322,6 +325,11 @@ f0-16 (ends on `idle` f0: the SRS idle sequence has no `01`). Its `charge` seque
unchanged; the marker `charge:3_cycle` (f25, the bolt home) gives the `charge` row of the phases file, the time
the next round counts as chambered after a shot.

The PZ252 (drum-fed) has the same four clips. It joins `reload` after f70 and f143, and leaves it at f143, after
the drum latch and its jerk (the load step is credited at f121, the drum seat; its third sound, the latch, plays in
the full and after-unload clips only). Slots: `drawunloaded` f0-40, `drawtocycle` f0-30, `skipcycle` f0-11. Its
unload step has two sound pieces and its load step three.

The animator makes the motion look right and places markers; the export does the frame and time arithmetic.
The `README_ANIMATOR` text block in `viewmodels.blend` repeats these rules.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

3,290 changes: 3,290 additions & 0 deletions neo/modelsrc/weapons/jinrai_pz/anims/drawtocycle_reload.smd

Large diffs are not rendered by default.

2,230 changes: 2,230 additions & 0 deletions neo/modelsrc/weapons/jinrai_pz/anims/drawunloaded.smd

Large diffs are not rendered by default.

7,689 changes: 7,689 additions & 0 deletions neo/modelsrc/weapons/jinrai_pz/anims/drawunloaded_reload.smd

Large diffs are not rendered by default.

6,682 changes: 6,682 additions & 0 deletions neo/modelsrc/weapons/jinrai_pz/anims/drawunloaded_reload_skipcycle.smd

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

746 changes: 746 additions & 0 deletions neo/modelsrc/weapons/jinrai_pz/anims/fire01.smd

Large diffs are not rendered by default.

746 changes: 746 additions & 0 deletions neo/modelsrc/weapons/jinrai_pz/anims/fire02.smd

Large diffs are not rendered by default.

746 changes: 746 additions & 0 deletions neo/modelsrc/weapons/jinrai_pz/anims/fire03.smd

Large diffs are not rendered by default.

481 changes: 481 additions & 0 deletions neo/modelsrc/weapons/jinrai_pz/anims/fireempty.smd

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

481 changes: 481 additions & 0 deletions neo/modelsrc/weapons/jinrai_pz/anims/idletolow.smd

Large diffs are not rendered by default.

163 changes: 163 additions & 0 deletions neo/modelsrc/weapons/jinrai_pz/anims/lowidle.smd
Original file line number Diff line number Diff line change
@@ -0,0 +1,163 @@
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 "PZ" 23
44 "Eject" 43
45 "Muzzle" 43
46 "Slide" 43
47 "Trigger" 43
48 "StockMain" 43
49 "Stock" 48
50 "Drum" 43
51 "Dummy02" 0
end
skeleton
time 0
0 6.710763 0.350250 -21.400202 -0.208664 0.018121 -3.056249
1 -13.039717 27.436281 -15.465093 1.951709 -2.458337 0.010026
2 -0.035540 -23.756721 -0.084864 0.296481 1.052258 -0.291478
3 0.273353 -3.765806 -0.387137 0.000000 0.000000 -0.000000
4 -0.000003 -3.784237 -0.191477 -0.698114 -0.178305 -0.000000
5 0.024370 -3.235431 0.175100 -0.573015 -0.002704 0.002331
6 -0.111962 -3.553725 0.074802 -0.841230 0.087075 0.015758
7 1.858441 -3.773902 0.198658 -0.000000 -0.245131 0.075729
8 -0.000012 -3.784246 -0.191477 -0.633076 0.090881 -0.024549
9 0.074584 -3.334560 0.036045 -0.660291 -0.002704 0.002331
10 -0.033773 -2.966133 0.050352 -0.664470 0.026121 0.048147
11 -1.407707 -3.765816 -0.387137 0.000000 -0.000000 -0.095034
12 -0.000007 -3.784239 -0.191469 -0.791333 -0.125139 0.025178
13 0.038983 -2.749652 0.107387 -0.572368 -0.028980 -0.038419
14 0.013192 -3.474690 0.024520 -1.074002 0.019874 0.037834
15 -2.992725 -3.619930 0.091621 0.000000 0.000000 -0.168174
16 -0.231688 -2.899984 -0.226464 -0.991924 -0.125139 0.025178
17 0.047093 -3.464705 0.060471 -0.747513 0.006848 0.017134
18 -0.012930 -2.746922 0.096229 -0.428978 -0.072458 0.061817
19 2.231813 -1.416991 1.590844 -0.611755 -0.774564 1.232350
20 0.316676 -3.892337 -0.185575 0.071367 -0.578900 -0.202701
21 0.269054 -3.933444 0.328679 0.001270 0.089592 -0.216743
22 24.573471 -12.498531 1.713413 -1.570338 1.590273 -0.768965
23 0.035545 23.756729 -0.084858 0.853493 0.023413 -0.045489
24 -0.273366 3.765808 0.387137 -0.000000 -0.000000 0.000000
25 -0.000003 3.784238 0.191474 -0.796868 -0.113996 0.102031
26 -0.024374 3.235439 -0.175101 -1.428238 -0.002704 0.002331
27 0.111962 3.553715 -0.074804 -1.277573 0.087075 0.015758
28 -1.858453 3.773897 -0.198660 -0.000000 -0.245131 0.075729
29 -0.000002 3.784230 0.191477 -0.122252 0.093311 -0.004824
30 -0.074586 3.334560 -0.036041 -0.223961 -0.002704 0.002331
31 0.033767 2.966136 -0.050351 -0.856461 0.026121 0.048147
32 1.407699 3.765807 0.387137 0.000000 0.000000 -0.095034
33 -0.000009 3.784244 0.191475 -1.055599 -0.107319 0.047811
34 -0.038985 2.749642 -0.107386 -1.270513 -0.028980 -0.038419
35 -0.013188 3.474692 -0.024521 -1.423080 0.019874 0.037834
36 2.992725 3.619926 -0.091621 0.000000 -0.000000 -0.168174
37 0.231691 2.899977 0.226467 -1.164757 -0.139458 0.016216
38 -0.047094 3.464709 -0.060477 -1.358395 0.006848 0.017134
39 0.012933 2.746924 -0.096221 -1.144578 -0.072458 0.061817
40 -2.231818 1.416984 -1.590841 -0.961137 -0.813399 1.071353
41 -0.316679 3.892337 0.185578 -0.504580 -0.578900 -0.202701
42 -0.269054 3.933448 -0.328678 -1.154412 0.089592 -0.216743
43 -4.853351 12.717753 -3.944231 1.489701 1.518259 -1.617057
44 -2.885395 -14.223954 5.066398 -0.138191 -0.173259 -3.140183
45 -1.338182 -72.944839 5.703938 1.573160 0.028204 -1.573550
46 2.979552 -8.932815 5.785643 0.000000 0.000000 0.000000
47 0.000000 0.000007 0.000001 0.000000 0.000000 0.000000
48 0.000000 0.000007 0.000001 0.000000 0.000000 0.000000
49 0.000001 0.000005 -0.000001 0.000000 0.000000 0.000000
50 -1.370366 -9.614161 4.251131 0.000001 0.000000 0.000000
51 5.437931 23.108692 8.060462 -0.000000 0.000000 3.141592
time 1
0 6.710763 0.350250 -21.400202 -0.208664 0.018121 -3.056249
1 -13.039717 27.436281 -15.465093 1.951709 -2.458337 0.010026
2 -0.035540 -23.756721 -0.084864 0.296481 1.052258 -0.291478
3 0.273353 -3.765806 -0.387137 0.000000 0.000000 -0.000000
4 -0.000003 -3.784237 -0.191477 -0.698114 -0.178305 -0.000000
5 0.024370 -3.235431 0.175100 -0.573015 -0.002704 0.002331
6 -0.111962 -3.553725 0.074802 -0.841230 0.087075 0.015758
7 1.858441 -3.773902 0.198658 -0.000000 -0.245131 0.075729
8 -0.000012 -3.784246 -0.191477 -0.633076 0.090881 -0.024549
9 0.074584 -3.334560 0.036045 -0.660291 -0.002704 0.002331
10 -0.033773 -2.966133 0.050352 -0.664470 0.026121 0.048147
11 -1.407707 -3.765816 -0.387137 0.000000 -0.000000 -0.095034
12 -0.000007 -3.784239 -0.191469 -0.791333 -0.125139 0.025178
13 0.038983 -2.749652 0.107387 -0.572368 -0.028980 -0.038419
14 0.013192 -3.474690 0.024520 -1.074002 0.019874 0.037834
15 -2.992725 -3.619930 0.091621 0.000000 0.000000 -0.168174
16 -0.231688 -2.899984 -0.226464 -0.991924 -0.125139 0.025178
17 0.047093 -3.464705 0.060471 -0.747513 0.006848 0.017134
18 -0.012930 -2.746922 0.096229 -0.428978 -0.072458 0.061817
19 2.231813 -1.416991 1.590844 -0.611755 -0.774564 1.232350
20 0.316676 -3.892337 -0.185575 0.071367 -0.578900 -0.202701
21 0.269054 -3.933444 0.328679 0.001270 0.089592 -0.216743
22 24.573471 -12.498531 1.713413 -1.570338 1.590273 -0.768965
23 0.035545 23.756729 -0.084858 0.853493 0.023413 -0.045489
24 -0.273366 3.765808 0.387137 -0.000000 -0.000000 0.000000
25 -0.000003 3.784238 0.191474 -0.796868 -0.113996 0.102031
26 -0.024374 3.235439 -0.175101 -1.428238 -0.002704 0.002331
27 0.111962 3.553715 -0.074804 -1.277573 0.087075 0.015758
28 -1.858453 3.773897 -0.198660 -0.000000 -0.245131 0.075729
29 -0.000002 3.784230 0.191477 -0.122252 0.093311 -0.004824
30 -0.074586 3.334560 -0.036041 -0.223961 -0.002704 0.002331
31 0.033767 2.966136 -0.050351 -0.856461 0.026121 0.048147
32 1.407699 3.765807 0.387137 0.000000 0.000000 -0.095034
33 -0.000009 3.784244 0.191475 -1.055599 -0.107319 0.047811
34 -0.038985 2.749642 -0.107386 -1.270513 -0.028980 -0.038419
35 -0.013188 3.474692 -0.024521 -1.423080 0.019874 0.037834
36 2.992725 3.619926 -0.091621 0.000000 -0.000000 -0.168174
37 0.231691 2.899977 0.226467 -1.164757 -0.139458 0.016216
38 -0.047094 3.464709 -0.060477 -1.358395 0.006848 0.017134
39 0.012933 2.746924 -0.096221 -1.144578 -0.072458 0.061817
40 -2.231818 1.416984 -1.590841 -0.961137 -0.813399 1.071353
41 -0.316679 3.892337 0.185578 -0.504580 -0.578900 -0.202701
42 -0.269054 3.933448 -0.328678 -1.154412 0.089592 -0.216743
43 -4.853351 12.717753 -3.944231 1.489701 1.518259 -1.617057
44 -2.885395 -14.223954 5.066398 -0.138191 -0.173259 -3.140183
45 -1.338182 -72.944839 5.703938 1.573160 0.028204 -1.573550
46 2.979552 -8.932815 5.785643 0.000000 0.000000 0.000000
47 0.000000 0.000007 0.000001 0.000000 0.000000 0.000000
48 0.000000 0.000007 0.000001 0.000000 0.000000 0.000000
49 0.000001 0.000005 -0.000001 0.000000 0.000000 0.000000
50 -1.370366 -9.614161 4.251131 0.000001 0.000000 0.000000
51 5.437931 23.108692 8.060462 -0.000000 0.000000 3.141592
end
Loading