func_buyzone
Jump to navigation
Jump to search
Code classes:
CBuyZone
CBaseTrigger
(triggers)CBaseToggle
CBaseEntity
(all ents)
func_buyzone
is a brush entity present in both Counter-Strike games. Players must be touching this volume to buy weapons and equipment.
Keyvalues[edit | edit source]
- Team Number
(TeamNum)
<choices>
- Which team the buyzone is for. Tip: In all-team buyzones can be made by simply making two entities.
Inputs[edit | edit source]
- SetTeam
<int>
- Sets the buyzone's team. Note: In players with the buy menu open will not get closed out when it changes teams, but they still can't buy anything.
- SetTeam_TerroristOnly (only available in )
- Set the buyzone's team to Ts.
- SetTeam_CTOnly (only available in )
- Set the buyzone's team to CTs.
- SetTeam_AllTeams (only available in )
- Set the buyzone's team to both.
- SetTeam_None (only available in )
- Set the buyzone's team to neither (essentially disables the entity, aside from its base trigger functions).
SetEnabled(only available in )- Does not exist in code.
SetDisabled(only available in )- Does not exist in code.