Point servercommand: Difference between revisions
Jump to navigation
Jump to search
Note:Due to a high risk of abuse, it is gated by the sv_allow_point_servercommand console variable.
mNo edit summary |
(-added class hierarchy, cleanup) |
||
Line 1: | Line 1: | ||
{{ | __NOTOC__ | ||
{{CD|CPointServerCommand|file1=client.cpp}} | |||
{{base point|point_servercommand}} It issues commands to the server console. It's used by simply placing it in a map and triggering the Command input, the parameter override should be the exact console command to run. | {{base point|point_servercommand}} It issues commands to the server console. It's used by simply placing it in a map and triggering the Command input, the parameter override should be the exact console command to run. | ||
{{note|Due to a high risk of abuse, it is gated by the <var>sv_allow_point_servercommand</var> console variable.}} ("always" = On "disallow" = Off) | {{note|Due to a high risk of abuse, it is gated by the <var>sv_allow_point_servercommand</var> console variable.}} ("always" = On "disallow" = Off) | ||
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 == | ||
* [https://github.com/ValveSoftware/source-sdk-2013/blob/master/mp/src/game/server/client.cpp#L609 CPointServerCommand] | |||
* [[point_broadcastclientcommand]] | * [[point_broadcastclientcommand]] | ||
* [[point_clientcommand]] | * [[point_clientcommand]] | ||
[[Category:Console Commands]] | [[Category:Console Commands]] |
Revision as of 08:22, 22 November 2022
![]() |
---|
CPointServerCommand |
![]() |
Template:Base point It issues commands to the server console. It's used by simply placing it in a map and triggering the Command input, the parameter override should be the exact console command to run.

("always" = On "disallow" = Off)
Keyvalues
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentname
ortarget
).
Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities
Inputs
- Command <string >
- Command to execute.
Fix:Remove the string argument manually with a text editor.