OBD:BINA/OBJC/TRIG
- This is about trigger instances. For the trigger class resource, see OBD:TRIG.
|
|
|
| Offset | Type | Raw Hex | Value | Description |
|---|---|---|---|---|
| 0x00 | char[4] | 43 4A 42 4F | OBJC | objects |
| 0x04 | int32 | DC 0A 00 00 | 2780 | size of the complete list from this position in bytes |
| 0x08 | int32 | 27 00 00 00 | 39 | object list version |
| 0x0C | int32 | 80 00 00 00 | 128 | size of the following element in bytes |
| First element (black outline) | ||||
| Generic object data | ||||
| 0x00 | char[4] | 47 49 52 54 | TRIG | trigger |
| 0x04 | int32 | 15 0F 00 00 | 3861 | object ID |
| 0x08 | uint16 | 09 00 00 00 | object flags; only used at runtime in Tool mode | |
| 0x0C | float | 5E FA 03 C3 | -131.977996 | x position of the trigger |
| 0x10 | float | 9A 99 82 C2 | -65.300003 | y position (height) of the trigger |
| 0x14 | float | EE FC 94 43 | 297.976013 | z position of the trigger |
| 0x18 | float | 00 00 00 00 | 0.000000 | rotation on the x axis in degrees |
| 0x1C | float | 00 00 00 00 | 0.000000 | rotation on the y axis in degrees |
| 0x20 | float | 00 00 00 00 | 0.000000 | rotation on the z axis in degrees |
| Object-specific data | ||||
| 0x24 | char[63] | "trigger_evilbrain" | trigger class name (00701-trigger_evilbrain.TRIG of level 0) | |
| 0x63 | uint16 | CA 00 | 202 | trigger ID |
| 0x65 | uint16 | 4C 00 | 0x4C00 | flags:
|
| 0x67 | 00 00 FF FF | red | laser color | |
| 0x6B | float | 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) |
| 0x6F | float | 00 00 40 3F | 0.750000 | speed of the trigger; ranges from 0 (stopped) to 100 (very fast) |
| 0x73 | int16 | 02 00 | 2 | trigger emitter count |
| 0x75 | int16 | 00 00 | 0 | time on, in frames (ranges from 0 to 360,000, or 100 min.) |
| 0x77 | int16 | 00 00 | 0 | time off, in frames (same range as above) |
| 0x79 | int16 | 01 00 | 1 | 1 event block follows (the block is edged in grey) |
| Event Block | ||||
| 0x00 | 02 00 | 2 | event type; only these values are used in the vanilla game data:
| |
| 0x02 | 14 00 | 20 | event argument: turret ID | |
| Event Block End | ||||
| 00 | alignment padding | |||
Time on/off
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.
- Tool Mode dialog
| ONI BINARY DATA |
|---|
| AKVA << Other file types >> CBPI |
| BINA : Binary data |
| TMBD << Other BINA >> ONIE |
| OBJC : Objects |
| TRGV << Other OBJC >> TURR |
| TRIG : Trigger |
| Level file |


