0x68 — global_visual_state
Global/object visual-state field writer. It writes through gpGlobalDB, gpObjectManager, and Radi fields, consuming bit-selected floats/words. No named calls are made in the traced body.
proven— handler traced, and exercised by at least one shipped script.
At a glance
| Opcode | 0x68 (104) |
|---|---|
| Handler | CRadiScript::Command_68 |
| Signature | CRadiScript::Command_68(int,SCR_DATA*,unsigned int,unsigned int) |
| Translation unit | r_script_run6.cpp |
| Address | — debug build; click for all 3 |
| Handler size | 0x394 (916 bytes) |
| Engine name | global_visual_state |
| Family | Primitives, textures, sound and movies |
| Command size | 4 + extra_words * 4 bytes |
Handler behaviour
Global/object visual-state field writer. It writes through gpGlobalDB, gpObjectManager, and Radi fields, consuming bit-selected floats/words. No named calls are made in the traced body.
Encoding
The command header is one 32-bit word, as described in §3 Instruction encoding:
31 24 23 16 15 8 7 0
+----------------+----------------+----------------+----------------+
| flags | argument byte | extra words | 0x68 |
+----------------+----------------+----------------+----------------+Bits 8–15 give the number of 32-bit operand words that follow. Bits 16–23 are handed to the handler as a bitfield; on character commands bit 0 normally says whether a character selector word is present. Bit 31 is the keep-going bit.
Operand fields
5 documented fields. input fields are read from the command's operand words; derived fields are computed from other fields rather than stored separately.
| Field | Role | Meaning |
|---|---|---|
global_db | derived | Whether the gpGlobalDB field group is written. |
global_db_float | input | Float parameter for global db. |
global_db_reserved | input | Raw word written alongside the global-DB float, preserved verbatim. |
object_visual | derived | Whether the object-manager visual field group is written. |
yield | derived | Pause the script here for one game frame; the next command runs on the following update. Lines without it keep running immediately. |
Engine calls
Engine functions this handler was observed calling:
(inline)
Bit masks
Masks the handler applies to its argument byte or operand words:
0x00FF 0x0001 0x0002 0x0003