Prop phone

From Valve Developer Community
Revision as of 06:15, 31 May 2019 by Soer4769 (talk | contribs) (Created a page for the phone booth entity found in Sin Episodes)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
List of SE1 entities
Prop phone.png

Template:Se1 point It is a telephone booth with a build-in VGUI screen where the player is capable of dialing phone numbers found throughout the world to hear funny, odd and crazy responses from the other end.

Keyvalues

Name ([todo internal name (i)]) <string>
The targetname that other entities refer to this entity by.
Disabled ([todo internal name (i)]) <integer>
Should the phone be disabled?
FailSound ([todo internal name (i)]) <string>
Sound played when bad phone number is entered. (recommended: common/warning.wav)
KeypadName ([todo internal name (i)]) <string>
VGUI interface name. (default: prop_keypad)
PhoneBook ([todo internal name (i)]) <string>
Key-Value file containing phone numbers and sounds. (default: scripts/phonebook.txt)
Pitch Yaw Roll (Y Z X) (angles) <QAngle>
This entity's orientation in the world. Pitch is rotation around the Y axis, yaw is the rotation around the Z axis, roll is the rotation around the X axis.

Inputs

DialNumber
Dial a phone number.
Enable
Enable the phone.
Disable
Disable the phone.
Note.pngNote: Disabling or killing the entity does not stop the sound of a dialed phonenumber currently playing.
AddOutput <stringRedirectInput/string>
Evaluates a keyvalue/output on this entity.
Format: <key> <value>
Format: <output name> <targetname>:<inputname>:<parameter>:<delay>:<max times to fire, -1 means infinite>
FireUser1 to FireUser4
Fire the OnUser outputs; see User Inputs and Outputs.
Kill
Removes this entity and any entities parented to it from the world.
KillHierarchy
Functions the same as Kill, although this entity and any entities parented to it are killed on the same frame, being marginally faster than Kill.

Outputs

OnUse
Fires when the Use input is given.