Prop phone

From Valve Developer Community
Jump to: navigation, search
List of SE1 entities
Prop phone.png


<SiN Episodes: Emergence> This is a point entity available in Sin Episodes. 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 <string>
The targetname that other entities refer to this entity by.
Disabled <integer>
Should the phone be disabled?
FailSound <string>
Sound played when bad phone number is entered. (recommended: common/warning.wav)
KeypadName <string>
VGUI interface name. (default: prop_keypad)
PhoneBook <string>
Key-Value file containing phone numbers and sounds. (default: scripts/phonebook.txt)

Angles:

Pitch Yaw Roll (Y Z X) <angle>
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: Disabling or killing the entity does not stop the sound of a dialed phonenumber currently playing.
AddOutput <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.

Base:

OnUser1 to OnUser4
These outputs each fire in response to the firing of the like-numbered FireUser1 to FireUser4 Input; see User Inputs and Outputs.