Classes:SecurityCamera

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.
Security camera
Actor type Script thing Game
DoomEd Number 9025 Class Name SecurityCamera


Classes: SecurityCamera
 →AimingCamera

The security camera is a camera that pans from side to side, much like the security camera in Duke Nukem 3D. It is a great addition to either a single player or multiplayer map.

The security camera takes three parameters:

pitch: pitch of camera in degrees, 0 is straight ahead, 1-89 is down, and 166-255 is up (angle subtracted from 256).
degrees pan: number of degrees camera will rotate in either direction from its original orientation.
time to cycle: number of octics to complete one cycle of turning.

Place the camera in the map and set the thing angle to point in the direction you want the camera to face. Set the three parameters of the camera and give the camera a new thing id.

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

DECORATE definition

ACTOR SecurityCamera 9025 native 
{
  +NOBLOCKMAP 
  +NOGRAVITY
  +DONTSPLASH
  RenderStyle None
}
Personal tools
Namespaces
Variants
Actions
Navigation
ACS
DECORATE
ZDoom mods
Toolbox