|
|
| (20 intermediate revisions by 5 users not shown) |
| Line 1: |
Line 1: |
| [[Main Page]] >> [[OBD:Oni Binary Data|Oni Binary Data]] >> [[OBD:File types|File types]] >> [[OBD:BINA|BINA]] >> Trigger.BINA
| | :''This is about trigger instances. For the trigger class resource, see [[OBD:TRIG]].'' |
| | {{OBD OBJC Header | align=center | type=TRIG | prev=TRGV | next=TURR | name=Trigger | stuff=b_tr}} |
|
| |
|
|
| |
|
| <CENTER>[[OBD:BINA/Trigger_Volume|<==]] <FONT SIZE=5>Trigger.BINA</FONT> [[OBD:BINA/Turret|==>]]</CENTER>
| | [[Image:bin_r_tr.gif]] |
|
| |
|
|
| |
|
| http://www6.fh-eberswalde.de/user/dkriesch/onistuff/images/bin_r_tr.gif
| | {{Table}} |
| | {{OBDth}} |
| | {{OBDtr| 0x00 | char[4] |FF0000| 43 4A 42 4F | OBJC | objects }} |
| | {{OBDtr| 0x04 | int32 |FFFF00| DC 0A 00 00 | 2780 | size of the complete list from this position in bytes }} |
| | {{OBDtr| 0x08 | int32 |00FF00| 27 00 00 00 | 39 | object list version }} |
| | {{OBDtr| 0x0C | int32 |00FFFF| 80 00 00 00 | 128 | size of the following element in bytes }} |
| | {{OBDtrgroup}} |
| | {{OBDtrsubgroup}} |
| | {{OBDtr| 0x00 | char[4] |FFC8C8| 47 49 52 54 | TRIG | trigger }} |
| | {{OBDtr| 0x04 | int32 |FFFFC8| 15 0F 00 00 | 3861 | object ID }} |
| | {{OBDtr| 0x08 | uint16 |C8FFC8| 09 00 00 00 | | object flags; only used at runtime in Tool mode }} |
| | {{OBDtr| 0x0C | float |C8FFFF| 5E FA 03 C3 |-131.977996 | x position of the trigger }} |
| | {{OBDtr| 0x10 | float |C8FFFF| 9A 99 82 C2 | -65.300003 | y position (height) of the trigger }} |
| | {{OBDtr| 0x14 | float |C8FFFF| EE FC 94 43 | 297.976013 | z position of the trigger }} |
| | {{OBDtr| 0x18 | float |FFC8FF| 00 00 00 00 | 0.000000 | rotation on the x axis in degrees }} |
| | {{OBDtr| 0x1C | float |FFC8FF| 00 00 00 00 | 0.000000 | rotation on the y axis in degrees }} |
| | {{OBDtr| 0x20 | float |FFC8FF| 00 00 00 00 | 0.000000 | rotation on the z axis in degrees }} |
| | {{OBDtrsubgroup|end}} |
| | {{OBDtr| 0x24 | char[63] |FFC800| |"trigger_evilbrain"| trigger class name (00701-trigger_evilbrain.[[OBD:TRIG|TRIG]] of level 0) }} |
| | {{OBDtr| 0x63 | uint16 |C800C8| CA 00 | 202 | trigger ID }} |
| | {{OBDtr| 0x65 | uint16 |C87C64| 4C 00 | 0x4C00 | flags: |
| | : 0x'''01''' 00 - runtime: initialized |
| | : 0x'''02''' 00 - runtime: triggered |
| | : 0x'''04''' 00 - runtime: active (can be controlled with [[trig_activate]] and [[trig_deactivate]]) |
| | : 0x'''08''' 00 - initially active |
| | : 0x'''10''' 00 - reverse animation |
| | : 0x'''20''' 00 - pingpong (animation reverses when reaching end instead of restarting from beginning) |
| | : 0x'''40''' 00 - runtime: hidden (controlled with [[trig_hide]] and [[trig_show]]) |
| | : 0x'''80''' 00 - runtime: playing sound }} |
| | {{OBDtr| 0x67 | |B0C3D4| 00 00 FF FF | red | laser color }} |
| | {{OBDtr| 0x6B | float |E7CEA5| 00 00 00 3F | 0.500000 | start position of the trigger in the rail; ranges from 0.0 (spawn point) to 1.0 (opposite end) }} |
| | {{OBDtr| 0x6F | float |FFDDDD| 00 00 40 3F | 0.750000 | speed of the trigger; ranges from 0 (stopped) to 100 (very fast) }} |
| | {{OBDtr| 0x73 | int16 |64AAAA| 02 00 | 2 | trigger emitter count }} |
| | {{OBDtr| 0x75 | int16 |EBEBEB| 00 00 | 0 | time on, in frames (ranges from 0 to 360,000, or 100 min.) }} |
| | {{OBDtr| 0x77 | int16 |8C8CCC| 00 00 | 0 | time off, in frames (same range as above) }} |
| | {{OBDtr| 0x79 | int16 |FF00C8| 01 00 | 1 | 1 event block follows (the block is edged in grey) }} |
| | {{OBDtrgroup|Event Block}} |
| | {{OBDtr| 0x00 | |F0F096| 02 00 | 2 | event type; only these values are used in the vanilla game data: |
| | :1 - call script function |
| | :2 - activate turret |
| | }} |
| | {{OBDtr| 0x02 | |00C864| 14 00 | 20 | event argument: turret ID }} |
| | {{OBDtrgroup|Event Block End}} |
| | {{OBDtr| | |00C8FF| 00 | | alignment padding }} |
| | |} |
|
| |
|
|
| |
|
| {| BORDER=1 WIDTH=100% CELLPADDING=2 CELLSPACING=1 BGCOLOR="#000000"
| | ==Time on/off== |
| |- ALIGN=CENTER BGCOLOR="#FFDDBB"
| | This feature is unused in Oni's game data, but "time on" allows you to set a length of time that a laser should run before shutting off; if you also specify "time off", the trigger will reactivate after that long, and continue cycling like so. "Time on" is employed when a trigger is activated with [[trig_reset]] or [[trig_activate]]. However "time off" is NOT used a trigger is deactivated with [[trig_deactivate]], which is a permanent shutoff. |
| | WIDTH=15% | <B>Hex</B>
| |
| | WIDTH=15% | <B>Translation</B>
| |
| | WIDTH=70% | <B>Meaning</B>
| |
| |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| |
| | BGCOLOR="#FF0000" | 43 4A 42 4F
| |
| | OBJC
| |
| | ALIGN=LEFT | object
| |
| |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| |
| | BGCOLOR="#FFFF00" | DC 0A 00 00
| |
| | 2780
| |
| | ALIGN=LEFT | 2780 bytes is the length of the following trigger part from this position
| |
| |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| |
| | BGCOLOR="#00FF00" | 27 00 00 00
| |
| | 39
| |
| | ALIGN=LEFT | identification number for the weapon classes; in every level the same; do not change it
| |
| |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| |
| | BGCOLOR="#00FFFF" | 80 00 00 00
| |
| | 128
| |
| | ALIGN=LEFT | 128 bytes (8 lines) is the lenght of the following package (area edged in black)
| |
| |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#000000"
| |
| | COLSPAN=3 | <FONT SIZE=2 COLOR="#FFFFFF">Below follows the first package.</FONT>
| |
| |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| |
| | BGCOLOR="#FFC8C8" | 47 49 52 54
| |
| | TRIG
| |
| | ALIGN=LEFT | trigger
| |
| |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| |
| | BGCOLOR="#FFFFC8" | 15 0F 00 00
| |
| | 3861
| |
| | ALIGN=LEFT | old file ID
| |
| |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| |
| | BGCOLOR="#C8FFC8" | 09 00 00 00
| |
| | 9
| |
| | ALIGN=LEFT | unknown
| |
| |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| |
| | BGCOLOR="#C8FFFF" | 5E FA 03 C3
| |
| | -131.977996
| |
| | ALIGN=LEFT | x-position of the trigger
| |
| |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| |
| | BGCOLOR="#C8FFFF" | 9A 99 82 C2
| |
| | -65.300003
| |
| | ALIGN=LEFT | y-position (height) of the trigger
| |
| |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| |
| | BGCOLOR="#C8FFFF" | EE FC 94 43
| |
| | 297.976013
| |
| | ALIGN=LEFT | z-position of the trigger
| |
| |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| |
| | BGCOLOR="#FFC8FF" | 00 00 00 00
| |
| | 0.000000
| |
| | ALIGN=LEFT | rotation on the x-axis in degrees
| |
| |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| |
| | BGCOLOR="#FFC8FF" | 00 00 00 00
| |
| | 0.000000
| |
| | ALIGN=LEFT | rotation on the y-axis in degrees
| |
| |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| |
| | BGCOLOR="#FFC8FF" | 00 00 00 00
| |
| | 0.000000
| |
| | ALIGN=LEFT | rotation on the z-axis in degrees
| |
| |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| |
| | BGCOLOR="#FFC800" COLSPAN=2 | <TT>trigger_evilbrain</TT>
| |
| | ALIGN=LEFT | trigger type (00701-trigger_evilbrain.[[OBD:TRIG|TRIG]] of level 0)
| |
| |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| |
| | BGCOLOR="#C800C8" | CA 00
| |
| | 202
| |
| | ALIGN=LEFT | trigger ID
| |
| |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| |
| | BGCOLOR="#C87C64" | 4C 00
| |
| | 76
| |
| | ALIGN=LEFT | unknown
| |
| |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| |
| | BGCOLOR="#B0C3D4" | 00 00
| |
| | 0
| |
| | ALIGN=LEFT | unknown; always zero
| |
| |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| |
| | BGCOLOR="#E7CEA5" | FF FF
| |
| | 65535
| |
| | ALIGN=LEFT | unknown
| |
| |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| |
| | BGCOLOR="#FFDDDD" | 00 00 00 3F
| |
| | 0.500000
| |
| | ALIGN=LEFT | start position of the trigger in the rail; range from 0 (bottom) to 1 (top) in connection to the spawn point of the trigger (spawn point = bottom)
| |
| |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| |
| | BGCOLOR="#64AAAA" | 00 00 40 3F
| |
| | 0.750000
| |
| | ALIGN=LEFT | speed of the trigger; range from 0 (stop) to 2 (very fast)
| |
| |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| |
| | BGCOLOR="#EBEBEB" | 02 00
| |
| | 2
| |
| | ALIGN=LEFT | trigger amount
| |
| |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| |
| | BGCOLOR="#8C8CCC" | 00 00
| |
| | 0
| |
| | ALIGN=LEFT | unknown; always zero
| |
| |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| |
| | BGCOLOR="#FF00C8" | 00 00
| |
| | 0
| |
| | ALIGN=LEFT | unknown; always zero
| |
| |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| |
| | BGCOLOR="#F0F096" | 01 00
| |
| | 1
| |
| | ALIGN=LEFT | 1 block follows (the block is edged in grey)
| |
| |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#808080"
| |
| | COLSPAN=3 | <FONT SIZE=2 COLOR="#FFFFFF">Below follows the block. It's a part of the package.</FONT>
| |
| |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| |
| | BGCOLOR="#00C864" | 02 00
| |
| | 2
| |
| | ALIGN=LEFT | unknown
| |
| |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| |
| | BGCOLOR="#00C8FF" | 14 00
| |
| | 20
| |
| | ALIGN=LEFT | unknown
| |
| |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#808080"
| |
| | COLSPAN=3 | <FONT SIZE=2 COLOR="#FFFFFF">End of the block. Below follows the last byte of the package.</FONT>
| |
| |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| |
| | BGCOLOR="#C80040" | 00
| |
| | 0
| |
| | ALIGN=LEFT | stop-byte; always zero
| |
| |}
| |
|
| |
|
| | ;Tool Mode dialog |
| | [[Image:Tool dialog - Trigger Properties.png]] |
|
| |
|
| <CENTER>[[OBD:BINA/Trigger_Volume|<==]] <FONT SIZE=5>Trigger.BINA</FONT> [[OBD:BINA/Turret|==>]]</CENTER>
| |
|
| |
|
| | {{OBD OBJC Footer | align=center | type=TRIG | prev=TRGV | next=TURR | name=Trigger | onistuff=b_tr | family=Level}} |
|
| |
|
| [[Main Page]] >> [[OBD:Oni Binary Data|Oni Binary Data]] >> [[OBD:File types|File types]] >> [[OBD:BINA|BINA]] >> Trigger.BINA
| | {{OBD}} |