Jump to content

OBD:ONWC: Difference between revisions

397 bytes added ,  19 May 2024
added skill indexes used by the vanilla weapons
(copy-edit, corrections, and an "unused" note added to one field)
(added skill indexes used by the vanilla weapons)
Line 143: Line 143:
{{OBDtr| 0x138 | float    |EBEBEB| 00 00 61 44 | 900.000000    | maximum shooting distance; if target is further than this, the AI ceases fire and moves towards the target until it is below this distance }}
{{OBDtr| 0x138 | float    |EBEBEB| 00 00 61 44 | 900.000000    | maximum shooting distance; if target is further than this, the AI ceases fire and moves towards the target until it is below this distance }}
{{OBDtr| 0x13C | int16    |8C8CCC| 05 00      | 5              | UNUSED; maximum startle misses; the maximum number of shots to which extra inaccuracy can be added when an AI begins firing at the player (always 5, but Oni does not use this field) }}
{{OBDtr| 0x13C | int16    |8C8CCC| 05 00      | 5              | UNUSED; maximum startle misses; the maximum number of shots to which extra inaccuracy can be added when an AI begins firing at the player (always 5, but Oni does not use this field) }}
{{OBDtr| 0x13E | int16    |8C8CCC| 01 00      | 1              | skill index (in the [[ONCC]] shooting skill table) }}
{{OBDtr| 0x13E | int16    |8C8CCC| 01 00      | 1              | skill index (links weapon to the [[ONCC]] shooting skill table); here are the values used by Oni's ONWCs:
:0x'''01''' 00 - w0_sec (not in game)
:0x'''02''' 00 - w1_tap
:0x'''04''' 00 - w2_sap
:0x'''08''' 00 - w3_phr
:0x'''10''' 00 - w4_psm
:0x'''20''' 00 - w5_sbg
:0x'''40''' 00 - w6_vdg
:0x'''80''' 00 - w7_scc
:0x00 '''01''' - w8_mbo
:0x00 '''02''' - w9_scr
:0x00 '''04''' - w10_sni (not in game)
:0x00 '''08''' - w11_ba1
:0x00 '''10''' - w12_ba2}}
{{OBDtr| 0x140 | int32    |8C8CCC| 00 00 00 00 | 0              | fight timer, 240 for w4_psm, 200 for v6_vdg }}
{{OBDtr| 0x140 | int32    |8C8CCC| 00 00 00 00 | 0              | fight timer, 240 for w4_psm, 200 for v6_vdg }}
{{OBDtr| 0x144 | float    |FF00C8| 00 00 00 00 | 0.000000      | ballistic projectile speed for AI prediction purposes; if this field is unused, the projectile is assumed to be infinite speed; field is always zero except 150 for Superball Gun and 160 for Wave Motion Cannon's secondary trigger }}
{{OBDtr| 0x144 | float    |FF00C8| 00 00 00 00 | 0.000000      | ballistic projectile speed for AI prediction purposes; if this field is unused, the projectile is assumed to be infinite speed; field is always zero except 150 for Superball Gun and 160 for Wave Motion Cannon's secondary trigger }}