ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


functions:hudsetcameraactoradvanced

HudSetCameraActorAdvanced

void HudSetCameraActorAdvanced(int tid, int flags)

This is a HUD Library function.

Description

Sets camera position and direction to match those of the specified actor. Advanced version of HudSetCameraActor.

Takes the following flags:

  • HUD_CAMERAACTOR_NOPOSITION – don't set camera position.
  • HUD_CAMERAACTOR_NODIRECTION – don't set camera direction.
  • HUD_CAMERAACTOR_NOPREDICTION – don't try to shift camera position based on actor velocity to minimize positioning artifacts caused by 35 fps rendering.
  • HUD_CAMERAACTOR_NOVIEWHEIGHT – don't take the actor's view height into account.

Use | operator to combine flags (e.g HUD_CAMERAACTOR_NOPREDICTION | HUD_CAMERAACTOR_NOVIEWHEIGHT).

functions/hudsetcameraactoradvanced.txt · Last modified: 2017/04/17 20:14 by korshun