Classes:AimingCamera

From ZDoom Wiki
Jump to: navigation, search
Note: Wait! Stop! Before you copy this actor's definition into your mod, remember the following things:
  1. You do not need to copy that actor, since it is already defined.
  2. In fact, it's not just useless, it's actually harmful as it can cause problems.
  3. If you want to modify it, or use a modified version, using inheritance is the way to go.
  4. The actor definitions here are put on the wiki for reference purpose only. Learn from them, don't copy them.
  5. There is only one exception: if what you want is changing Ammo capacity, you need to create a new type from Ammo.
Aiming camera
Actor type Script thing Game MiniZDoomLogoIcon.png
DoomEd Number 9073 Class Name AimingCamera


Classes: SecurityCameraAimingCamera

The AimingCamera is another ZDoom camera similar to the SecurityCamera. However, this camera will aim at and follow a target.

The camera is activated by using the ChangeCamera (237) special or by a SetCameraToTexture in ACS.

Arguments

The aiming camera takes four arguments:

  • args[0] → pitch of camera in degrees, equal to the angle subtracted from 256.
  • args[1] → maximum number of degrees to yaw (rotate side to side) per second.
  • args[2] → maximum number of degrees to pitch (rotate up and down) per second.
  • args[3] → tid of thing to follow.

DECORATE definition

ACTOR AimingCamera : SecurityCamera native {}