Point clientcommand: Difference between revisions
mNo edit summary |
(-stuff) |
||
Line 14: | Line 14: | ||
== Usable ConVars/ConCommands == | == Usable ConVars/ConCommands == | ||
{{note| | {{note|In {{l4ds}} item equipping related commands only work when bound or used on human player with this entity}} | ||
Following commands have "server_can_execute" flag. | Following commands have "server_can_execute" flag. | ||
Line 20: | Line 21: | ||
{{varcom|start}} | {{varcom|start}} | ||
{{varcom|echo|<string>||Echo text to console.}} | {{varcom|echo|<string>||Echo text to console.}} | ||
{{varcom|cancelselect|||In {{ | {{varcom|cancelselect|||In {{hl}} style hud cancels currently selected weapon}} | ||
{{varcom|invnext|||}} | {{varcom|invnext|||In {{hl}} style hud selects next weapon}} | ||
{{varcom|invprev|||}} | {{varcom|invprev|||In {{hl}} style hud selects previous weapon}} | ||
{{varcom|lastinv|||}} | {{varcom|lastinv|||Equips previously used weapon}} | ||
{{varcom|slot0 - slot10|||}} | {{varcom|slot0 - slot10|||In {{hl}} style hud selects slot with the given number}} | ||
{{varcom|{{only|{{l4d2}}}}cl_consistencycheck|||Triggers the client to perform a consistency check}} | {{varcom|{{only|{{l4d2}}}}cl_consistencycheck|||Triggers the client to perform a consistency check}} | ||
{{varcom|cl_soundscape_flush|||Flushes the client side soundscapes}} | {{varcom|cl_soundscape_flush|||Flushes the client side soundscapes}} | ||
Line 46: | Line 47: | ||
{{varcom|end}} | {{varcom|end}} | ||
</onlyinclude> | </onlyinclude> | ||
{{todo|Only {{l4d2}} cvar list was considered so add commands from other games if there are}} | |||
== See also == | == See also == |
Revision as of 14:30, 22 November 2022
![]() |
---|
CPointClientCommand |
![]() |
Template:Base point It issues commands to the client console as if they were typed manually by the player. The client commands are sent as parameters of the Command input. One instance of the entity is ever needed in a map.
In multiplayer games, the commands are only executed on the Activator's client. If the activator was not a player, then it simply won't do anything (unless it's in commentary mode; then the command will be executed from the first player). If you require all players to execute the command, use the point_broadcastclientcommand entity instead.
This command (in conjunction with point_servercommand and the config (cfg) file) used to allow a client to cheat on multiplayer servers through changing player names, execute client commands, and other things. On multiplayer servers, any command that DOES NOT HAVE the FCVAR_SERVER_CAN_EXECUTE flag set cannot be executed by this entity; any attempt will be reported and blocked.
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.
Usable ConVars/ConCommands



Following commands have "server_can_execute" flag.
ConCommands
Cvar/Command | Parameters or default value | Descriptor | Effect |
---|---|---|---|
echo | <string> | Echo text to console. | |
cancelselect | In ![]() |
||
invnext | In ![]() |
||
invprev | In ![]() |
||
lastinv | Equips previously used weapon | ||
slot0 - slot10 | In ![]() |
||
(only in ![]() |
Triggers the client to perform a consistency check | ||
cl_soundscape_flush | Flushes the client side soundscapes | ||
play | <string> | <sound path> | Play a sound. |
playgamesound | <string> | <soundscript> | Play a sound from the game sounds txt file |
snd_playsounds | <string> [<float> <float> <float>] | <soundscript> [<x> <y> <z>] | Play sounds from the game sounds txt file at a given location |
snd_setsoundparam | <string> <volume <float 0.0-1.0> |level SNDLVL_<int 1-179>> | <soundscript> <volume <vol> |level SNDLVL_<db>> | Can change level or volume of a soundscript.
examples: snd_setsoundparam Flaregun.Detonate volume 0.1 snd_setsoundparam Flaregun.Detonate level SNDLVL_120 |
retry | Retry connection to last server. | ||
rpt_connect | |||
r_screenoverlay ![]() ![]() Todo: confirm other games [todo tested in ?] |
<string> | Draw specified material as an overlay |
ConVars