Classes:MovingCamera

From ZDoom Wiki

Jump to: navigation, search
Moving camera
Actor type Script thing Game
DoomEd Number 9072 Class Name MovingCamera

Classes: PathFollowerMovingCamera

The moving camera is, as the name implies, a camera that moves along a predetermined path. The movement is quite smooth and is perfect for creating those cut scenes found in most games today.

The moving camera takes four parameters:

1. low byte: low byte of tid of first interpolation point in path.
2. high byte: high byte of tid of first interpolation point in path.
3. options: (Add any of the following values; i.e. for options 2 and 4, this parameter would be 6):
  • 1: path is linear instead of curved.
  • 2: Camera will adjust its angle to match those of the points it passes.
  • 4: Camera will adjust its pitch to match those of the points it passes.
  • 8: When used with 2 and/or 4, the camera faces in the direction of movement instead of the direction the interpolation points are facing.
  • 128: Every player will see the camera's view, and not just the player who activates it.
4. tid: Tid of thing to look at (or 0). If specified, settings 2 and 8 in the third parameter are ignored. Setting 4 will adjust pitch to center the thing being aimed at.

To start a moving camera use Thing_Activate. To stop a moving camera use Thing_Deactivate. Thing_Deactivate takes one parameter, the tid of the thing to deactivate. If the camera is restarted using Thing_Activate, it will automatically start at the beginning of the path. You can use ChangeCamera as often as you like to view the camera.

DECORATE definition

ACTOR MovingCamera : PathFollower 9072 native {}
Personal tools