SPLINE

From 3DGE Wiki
Jump to: navigation, search

SPLINE is the name of the internal scripting engine that 3DGE utilizes for cameras. The library is heavily modified from the Quake III GPL Source Code.

It works by assigning the camera along an interpolated path dynamically in the game world, depending on what has control of the camera itself. This allows for kinds of gameplay much removed, as now the engine could be used for side-scrolling, third-person, or whatever kind of game the user desires to make. Careful consideration has to be taken that the camera does not go out of bounds otherwise empty voids are clipped into the viewport.

How it Works

3DGE employs a new sub-folder called /cameras. Inside are CFG files that are called via an RTS trigger (SPLINE_TRIGGER [] [] [] []). When they are tripped by RTS, a commands gets sent to COAL which redirects the viewport to the assigned camera. While Splines is running, it does not keep track of the internal playsim, so the player still has control of herself (use the RTS Thing command FREEZE_PLAYER for true cinematics).

The CFG files so far cannot be employed in a WAD as a LUMP - they must be externally read.

USAGE

SPLINE_TRIGGER [1] [2] [3] [4]

The integer values represent X, Y, Z, and an empty value (not yet implemented).


    • UNDER CONSTRUCTION**!