OBD:ONWC: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
|||
Line 16: | Line 16: | ||
*68-byte trailing chunk | *68-byte trailing chunk | ||
*Blank filler (for a total file size of 1824 = 0x720 bytes) | *Blank filler (for a total file size of 1824 = 0x720 bytes) | ||
;Coordinates | |||
:Unless specified otherwise, they are relative to the weapon's mesh | |||
:(x = forwards, y = left, z = up) | |||
---- | ---- | ||
Line 23: | Line 25: | ||
{| BORDER=1 WIDTH=100% CELLPADDING=2 CELLSPACING=0 | {| BORDER=1 WIDTH=100% CELLPADDING=2 CELLSPACING=0 | ||
|- ALIGN=CENTER BGCOLOR="#FFDDBB" | |- ALIGN=CENTER BGCOLOR="#FFDDBB" | ||
!Offset | |||
!Hex | |||
!Translation | |||
!Meaning | |||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
|0x00 | |||
| BGCOLOR="#FF0000" | 01 75 0E 00 | | BGCOLOR="#FF0000" | 01 75 0E 00 | ||
| 3701 | | 3701 | ||
| ALIGN=LEFT | 03701-w1_tap.ONWC | | ALIGN=LEFT | 03701-w1_tap.ONWC | ||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
|0x04 | |||
| BGCOLOR="#FFFF00" | 01 00 00 00 | | BGCOLOR="#FFFF00" | 01 00 00 00 | ||
| 0 | | 0 | ||
| ALIGN=LEFT | level 0 | | ALIGN=LEFT | level 0 | ||
|} | |||
===Laser sight=== | |||
{| BORDER=1 WIDTH=100% CELLPADDING=2 CELLSPACING=0 | |||
|- ALIGN=CENTER BGCOLOR="#FFDDBB" | |||
!Offset | |||
!Hex | |||
!Translation | |||
!Meaning | |||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
|0x08 | |||
| BGCOLOR="#FFC8C8" | F5 A4 49 40 | | BGCOLOR="#FFC8C8" | F5 A4 49 40 | ||
| 3.150693 | | 3.150693 | ||
| ALIGN=LEFT | | | ALIGN=LEFT | x-offset of the origin | ||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
|0x0C | |||
| BGCOLOR="#FFC8C8" | F4 2C A5 3B | | BGCOLOR="#FFC8C8" | F4 2C A5 3B | ||
| 0.005041 | | 0.005041 | ||
| ALIGN=LEFT | | | ALIGN=LEFT | y-offset of the origin | ||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
|0x10 | |||
| BGCOLOR="#FFC8C8" | 21 4E D2 3E | | BGCOLOR="#FFC8C8" | 21 4E D2 3E | ||
| 0.410752 | | 0.410752 | ||
| ALIGN=LEFT | | | ALIGN=LEFT | z-offset of the origin | ||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
|0x14 | |||
| BGCOLOR="#FFC8C8" | 23 A6 7F 3F | | BGCOLOR="#FFC8C8" | 23 A6 7F 3F | ||
| 0.998629 | | 0.998629 | ||
| ALIGN=LEFT | | | ALIGN=LEFT | something weird (if set to 0) | ||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
|0x18 | |||
| BGCOLOR="#FFC8C8" | AA 6C 56 BD | | BGCOLOR="#FFC8C8" | AA 6C 56 BD | ||
| -0.052349 | | -0.052349 | ||
| ALIGN=LEFT | | | ALIGN=LEFT | additional azimuth | ||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
|0x1C | |||
| BGCOLOR="#FFC8C8" | 69 66 AA B7 | | BGCOLOR="#FFC8C8" | 69 66 AA B7 | ||
| -0.000020 | | -0.000020 | ||
| ALIGN=LEFT | | | ALIGN=LEFT | additional elevation | ||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
|0x20 | |||
| BGCOLOR="#FFC8C8" | 00 40 9C 45 | | BGCOLOR="#FFC8C8" | 00 40 9C 45 | ||
| 5000.000000 | | 5000.000000 | ||
| ALIGN=LEFT | | | ALIGN=LEFT | maximal length of laser sight vector | ||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
|0x24 | |||
| BGCOLOR="#FFFFC8" | 00 00 FF FF | | BGCOLOR="#FFFFC8" | 00 00 FF FF | ||
| | | Red, opaque | ||
| ALIGN=LEFT | | | ALIGN=LEFT | laser sight color (RGBA) | ||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
|0x28 | |||
| BGCOLOR="#C8FFC8" | 01 94 05 00 | | BGCOLOR="#C8FFC8" | 01 94 05 00 | ||
| 1428 | | 1428 | ||
| ALIGN=LEFT | link to 01428-target_1A.[[OBD:TXMP|TXMP]] | | ALIGN=LEFT | crosshair texture (link to 01428-target_1A.[[OBD:TXMP|TXMP]]) | ||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
|0x2C | |||
| BGCOLOR="#C8FFC8" | FF FF FF 00 | | BGCOLOR="#C8FFC8" | FF FF FF 00 | ||
| | | White, transparent | ||
| ALIGN=LEFT | | | ALIGN=LEFT | crosshair background color (RGBA) | ||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
|0x30 | |||
| BGCOLOR="#C8FFC8" | CD CC 4C 3F | | BGCOLOR="#C8FFC8" | CD CC 4C 3F | ||
| 0.800000 | | 0.800000 | ||
| ALIGN=LEFT | | | ALIGN=LEFT | crosshair scale factor | ||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
|0x34 | |||
| BGCOLOR="#C8FFFF" | 01 95 05 00 | | BGCOLOR="#C8FFFF" | 01 95 05 00 | ||
| 1429 | | 1429 | ||
| ALIGN=LEFT | link to 01429-target_1B.[[OBD:TXMP|TXMP]] | | ALIGN=LEFT | ??? texture (link to 01429-target_1B.[[OBD:TXMP|TXMP]]) | ||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
|0x38 | |||
| BGCOLOR="#C8FFFF" | FF FF FF 00 | | BGCOLOR="#C8FFFF" | FF FF FF 00 | ||
| | | White, transparent | ||
| ALIGN=LEFT | | | ALIGN=LEFT | ??? background color (RGBA) | ||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
|0x3C | |||
| BGCOLOR="#C8FFFF" | CD CC 4C 3F | | BGCOLOR="#C8FFFF" | CD CC 4C 3F | ||
| 0.800000 | | 0.800000 | ||
| ALIGN=LEFT | | | ALIGN=LEFT | ??? scale factor | ||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
|0x40 | |||
| BGCOLOR="#FFC8FF" | 00 00 00 00 | | BGCOLOR="#FFC8FF" | 00 00 00 00 | ||
| not used | | not used | ||
| ALIGN=LEFT | | | ALIGN=LEFT | tunnel texture ([[OBD:TXMP|TXMP]] link) | ||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
|0x44 | |||
| BGCOLOR="#FFC8FF" | FF FF FF 00 | | BGCOLOR="#FFC8FF" | FF FF FF 00 | ||
| | | White, transparent | ||
| ALIGN=LEFT | | | ALIGN=LEFT | tunnel background color (RGBA) | ||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
|0x48 | |||
| BGCOLOR="#FFC8FF" | 00 00 80 3F | | BGCOLOR="#FFC8FF" | 00 00 80 3F | ||
| 1.000000 | | 1.000000 | ||
| ALIGN=LEFT | | | ALIGN=LEFT | tunnel scale factor | ||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
|0x4C | |||
| BGCOLOR="#FFC800" | 0F 00 00 00 | | BGCOLOR="#FFC800" | 0F 00 00 00 | ||
| 15 | | 15 | ||
| ALIGN=LEFT | | | ALIGN=LEFT | number of tunnel textures | ||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
|0x50 | |||
| BGCOLOR="#C800C8" | 00 00 20 41 | | BGCOLOR="#C800C8" | 00 00 20 41 | ||
| 10.000000 | | 10.000000 | ||
| ALIGN=LEFT | | | ALIGN=LEFT | spacing of tunnel textures | ||
|} | |||
===Ammo meter=== | |||
{| BORDER=1 WIDTH=100% CELLPADDING=2 CELLSPACING=0 | |||
|- ALIGN=CENTER BGCOLOR="#FFDDBB" | |||
!Offset | |||
!Hex | |||
!Translation | |||
!Meaning | |||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
|0x54 | |||
| BGCOLOR="#C87C64" | 01 7E 0E 00 | | BGCOLOR="#C87C64" | 01 7E 0E 00 | ||
| 3710 | | 3710 | ||
| ALIGN=LEFT | link to 03710-tap_icon.[[OBD:TXMP|TXMP]] | | ALIGN=LEFT | link to 03710-tap_icon.[[OBD:TXMP|TXMP]] | ||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
|0x58 | |||
| BGCOLOR="#C87C64" | 01 7F 0E 00 | | BGCOLOR="#C87C64" | 01 7F 0E 00 | ||
| 3711 | | 3711 | ||
| ALIGN=LEFT | link to 03711-tap_empty.[[OBD:TXMP|TXMP]] | | ALIGN=LEFT | link to 03711-tap_empty.[[OBD:TXMP|TXMP]] | ||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
|0x5C | |||
| BGCOLOR="#C87C64" | 01 80 0E 00 | | BGCOLOR="#C87C64" | 01 80 0E 00 | ||
| 3712 | | 3712 | ||
| ALIGN=LEFT | link to 03712-tap_fill.[[OBD:TXMP|TXMP]] | | ALIGN=LEFT | link to 03712-tap_fill.[[OBD:TXMP|TXMP]] | ||
|} | |||
===Weapon=== | |||
{| BORDER=1 WIDTH=100% CELLPADDING=2 CELLSPACING=0 | |||
|- ALIGN=CENTER BGCOLOR="#FFDDBB" | |||
!Offset | |||
!Hex | |||
!Translation | |||
!Meaning | |||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
|0x60 | |||
| BGCOLOR="#C87C64" | 01 76 0E 00 | | BGCOLOR="#C87C64" | 01 76 0E 00 | ||
| 3702 | | 3702 | ||
| ALIGN=LEFT | link to 03702-.[[OBD:M3GM|M3GM]] | | ALIGN=LEFT | link to 03702-.[[OBD:M3GM|M3GM]] | ||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
|0x64 | |||
| BGCOLOR="#B0C3D4" COLSPAN=2 | <TT>w1_tap</TT> | | BGCOLOR="#B0C3D4" COLSPAN=2 | <TT>w1_tap</TT> | ||
| ALIGN=LEFT | name of the weapon | | ALIGN=LEFT | name of the weapon | ||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
|0x84 | |||
| BGCOLOR="#E7CEA5" | 00 00 80 3F | | BGCOLOR="#E7CEA5" | 00 00 80 3F | ||
| 1.000000 | | 1.000000 | ||
| ALIGN=LEFT | unknown | | ALIGN=LEFT | unknown | ||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
|0x88 | |||
| BGCOLOR="#E7CEA5" | A6 92 2B 3D | | BGCOLOR="#E7CEA5" | A6 92 2B 3D | ||
| 0.041888 | | 0.041888 | ||
| ALIGN=LEFT | recoil (e.g. for '''w1_tap''' and '''w2_sap''') | | ALIGN=LEFT | recoil (e.g. for '''w1_tap''' and '''w2_sap''') | ||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
|0x8C | |||
| BGCOLOR="#E7CEA5" | 92 0A 86 3E | | BGCOLOR="#E7CEA5" | 92 0A 86 3E | ||
| 0.261799 | | 0.261799 | ||
| ALIGN=LEFT | unknown | | ALIGN=LEFT | unknown | ||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
|0x90 | |||
| BGCOLOR="#E7CEA5" | 00 00 A0 40 | | BGCOLOR="#E7CEA5" | 00 00 A0 40 | ||
| 5.000000 | | 5.000000 | ||
| ALIGN=LEFT | unknown | | ALIGN=LEFT | unknown | ||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
|0x94 | |||
| BGCOLOR="#E7CEA5" | E2 A3 7B 3B | | BGCOLOR="#E7CEA5" | E2 A3 7B 3B | ||
| 0.003839 | | 0.003839 | ||
| ALIGN=LEFT | unknown | | ALIGN=LEFT | unknown | ||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
|0x98 | |||
| BGCOLOR="#E7CEA5" | 88 C3 E4 3A | | BGCOLOR="#E7CEA5" | 88 C3 E4 3A | ||
| 0.001745 | | 0.001745 | ||
| ALIGN=LEFT | unknown | | ALIGN=LEFT | unknown | ||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
|0x9C | |||
| BGCOLOR="#E7CEA5" | 00 00 00 00 | | BGCOLOR="#E7CEA5" | 00 00 00 00 | ||
| 0.000000 | | 0.000000 | ||
| ALIGN=LEFT | unknown | | ALIGN=LEFT | unknown | ||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
|0xA0 | |||
| BGCOLOR="#E7CEA5" | 00 00 00 00 | | BGCOLOR="#E7CEA5" | 00 00 00 00 | ||
| 0.000000 | | 0.000000 | ||
| ALIGN=LEFT | unknown | | ALIGN=LEFT | unknown | ||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
|0xA4 | |||
| BGCOLOR="#E7CEA5" | 00 00 00 00 | | BGCOLOR="#E7CEA5" | 00 00 00 00 | ||
| 0.000000 | | 0.000000 | ||
| ALIGN=LEFT | unknown | | ALIGN=LEFT | unknown | ||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
|0xA8 | |||
| BGCOLOR="#E7CEA5" | 00 00 00 00 | | BGCOLOR="#E7CEA5" | 00 00 00 00 | ||
| 0.000000 | | 0.000000 | ||
| ALIGN=LEFT | unknown | | ALIGN=LEFT | unknown | ||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
|0xAC | |||
| BGCOLOR="#E7CEA5" | 00 00 00 00 | | BGCOLOR="#E7CEA5" | 00 00 00 00 | ||
| 0.000000 | | 0.000000 | ||
| ALIGN=LEFT | unknown | | ALIGN=LEFT | unknown | ||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
|0xB0 | |||
| BGCOLOR="#E7CEA5" | 00 00 00 00 | | BGCOLOR="#E7CEA5" | 00 00 00 00 | ||
| 0.000000 | | 0.000000 | ||
| ALIGN=LEFT | unknown | | ALIGN=LEFT | unknown | ||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
|0xB4 | |||
| BGCOLOR="#E7CEA5" | 00 00 00 00 | | BGCOLOR="#E7CEA5" | 00 00 00 00 | ||
| 0.000000 | | 0.000000 | ||
| ALIGN=LEFT | unknown | | ALIGN=LEFT | unknown | ||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
|0xB8 | |||
| BGCOLOR="#E7CEA5" | 00 00 00 00 | | BGCOLOR="#E7CEA5" | 00 00 00 00 | ||
| 0.000000 | | 0.000000 | ||
| ALIGN=LEFT | unknown | | ALIGN=LEFT | unknown | ||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
|0xBC | |||
| BGCOLOR="#E7CEA5" | 00 00 00 00 | | BGCOLOR="#E7CEA5" | 00 00 00 00 | ||
| 0.000000 | | 0.000000 | ||
| ALIGN=LEFT | unknown | | ALIGN=LEFT | unknown | ||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
|0xC0 | |||
| BGCOLOR="#FFDDDD" | 00 00 | | BGCOLOR="#FFDDDD" | 00 00 | ||
| 0 | | 0 | ||
| ALIGN=LEFT | unknown; always zero | | ALIGN=LEFT | unknown; always zero | ||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
|0xC2 | |||
| BGCOLOR="#FFDDDD" | 95 00 | | BGCOLOR="#FFDDDD" | 95 00 | ||
| 149 | | 149 | ||
| ALIGN=LEFT | unknown | | ALIGN=LEFT | unknown | ||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
|0xC4 | |||
| BGCOLOR="#FFDDDD" | A4 00 | | BGCOLOR="#FFDDDD" | A4 00 | ||
| 164 | | 164 | ||
| ALIGN=LEFT | unknown | | ALIGN=LEFT | unknown | ||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
|0xC6 | |||
| BGCOLOR="#FFDDDD" | 19 00 | | BGCOLOR="#FFDDDD" | 19 00 | ||
| 25 | | 25 | ||
| ALIGN=LEFT | pause after reload in 1/60 seconds | | ALIGN=LEFT | pause after reload in 1/60 seconds | ||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
|0xC8 | |||
| BGCOLOR="#FFDDDD" | 0A 00 | | BGCOLOR="#FFDDDD" | 0A 00 | ||
| 10 | | 10 | ||
| ALIGN=LEFT | amount of shots | | ALIGN=LEFT | amount of shots | ||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
|0xCA | |||
| BGCOLOR="#FFDDDD" | 06 00 | | BGCOLOR="#FFDDDD" | 06 00 | ||
| 6 | | 6 | ||
| ALIGN=LEFT | amount of particles | | ALIGN=LEFT | amount of particles | ||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
|0xCC | |||
| BGCOLOR="#FFDDDD" | 01 00 | | BGCOLOR="#FFDDDD" | 01 00 | ||
| 1 | | 1 | ||
| ALIGN=LEFT | amount of firing modes | | ALIGN=LEFT | amount of firing modes | ||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
|0xCE | |||
| BGCOLOR="#FFDDDD" | 0A 00 | | BGCOLOR="#FFDDDD" | 0A 00 | ||
| 10 | | 10 | ||
| ALIGN=LEFT | pause before reload in 1/60 seconds | | ALIGN=LEFT | pause before reload in 1/60 seconds | ||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
|0xD0 | |||
| BGCOLOR="#FFDDDD" | 04 00 | | BGCOLOR="#FFDDDD" | 04 00 | ||
| 4 | | 4 | ||
| ALIGN=LEFT | unknown | | ALIGN=LEFT | unknown | ||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
|0xD2 | |||
| BGCOLOR="#FFDDDD" | 00 00 | | BGCOLOR="#FFDDDD" | 00 00 | ||
| 0 | | 0 | ||
| ALIGN=LEFT | unknown; always zero | | ALIGN=LEFT | unknown; always zero | ||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
|0xD4 | |||
| BGCOLOR="#FFDDDD" | 30 | | BGCOLOR="#FFDDDD" | 30 | ||
| 48 | | 48 | ||
Line 262: | Line 341: | ||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
|0xD5 | |||
| BGCOLOR="#FFDDDD" | C0 | | BGCOLOR="#FFDDDD" | C0 | ||
| 192 | | 192 | ||
Line 294: | Line 374: | ||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
|0xD6 | |||
| BGCOLOR="#FFDDDD" | 02 00 | | BGCOLOR="#FFDDDD" | 02 00 | ||
| 2 | | 2 | ||
Line 580: | Line 661: | ||
| BGCOLOR="#FF00C8" | 6F 63 57 40 | | BGCOLOR="#FF00C8" | 6F 63 57 40 | ||
| 3.365444 | | 3.365444 | ||
| ALIGN=LEFT | x- | | ALIGN=LEFT | x-offset of the particle spawn | ||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
|0x28 | |0x28 | ||
| BGCOLOR="#FF00C8" | B3 1D 89 BC | | BGCOLOR="#FF00C8" | B3 1D 89 BC | ||
| -0.016738 | | -0.016738 | ||
| ALIGN=LEFT | y- | | ALIGN=LEFT | y-offset of the particle spawn | ||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
|0x2C | |0x2C | ||
| BGCOLOR="#FF00C8" | C5 C1 2A 3F | | BGCOLOR="#FF00C8" | C5 C1 2A 3F | ||
| 0.667019 | | 0.667019 | ||
| ALIGN=LEFT | z- | | ALIGN=LEFT | z-offset of the particle spawn | ||
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | ||
|0x30 | |0x30 | ||
Line 636: | Line 717: | ||
| ALIGN=LEFT | delay before firing | | ALIGN=LEFT | delay before firing | ||
|} | |} | ||
;Orientation | ;Orientation | ||
:The particle seems to be aligned with the x axis by default... | :The particle seems to be aligned with the x axis by default... |
Revision as of 23:20, 30 April 2006
ONVL << Other file types >> OPge |
---|
ONWC : Oni Weapon Class |
Level 0 file |
Overview table of all ONCC (27 kB each) : "," decimals or "." decimals Struct def for OUP |
There's an empty ONWC file in every level, and the 12 actual ONWC files are in level 0.
- Example
- w1_tap.ONWC (unless specified otherwise)
- Structure
- Chunk with the main weapon data (216 = 0xD8 bytes)
- Fixed-size array of 2 elements (128 = 0x80 bytes each) for firing modes
- Fixed-size array of 16 elements (80 = 0x50 bytes each) for weapon particles
- 68-byte trailing chunk
- Blank filler (for a total file size of 1824 = 0x720 bytes)
- Coordinates
- Unless specified otherwise, they are relative to the weapon's mesh
- (x = forwards, y = left, z = up)
0x00 - 0xD7 : Main part
Offset | Hex | Translation | Meaning |
---|---|---|---|
0x00 | 01 75 0E 00 | 3701 | 03701-w1_tap.ONWC |
0x04 | 01 00 00 00 | 0 | level 0 |
Laser sight
Offset | Hex | Translation | Meaning |
---|---|---|---|
0x08 | F5 A4 49 40 | 3.150693 | x-offset of the origin |
0x0C | F4 2C A5 3B | 0.005041 | y-offset of the origin |
0x10 | 21 4E D2 3E | 0.410752 | z-offset of the origin |
0x14 | 23 A6 7F 3F | 0.998629 | something weird (if set to 0) |
0x18 | AA 6C 56 BD | -0.052349 | additional azimuth |
0x1C | 69 66 AA B7 | -0.000020 | additional elevation |
0x20 | 00 40 9C 45 | 5000.000000 | maximal length of laser sight vector |
0x24 | 00 00 FF FF | Red, opaque | laser sight color (RGBA) |
0x28 | 01 94 05 00 | 1428 | crosshair texture (link to 01428-target_1A.TXMP) |
0x2C | FF FF FF 00 | White, transparent | crosshair background color (RGBA) |
0x30 | CD CC 4C 3F | 0.800000 | crosshair scale factor |
0x34 | 01 95 05 00 | 1429 | ??? texture (link to 01429-target_1B.TXMP) |
0x38 | FF FF FF 00 | White, transparent | ??? background color (RGBA) |
0x3C | CD CC 4C 3F | 0.800000 | ??? scale factor |
0x40 | 00 00 00 00 | not used | tunnel texture (TXMP link) |
0x44 | FF FF FF 00 | White, transparent | tunnel background color (RGBA) |
0x48 | 00 00 80 3F | 1.000000 | tunnel scale factor |
0x4C | 0F 00 00 00 | 15 | number of tunnel textures |
0x50 | 00 00 20 41 | 10.000000 | spacing of tunnel textures |
Ammo meter
Offset | Hex | Translation | Meaning |
---|---|---|---|
0x54 | 01 7E 0E 00 | 3710 | link to 03710-tap_icon.TXMP |
0x58 | 01 7F 0E 00 | 3711 | link to 03711-tap_empty.TXMP |
0x5C | 01 80 0E 00 | 3712 | link to 03712-tap_fill.TXMP |
Weapon
Offset | Hex | Translation | Meaning | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0x60 | 01 76 0E 00 | 3702 | link to 03702-.M3GM | ||||||||||||||||
0x64 | w1_tap | name of the weapon | |||||||||||||||||
0x84 | 00 00 80 3F | 1.000000 | unknown | ||||||||||||||||
0x88 | A6 92 2B 3D | 0.041888 | recoil (e.g. for w1_tap and w2_sap) | ||||||||||||||||
0x8C | 92 0A 86 3E | 0.261799 | unknown | ||||||||||||||||
0x90 | 00 00 A0 40 | 5.000000 | unknown | ||||||||||||||||
0x94 | E2 A3 7B 3B | 0.003839 | unknown | ||||||||||||||||
0x98 | 88 C3 E4 3A | 0.001745 | unknown | ||||||||||||||||
0x9C | 00 00 00 00 | 0.000000 | unknown | ||||||||||||||||
0xA0 | 00 00 00 00 | 0.000000 | unknown | ||||||||||||||||
0xA4 | 00 00 00 00 | 0.000000 | unknown | ||||||||||||||||
0xA8 | 00 00 00 00 | 0.000000 | unknown | ||||||||||||||||
0xAC | 00 00 00 00 | 0.000000 | unknown | ||||||||||||||||
0xB0 | 00 00 00 00 | 0.000000 | unknown | ||||||||||||||||
0xB4 | 00 00 00 00 | 0.000000 | unknown | ||||||||||||||||
0xB8 | 00 00 00 00 | 0.000000 | unknown | ||||||||||||||||
0xBC | 00 00 00 00 | 0.000000 | unknown | ||||||||||||||||
0xC0 | 00 00 | 0 | unknown; always zero | ||||||||||||||||
0xC2 | 95 00 | 149 | unknown | ||||||||||||||||
0xC4 | A4 00 | 164 | unknown | ||||||||||||||||
0xC6 | 19 00 | 25 | pause after reload in 1/60 seconds | ||||||||||||||||
0xC8 | 0A 00 | 10 | amount of shots | ||||||||||||||||
0xCA | 06 00 | 6 | amount of particles | ||||||||||||||||
0xCC | 01 00 | 1 | amount of firing modes | ||||||||||||||||
0xCE | 0A 00 | 10 | pause before reload in 1/60 seconds | ||||||||||||||||
0xD0 | 04 00 | 4 | unknown | ||||||||||||||||
0xD2 | 00 00 | 0 | unknown; always zero | ||||||||||||||||
0xD4 | 30 | 48 | Flags 1 :
| ||||||||||||||||
0xD5 | C0 | 192 | Flags 2 :
| ||||||||||||||||
0xD6 | 02 00 | 2 | Flags 3 :
|
0xD8 - 0x1D7 : Firing modes
There are two 128-byte firing mode slots in every ONWC file.
The actual number of firing modes is specified at 0xCC
0xD8 - 0x157 : Primary firing mode
Offsets are given with respect to the start of the file.
Offset | Raw hex | Value | Meaning |
---|---|---|---|
0xD8 | 00 00 | 0 | unknown |
0xDA | 00 00 | 0 | unknown; always zero |
0xDC | 23 A6 7F 3F | 0.998629 | unknown |
0xE0 | 05 6D 56 3D | 0.052350 | unknown |
0xE4 | F4 8D A9 37 | 0.000020 | unknown |
0xE8 | 05 6D 56 BD | -0.052350 | unknown |
0xEC | 23 A6 7F 3F | 0.998629 | unknown |
0xF0 | D0 1D 0E B5 | -0.000001 | unknown |
0xF4 | F4 8D A9 B7 | -0.000020 | unknown |
0xF8 | D0 1D 0E B5 | -0.000001 | unknown |
0xFC | 00 00 80 3F | 1.000000 | unknown |
0x100 | 00 00 00 00 | 0.000000 | unknown; always zero |
0x104 | 00 00 00 00 | 0.000000 | unknown; always zero |
0x108 | 00 00 00 00 | 0.000000 | unknown; always zero |
0x10C | 23 A6 7F 3F | 0.998629 | unknown |
0x110 | AE 6C 56 BD | -0.052349 | unknown |
0x114 | AF 8D A9 B7 | -0.000020 | unknown |
0x118 | DC FE 08 3C | 0.008362 | unknown |
0x11C | 5C 11 23 3E | 0.159246 | unknown |
0x120 | 39 C6 2A 3F | 0.667087 | unknown |
0x124 | 00 00 61 44 | 900.000000 | range of fire |
0x128 | 00 00 20 41 | 10.000000 | scattering angle ? / slice ? |
0x12C | 00 00 20 40 | 2.500000 | unknown; always the same |
0x130 | 00 00 96 43 | 300.000000 | unknown |
0x134 | 00 00 40 41 | 12.000000 | unknown |
0x138 | 00 00 61 44 | 900.000000 | unknown |
0x13C | 05 00 | 5 | unknown; always the same |
0x13E | 01 00 | 1 | weapon ID |
0x140 | 00 00 00 00 | 0 | unknown |
0x144 | 00 00 00 00 | 0.000000 | unknown |
0x148 | 00 00 00 00 | 0.000000 | unknown |
0x14C | 00 00 34 43 | 180.000000 | unknown |
0x150 | 00 00 40 40 | 3.000000 | unknown |
0x154 | 50 77 D6 3D | 0.104719 | unknown |
0x158 - 0x1D7 : Secondary firing mode
The only weapon for which these fields are not all zero is w11_ba1.
They are the exact counterparts of the fields at 0xD8 - 0x157.
0x1D8 - 0x6DC : Particles
Every ONWC has 16 particle slots (80 = 0x50 bytes each.)
The number of slots actually used by the weapon is specified at 0xCA.
Offsets are relative to the beginning of a slot.
Offset | Raw hex | Value | Meaning |
---|---|---|---|
0x00 | AE 6C 56 3D | 0.052349 | unknown |
0x04 | 23 A6 7F 3F | 0.998629 | unknown |
0x08 | C2 53 90 B3 | -6.720757e-8 | unknown |
0x0C | 23 A6 7F 3F | 0.998629 | unknown |
0x10 | AE 6C 56 BD | -0.052349 | unknown |
0x14 | AF 8D A9 B7 | -0.000020 | unknown |
0x18 | BA 59 A9 B7 | -0.000020 | unknown |
0x1C | 5B 02 85 35 | 0.000001 | unknown |
0x20 | 00 00 80 BF | -1.000000 | unknown |
0x24 | 6F 63 57 40 | 3.365444 | x-offset of the particle spawn |
0x28 | B3 1D 89 BC | -0.016738 | y-offset of the particle spawn |
0x2C | C5 C1 2A 3F | 0.667019 | z-offset of the particle spawn |
0x30 | w1_tap_e01 | weapon particle (06226-3RAPw1_tap_e01.BINA) | |
0x40 | 00 00 | 0 | unknown; always zero |
0x42 | 00 00 | 0 | unknown; always zero |
0x44 | 01 00 | 1 | ammo decrement (different for the 2 firing modes of w11_ba1) |
0x46 | 0C 00 | 12 | delay between shots in frames (12 frames = 0.2 seconds) |
0x48 | 04 00 | 4 | unknown (looks like another delay) |
0x4A | 00 00 | 0 | unknown, used for w4_psm and w11_ba1 (looks like another delay) |
0x4C | 00 00 | 0 | if 1, particle is fired with fire2 |
0x4E | 00 00 | 0 | delay before firing |
- Orientation
- The particle seems to be aligned with the x axis by default...
- Hopefully a few of the unknown floats define rotations
Ending
Offset | Raw hex | Value | Meaning |
---|---|---|---|
0x6D8 | weapon _empty | empty weapon sound (08992-weapon_empty.grp.OSBD) (08993-weapon_empty.imp.OSBD) | |
0x6F8 | 00 00 00 00 | 0 | unknown; always zero |
0x6FC | 01 81 0E 00 | 3713 | link to 03713-w1_glow.TXMP |
0x700 | 01 82 0E 00 | 3714 | link to 03714-w1_glow_ammo.TXMP |
0x704 | 00 00 80 3F | 1.000000 | unknown |
0x708 | 00 00 80 3F | 1.000000 | unknown |
0x70C | 76 65 EB 3F | 1.839034 | unknown |
0x710 | 96 4C A9 3D | 0.082666 | unknown |
0x714 | 06 E2 14 3E | 0.145393 | unknown |
0x718 | 00 00 00 00 | 0.000000 | unknown |
0x71C | AD DE | dead | blank filler |
Notes
ONWC : Oni Weapon Class |
---|
ONVL << Other file types >> OPge |
Main Page >> Oni Binary Data >> File types >> ONWC