Buy: Difference between revisions
Jump to navigation
Jump to search
Note:The command buy also exists in
,
and
but simply opens the buy menu. For that purpose,
and
have the command buymenu instead.
(Testing template:infotable. Created proper table for css. Added all I know, kind of.) |
m (-info map parameters changed link) |
||
| Line 218: | Line 218: | ||
*1: CTs only | *1: CTs only | ||
*2: Ts only | *2: Ts only | ||
*''else'': Don't override, read from {{ent|info_map_parameters}}, else Both | *''else'': Don't override, read from {{ent|Info_map_parameters/Counter-Strike_series|alt=info_map_parameters}}, else Both | ||
|} | |} | ||
[[Category:Counter-Strike: Global Offensive Console Commands]] | [[Category:Counter-Strike: Global Offensive Console Commands]] | ||
Revision as of 13:33, 7 November 2022
| buy | |
|---|---|
| Type | Console Command |
| Engine | |
| Availability | |
is a non-cheat command for players to purchase weapons and equipment with their funds while they are allowed to buy, i.e. if the mp_buytime hasn't expired yet and if they are inside a func_buyzone.
Syntax
buy <item alias>
If the command is invoked with invalid or no arguments, it prints a list of valid arguments.
There is the alternative syntax buy <?> <int>.
Todo: What is the first parameter for? Appears to work with any first non-empty parameter.
"buy awp" tries to buy an AWP. |
"buy awp" or "buy 1 18" tries to buy an AWP."buy 1 25" to buy it via command.buy heavyarmor anymore, independent of mp_weapons_allow_heavyassaultsuit,even though heavyarmor is still listed when invoking buy with invalid or no arguments. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Related Console Commands and Variables
| ConCommand/ConVar | Default value | Description |
|---|---|---|
| autobuy | ConCommand | Attempts to purchase items with the order listed in cl_autobuy. Buys at most one primary and at most one secondary. |
| cl_autobuy | "" | A space-delimited list of buy aliases (see above) in the order in which autobuy will attempt to purchase them. csgo/autobuy.txt.
|
| rebuy | ConCommand | Attempts to repurchase items with the order listed in cl_rebuy. By default, this results in trying to buy the exact loadout that the executing player had when they had bought something for the last time. |
| cl_rebuy | "" | A space-delimited list of item categories in the order in which rebuy will attempt to repurchase them. Categories are: PrimaryWeapon, PrimaryAmmo, SecondaryWeapon, SecondaryAmmo, Defuser, Armor, HEGrenade, Flashbang, SmokeGrenade, NightVision (csgo/rebuy.txt.
|
| buymenu | ConCommand | Opens or closes the buy menu. |
| mp_buytime | The time in | |
| 0 | Determines which teams are allowed to buy anywhere in the map and not just in func_buyzones.
| |
| -1 | Overrides which teams are allowed to buy at all. Changing this value takes effect in the next round.
|