buy

From Valve Developer Community
(Redirected from Sv buy status override)
Jump to: navigation, search

buy is a console command available in Counter-Strike: Source Counter-Strike: Source and Counter-Strike: Global Offensive Counter-Strike: Global Offensive.

buy
TypeConsole Command
EngineSource Source
AvailabilityCounter-Strike: Source Counter-Strike: Source
Counter-Strike: Global Offensive Counter-Strike: Global Offensive
 

buy 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.

Note.pngNote:The command buy also exists in Counter-Strike, Counter-Strike: Condition Zero and Condition Zero Deleted Scenes but simply opens the buy menu. For that purpose, Counter-Strike: Source and Counter-Strike: Global Offensive have the command buymenu instead.
Confirm: Does Condition Zero Deleted Scenes actually have a buymenu that will pop up, or is the command vestigial there?

Syntax

buy <item alias>

If the command is invoked with invalid or no arguments, it prints a list of valid arguments.

Counter-Strike: Global Offensive There is the alternative syntax buy <?> <int>.

Todo: What is the first parameter for? Appears to work with any first non-empty parameter.
Buy aliases in Counter-Strike: Source
"buy <item>" Item slot that is purchased from
primammo
secammo
vest Kevlar Eqiupment
vesthelm Kevlar + Helmet
defuser Defusal Kit
nvgs Nightvision
flashbang Flashbang
hegrenade HE Grenade
smokegrenade Smoke Grenade
galil IDF Defender Rifles
ak47 CV-47
scout Schmidt Scout
sg552 Krieg 552
awp Magnum Sniper Rifle
g3sg1 D3/AU-1
famas Clarion 5.56
m4a1 Maverick M4A1 Carabine
aug Bullpup
sg550 Krieg 550 Commando
glock 9x19mm Sidearm Pistols
usp KM .45 Tactical
p228 228 Compact
deagle Night Hawk .50C
elite .40 Dual Elites
fiveseven, fn57 ES Five-SeveN
m3 Leone 12 Gauge Super Shotguns
xm1014 Leone YG1265 Auto Shotgun
mac10 Ingram MAC-10 SMG
tmp Schmidt Machine Pistol
mp5, mp5navy KM Sub-Machine Gun
ump45 KM UMP45
p90 ES C90
m249 M249 Machine Guns
PlacementTip.pngExample:"buy awp" tries to buy an AWP.
Buy aliases in Counter-Strike: Global Offensive
"buy 1 <int>" "buy <item>" Item slot that is purchased from
0 ?
1 -
2 glock, hkp2000, usp_silencer Glock-18 / P2000 / USP-S Pistol
3 elite Dual Berettas
4 p250 P250
5 tec9, fn57, fiveseven Tec-9 / CZ75-Auto / Five-SeveN
6 deagle Desert Eagle / R8 Revolver
7 -
8 mac10, mp9 MAC-10 / MP9 SMG
9 mp7 MP7 / MP5-SD
10 ump45 UMP-45
11 p90 P90
12 bizon PP-Bizon
13 -
14 galilar, famas Galil AR / FAMAS Rifle
15 ak47, m4a1, m4a1_silencer AK-47 / M4A4 / M4A1-S
16 ssg08 SSG-08
17 sg556, aug SG-553 / AUG
18 awp AWP
19 g3sg1, scar20 G3SG1 / Scar-20
20 nova Nova Heavy
21 xm1014 XM1014
22 mag7 Sawed-Off / MAG-7
23 m249 M249
24 negev Negev
25 Riot Shield (only in CS:GO/CS2 Casual Hostage Rescue)
26 molotov, incgrenade Molotov Grenade
27 decoy Decoy Grenade
28 flashbang Flashbang
29 hegrenade High Explosive Grenade
30 smokegrenade Smoke Grenade
31 -
32 vest Kevlar Vest Equipment
33 vesthelm Kevlar + Helmet
34 taser Zeus x27
35 defuser Defuse Kit / Rescue Kit
36 -
37 -
PlacementTip.pngExample:"buy awp" or "buy 1 18" tries to buy an AWP.
Note.pngNote:Everything has a string alias except for the Riot Shield. Use "buy 1 25" to buy it via command.
Obsolete-notext.pngDeprecated:Can't buy heavyarmor anymore, independent of mp_weapons_allow_heavyassaultsuit,
even though heavyarmor is still listed when invoking buy with invalid or no arguments.
Tip.pngTip:To prevent weapons from being purchased, see mp_buy_allow_guns, mp_items_prohibited etc.

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. Counter-Strike: Global Offensive See 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 (Counter-Strike: Global Offensive Molotov, IncGrenade, Decoy, Taser). Counter-Strike: Global Offensive See csgo/rebuy.txt.
buymenu ConCommand Opens or closes the buy menu.
Counter-Strike: Global Offensive In CS:GO/CS2 Retakes Retakes, shows or hides the loadout cards in the freezetime or during warmup.
mp_buytime Counter-Strike: Source 1.5 Counter-Strike: Global Offensive 90 The time in Counter-Strike: Source minutes / Counter-Strike: Global Offensive seconds from the start of the round that players are still allowed to buy.
Counter-Strike: Global Offensive mp_buy_anywhere 0 Determines which teams are allowed to buy anywhere in the map and not just in func_buyzones.
  • 1: Both
  • 2: Ts only
  • 3: CTs only
  • else: None
Counter-Strike: Global Offensive sv_buy_status_override -1 Overrides which teams are allowed to buy at all. Changing this value takes effect in the next round.