Point servercommand: Difference between revisions
Jump to navigation
Jump to search
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.
Note:Due to a high risk of abuse, it is gated by the sv_allow_point_servercommand console variable.
m (Official Link Source to CPointServerCommand instead of 3rd Party.) |
(reworded the warning because it was quite long and a bit hard to understand.) |
||
Line 3: | Line 3: | ||
{{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. | ||
{{warning|'''This entity can corrupt the vmf file if used improperly.''' | {{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.}} }} | ||
<code>In code it is represented by class [https://github.com/ValveSoftware/source-sdk-2013/blob/master/mp/src/game/server/client.cpp#L609 CPointServerCommand]</code>, defined in <code>[https://github.com/ValveSoftware/source-sdk-2013/blob/master/mp/src/game/server/client.cpp client.cpp]</code> | <code>In code it is represented by class [https://github.com/ValveSoftware/source-sdk-2013/blob/master/mp/src/game/server/client.cpp#L609 CPointServerCommand]</code>, defined in <code>[https://github.com/ValveSoftware/source-sdk-2013/blob/master/mp/src/game/server/client.cpp client.cpp]</code> |
Revision as of 16:50, 19 August 2022
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.


In code it is represented by class CPointServerCommand
, defined in client.cpp

("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.