Point broadcastclientcommand: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
(-added class hierarchy, cleanup)
Line 1: Line 1:
{{stub}}
__NOTOC__
{{CD|CPointBroadcastClientCommand|file1=client.cpp}}
{{base point|point_broadcastclientcommand|since=Left 4 Dead}}
{{base point|point_broadcastclientcommand|since=Left 4 Dead}} It's an entity that issues commands to each valid client's console, as if it was typed in by that player locally.


{{warning|'''This entity can corrupt the map.[[vmf]] file if used improperly.''' Inputs using quotation marks '''"''' in the parameter field will cause the vmf to be broken in such a way that hammer refuses to open and compile it. This is because the vmf uses the same quotation marks to determine the end of a string. It will read the quotation mark or your input, assume that to be the end of the string and then realise that the subsequently written words are nonsensical. {{fix|Either remove the quotation marks while hammer is still running, or open the vmf in a text editor, search for this entity and manually remove the unnecessary quotation marks.}} }}
This was used in L4D2 Campaign '''Hard Rain''' to change the client fog during a heavy part of a rain storm. {{todo|Clarify and be more accurate about usage in official maps.}}
 
== Entity description ==
An entity that issues commands to each valid client's console, as if it was typed in by that player locally. This was used in L4D2 Campaign '''Hard Rain''' to change the client fog during a heavy part of a rain storm. {{todo|Clarify and be more accurate about usage in official maps.}}


== Keyvalues ==
== Keyvalues ==
Line 12: Line 9:


== Inputs ==
== Inputs ==
{{IO|Command|Command to execute.|param=string}}
{{IO|Command|Command to execute.{{Bugfix|In Hammer, using " symbol in parameter field will corrupt the [[VMF]] file's structure, making the file unviewable for the next Hammer session.|Remove the string argument manually with a text editor.}}|param=string}}


== See Also ==
== See Also ==

Revision as of 08:19, 22 November 2022

C++ Class hierarchy
CPointBroadcastClientCommand
CPointEntity
CBaseEntity
C++ client.cpp

Template:Base point It's an entity that issues commands to each valid client's console, as if it was typed in by that player locally.

This was used in L4D2 Campaign Hard Rain to change the client fog during a heavy part of a rain storm.

Todo: Clarify and be more accurate about usage in official maps.

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

Inputs

Command <stringRedirectInput/string>
Command to execute.
Icon-Bug.pngBug:In Hammer, using " symbol in parameter field will corrupt the VMF file's structure, making the file unviewable for the next Hammer session.  [todo tested in ?]
Note.pngFix:Remove the string argument manually with a text editor.

See Also