Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Engine behavior

Runtime rules for scripts, actors, world rendering, sound, and presentation. The file format references describe the stored data; the configuration reference describes the INI settings.

Scripting and actors

TopicBehavior
SOUP scriptingVirtual machine, bytecode, value modes, tasks, function dispatch, and global flags.
SOUP386.DEFFunction, attribute, reference, and flag definitions used by scripts.
SOUP property descriptorsActor-record offset and width of every script property.
Actor animationModel frames, animation requests, loop counts, and placed actor eligibility.
Player movementCoordinate units, turning, collision, and frame timing.
Item attachmentVertex tracking for held weapons and shields.
Developer consoleAll 82 registered commands, aliases, subcommands, numeric parsing, and command quirks.
Hidden cheatsCheat entry, effects, persistence, and developer controls.

World rendering

Look and feel connects the visible result to the rendering and presentation rules below.

Start with the Glide shading overview for flat and smooth shading, the color pipeline, and links to the detailed rules.

TopicBehavior
Model lightingFace brightness, directional and local lighting, and retained instance colors.
Actor prelightingRetained map-light colors on eligible static-model actors.
Terrain lightingAmbient and directional RGB lighting and terrain normals.
View projectionHorizontal field of view, viewport scaling, and camera coordinates.
Fog and clippingScene and sky ranges, fog tables, and color blending.
SkySky planes, background color, scrolling, and sun settings.
Texture animationShared texture frames, authored delays, automatic and explicit selection.
Water wavesTerrain vertex displacement and wave settings.

Audio and presentation

TopicBehavior
Positional soundDistance attenuation, stereo pan, channels, and surface sound remapping.
MusicCD tracks, world selection, switching, and repetition.
SubtitlesDialogue, taunt, and movie text layout and timing.
In-game HUDHealth, items, activation prompts, compass, and draw order.
Book menuMenu models, text placement, fonts, selection, and actions.
Cinematic playbackMovie selection, skip points, subtitles, and display rules.
Startup presentationSplash assets, projection, lighting, and screen sequence.