Skip to content

Commit a7bd8a6

Browse files
TeamSpen210ozxybox
authored andcommitted
feat: New npc_security_camera customisation options
1 parent e6aa3db commit a7bd8a6

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

fgd/point/npc/npc_security_camera.fgd

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,21 +34,29 @@
3434
3: "ATLAS"
3535
]
3636

37-
model(studio) : "Camera Model" : "models/props/security_camera.mdl" : "Model to be used in game"
37+
model(studio) : "Camera Model" : "models/props/security_camera.mdl" : "Model to be used in game."
38+
rotatesound(sound) : "Rotation Sound": "Portalgun.pedestal_rotate_loop" : "Sound loop played when the camera moves."
39+
speed(float) : "Rotation Speed" : 0 : "Speed the camera rotates, in degrees per second. By default, cameras targeting pings move at 8 deg/s, while all others move at 7 deg/s."
40+
decalname(decal) : "Detach Decal" : "SecurityCamera.Detachment" : "Decal placed on the wall when the camera detaches. If set to 'none', no decal is placed."
41+
glowname(sprite) : "Glow Sprite" : "sprites/glow1.vmt" : "Sprite used on the 'lens' attachment point. To remove the sprite, omit the attachment point."
42+
enableropes(boolean) : "Enable Ropes" : 0 : "Enable a pair of ropes, like in Portal 1. 4 attachments should be defined - Wire1_A, Wire1_B, Wire2_A, Wire2_B."
3843

3944
// Inputs
4045
input Enable(void) : "Start following players."
4146
input Disable(void) : "Stop following players, freezing in place."
4247
input Toggle(void) : "Toggle following players."
43-
input Ragdoll(void) : "Knock the camera off the wall."
48+
input Detach(void) : "Knock the camera off the wall."
49+
input Ragdoll(void) : "Backwards-compatibiity alias for Detach."
4450

4551
input LookAtBlue(void) : "Make the camera only follow ATLAS."
4652
input LookAtOrange(void) : "Make the camera only follow P-Body."
4753
input LookAllTeams(void) : "Make the camera follow all players."
54+
input ForceLookAt(ehandle) : "Force the camera to look at the specified entity, or return to normal if none is supplied."
4855

4956
// Outputs
5057
output OnDeploy(void) : "Camera is becoming active and dangerous."
5158
output OnRetire(void) : "Camera is becoming inactive and harmless."
59+
output OnDetach(void) : "Camera was knocked off the wall."
5260

5361
output OnTaunted(void) : "A player STARTED taunting the camera."
5462
output OnTauntedBlue(void) : "ATLAS STARTED taunting the camera."

0 commit comments

Comments
 (0)