Moderator elections are being held. See Valve Developer Community:Moderator elections for more details.
Users who would like to run for moderator must be autoconfirmed and have at least 100 edits. Users can check their own edit count at Special:Preferences.
Users who would like to run for moderator must be autoconfirmed and have at least 100 edits. Users can check their own edit count at Special:Preferences.
point_broadcastclientcommand
![]() |
---|
CPointBroadcastClientCommand defined in ![]() client.cpp
|
point_broadcastclientcommand
is a point entity available in all Source games 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.
This was used in L4D2 Campaign Hard Rain to change the client fog during a heavy part of a rain storm.
![Blank image.png](/w/images/b/ba/Blank_image.png)
Keyvalues
Targetname:
- Name
(targetname)
<string> - The targetname that other entities refer to this entity by.
Inputs
Command
<string>- Command to execute.
Bug:In Hammer, using " symbol in parameter field will corrupt the VMF file's structure, making the file unviewable for the next Hammer session.
Fix: Remove additional " symbols manually with a text editor.
Usable ConVars/ConCommands in multiplayer
![Note.png](/w/images/thumb/c/cc/Note.png/10px-Note.png)
![Left 4 Dead series](/w/images/thumb/9/9b/L4dseries-16px.png/32px-L4dseries-16px.png)
Following commands have "server_can_execute" flag.
ConCommands
Cvar/Command | Parameters or default value | Descriptor | Effect |
---|---|---|---|
echo | <string> | Echo text to console. | |
cancelselect |
| In ![]() | |
firstperson |
| Go into firstperson view | |
invnext |
| In ![]() | |
invprev |
| In ![]() | |
lastinv |
| Equips previously used weapon | |
(only in |
| Force weapon inspection | |
(only in |
| Cancel weapon inspection | |
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 |
soundfade | <float> <float> [<float> <float>] | <percent> <hold> [<out> <int>] | Fade in/out all client volume |
sndplaydelay | <float> <string> | <delay_in_sec> <soundname> | Play a sound with a given delay. Negative to skip ahead |
(only in
| <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 |
redirect | <string> | <server ip address> | Redirect client to specified server. |
retry |
| Retry connection to current (or last) server. | |
rpt_connect |
| ||
r_cleardecals |
| Clear all client decals | |
r_screenoverlay | <string> | <material name> | Draw specified material as an overlay |
ConVars