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
DoomEd Number 9073 Class Name AimingCamera


Classes: SecurityCameraAimingCamera

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

The aiming camera takes four parameters:

1. pitch: pitch of camera in degrees, 0 is straight ahead, 1-89 is down, and 166-255 is up (angle subtracted from 256).
2. yaw: maximum number of degrees to turn yaw per second.
3. turn: maximum number of degrees to turn pitch per second.
4. tid: tid of thing to follow.

The camera is activated by using the ChangeCamera (237) special. The ChangeCamera special has three parameters:

1. tag: The camera tid.
2. who: 0 if the view only changes for the player activating the special, 1 if all player views change.
3. revert: 1 if the view should revert back to player when he moves.

DECORATE definition

ACTOR AimingCamera : SecurityCamera 9073 native {}
Personal tools
Namespaces
Variants
Actions
Navigation
ACS
DECORATE
ZDoom mods
Toolbox