Synergy

Synergy

65 ratings
Console Commands and Macros
By Archanor
A short guide over new console commands and chat macros.
2
   
Award
Favorite
Favorited
Unfavorite
Enabling the Console
This guide assumes you have the console enabled. If not, see the linked guide below.
https://cs2bus.com/sharedfiles/filedetails/?id=3408436375
Introduction
The point of this guide is to list all console commands and variables that are unique to Synergy, and gives a brief introduction to binding commands and how to use chat macros.

You can type the variable name in the console to get more information about them.

You can also list commands and variables, by using the find command. Type "find vote" to list all variables related to voting.

Note that some commands and variables will only work when sv_cheats is enabled, and others may only work if you are the server host.
Console Commands & Variables
Player Actions

dropammo
Will drop or give ammo to another player in range when facing him

drophealth
This command lets you heal nearby players which you are facing. Bind it to a button and press it twice quickly to throw a small healthkit.

dropweapon
Drop your currently deployed weapon

+use
Keep your USE key pressed to holster your weapon

voice_menu
Displays the Voice Menu which allows you to let your character to warn and inform players about in-game situations

Gameplay Variables

save_async (0/1) (default 1)
- 0: Disable asynchronous saving — the game will pause briefly during save operations.
- 1: Enable asynchronous saving — saves occur in the background, reducing stutter during autosaves or quicksaves.
⚠️ Warning: This setting is known to cause crashes on Linux. Disable it (set to 0) if you experience instability.

mp_antirush_disable (0/1) (default 1)
- Disable progression prevention methods at the end of applicable levels.
- HL2 Support (EP1 & EP2 Partial Support)
- This function is a work-in-progress, not all scenarios are accommodated for.
- Requires level restart to apply changes.

mp_antirush_percent (0–100)
- In Anti-Rush mode, this is the percentage of living players that must be at the end of the level to allow continuation.

mp_reset (0/1) (default 1)
- Reload to last checkpoint when all players die.

mp_teleport_disable (0/1) (default 0)
- Disable select nonessential map-based automatic player teleports.
- HL2 Support
- This function is a work-in-progress, not all scenarios are accommodated for.
- Requires level restart to apply changes.

mp_vintage_mode (0/1) (default 0)
- Remove most modifications and additions while maintaining core functionality and support.
- Partial HL2 Support
- This function is a work-in-progress, not all scenarios are accommodated for.
- Requires level restart to apply changes.

sv_propjump_enable (0/1) (default 0)
- Allow players to propjump/surf.

mp_doors_openonly (1/2) (default 1)
- 1: Prevent doors from auto-closing.
- 2: Prevent doors from auto-closing AND prevent players from closing them.

mp_player_death_items (0/1/2) (default 2)
- 0: Drop nothing.
- 1: Drop ammo pack.
- 2: Drop all weapons except those the player spawns with.

cl_ejectbrass (1/2) (default 1)
- 1: Eject short-lived shells.
- 2: Eject physical, semi-persistent shells.

hud_player_pyramid (0/1) (default 0)
- Draw Synergy's player pyramid HUD feature.

sv_savedir
- Sets the directory where save files are stored.
- Change this per dedicated server instance to avoid conflicts.
- Path is relative to the "save/" directory.
- Cannot be changed during gameplay.

reload_particleseffects_client
- This command fixes VFX bugs on HL2 Episodes
- Requires cheats to be enabled and though for the particles command
- Client needs to rejoin server after particles command is executed

Outline Glow

glow_outline_effect_enable (0/1) (default 1)
- Enable entity outline glow effects.

glow_max (default 32)
- Maximum number of player glows to draw at once.

glow_outline_width (default 10)
- Width of the glow outline.

Voting Variables

sv_allow_votes (0/1) (default 1)
- Allow voting on the server.

sv_vote_failure_timer (seconds) (default 300)
- A failed vote cannot be called again until this time has passed.

sv_vote_creation_timer (seconds) (default 150)
- Time a player must wait before calling another vote.

sv_vote_quorum_ratio (0.1–1.0) (default 0.6)
- Minimum ratio of eligible players needed to pass a vote.

sv_vote_allow_spectators (0/1) (default 0)
- Allow spectators to participate in votes.

sv_vote_ui_hide_disabled_issues (0/1) (default 1)
- Hide disabled vote options from the vote setup screen.

sv_vote_enable (0/1) (default 1)
- Enable or disable voting functionality on the server.

sv_vote_interval (0–120 seconds) (default 10)
- Time delay between individual vote calls.

sv_vote_percent_map (0–100) (default 60)
- Percent of players required to pass a map change vote.

sv_vote_percent_difficulty (0–100) (default 60)
- Percent of players required to pass a difficulty change vote.

sv_vote_percent_kick (0–100) (default 60)
- Percent of players required to pass a kick vote.

sv_vote_percent_restore (0–100) (default 60)
- Percent of players required to pass a vote to restore the last checkpoint.

listissues
- Lists all voteable issues available on the server.

callvote
- Starts a vote on a selected issue.

vote_yes
- Cast a "yes" vote in the current vote.

vote_no
- Cast a "no" vote in the current vote.
Chat Macros
You can use the following macros in your chat text, they will be replaced by your current values.
  • %h Your current health value
  • %a Your current armor value
  • %w Your current weapon name
  • %d Your current weapon ammo
As an example, if you are holding the shotgun and have 12 shells left:

Typing this in the chat... "I need %w ammo! I only have %d ammo left!"

...will say: "I need Shotgun ammo! I only have 12 ammo left!"

Chat Macro Example
bind p "say I need %w ammo! I only have %d ammo left!"

Press P in-game and it will print the text in the chat for everyone to see.
Binding Keys
There are plenty of useful console commands and chat macros, but typing them out in the middle of playing isn’t always practical. To save time, you can bind any command to a key using the bind command.

For example, this line binds your G key to drop your current weapon:

bind g "dropweapon"

The syntax is simple: just type bind, followed by the key, and then the command you want it to execute in quotes. You can bind most keys on your keyboard and mouse, including things like mouse1, mwheelup, or even function keys like F3.

If you assign a new bind to a key that already has one, the old one will be replaced. To check what a key is currently bound to, just type:

bind <key>

And if you want to remove a bind entirely:

unbind <key>

You can also see a full list of all your active keybinds by entering:

key_listboundkeys

This is especially useful when troubleshooting or customizing your setup.
Keyboard Keynames
Here's a list of some useful keys to know when binding commands.

Letter & Number Keys
a, b, c ... z 0, 1, 2 ... 9

Mouse Input Names
mouse1 – Left-click mouse2 – Right-click mouse3 – Middle-click mouse4, mouse5 – Side buttons (if your mouse has them) mwheelup – Scroll wheel up mwheeldown – Scroll wheel down

Arrow Keys
uparrow downarrow leftarrow rightarrow

Function Keys
f1 to f12

Common Keys
enter space backspace tab escape shift ctrl alt

Keypad
kp_ins – Numpad 0 kp_end – Numpad 1 kp_downarrow – Numpad 2 kp_pgdn – Numpad 3 kp_leftarrow – Numpad 4 kp_5 – Numpad 5 kp_rightarrow– Numpad 6 kp_home – Numpad 7 kp_uparrow – Numpad 8 kp_pgup – Numpad 9 kp_enter – Numpad Enter kp_del – Numpad Delete kp_slash – Numpad / kp_multiply – Numpad * kp_minus – Numpad - kp_plus – Numpad + kp_equals – Numpad =

Navigation Keys
pause ins – Insert del – Delete home end pgup – Page Up pgdn – Page Down
Related Guides
Here are a few related guides that teach more about console commands:

https://cs2bus.com/sharedfiles/filedetails/?id=141212133
19 Comments
Archanor  [author] 25 Jan @ 2:21pm 
@DaftMink Appreciate the tip :) I ought to update with more info about the other commands as well when I have spare time.
DaftMink 🐾 24 Jan @ 5:20pm 
mp_doors_openonly

1: Prevent doors from auto-closing.
2: Prevent doors from auto-closing AND prevent players from closing them.

mp_player_death_items

0: Drop nothing.
1: Drop ammopack.
2: Drop all weapons that is not a weapon that a player spawns with.
-Slick- 3 Sep, 2024 @ 3:19am 
I need %w ammo! I only have %d ammo left!
originalname 28 Aug, 2021 @ 10:05am 
This is very useful! Thanks for this.
johnson from johnson adventure 19 Aug, 2021 @ 8:25am 
give gun to an airboat you're looking at (host only)
ent_fire !picker enablegun 1
also gives a Tau Cannon for any Jeep.
johnson from johnson adventure 19 Aug, 2021 @ 8:21am 
not a useful command but, its funny i guess
johnson from johnson adventure 19 Aug, 2021 @ 8:20am 
You can add a cat decal (requires sv_cheats 1 to function)
ent_create infodecal texture matsys_regressiontest/background
Archanor  [author] 19 Aug, 2021 @ 7:38am 
@laser cut cheese If you have more useful facts to add in here about the existing commands, I could update the guide with it.
johnson from johnson adventure 18 Aug, 2021 @ 7:38pm 
@Cultist
@molc
Vintage mode is where the games maps are reset back to [pretty much] original hl2 maps, removing any extra weapons, hp, and ammo found on some maps.
Dr. Coomer from hlvr ai 23 Jun, 2021 @ 6:46pm 
oop