Prop phone: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
 
(One intermediate revision by one other user not shown)
Line 5: Line 5:


==Keyvalues==
==Keyvalues==
{{KV|[[Targetname|Name]]|string| The [[targetname]] that other entities refer to this entity by.}}
{{KV Targetname}}
{{KV|Disabled|integer| Should the phone be disabled?}}
{{KV|Disabled|integer| Should the phone be disabled?}}
{{KV|FailSound|string| Sound played when bad phone number is entered. (recommended: common/warning.wav) }}
{{KV|FailSound|string| Sound played when bad phone number is entered. (recommended: common/warning.wav) }}
Line 13: Line 13:


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


==Outputs==
==Outputs==
{{IO|OnUse|Fires when the <code>Use</code> input is given.}}
{{O|OnUse|Fires when the <code>Use</code> input is given.}}
{{O BaseEntity}}


[[Category: Sin Episodes]]
[[Category: Sin Episodes]]
[[Category:Prop entities]]
[[Category:Prop entities|phone]]

Latest revision as of 11:20, 26 September 2024

List of SE1 entities
Prop phone.png

This is a point entity available in SiN Episodes SiN Episodes. It is a telephone booth with a built-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 (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

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.

Outputs

OnUse
Fires when the Use input is given.