Features
The ability to interact with number keys
Checks statements such as whether the player is in the buy zone, has enough money or whether already carries the specific item; or if the buy time has passed or buying is not allowed on the map ( info_nobuying)
Drops the old item if the player replaces it with a new one
Each team may have different buy menus, along with different prices of certain items
Entirely customizable menu, it is even possible to create submenus under a submenu
Optional light mode. Once activated, the side panel, item image and descriptions are no longer displayed, in aim to decrease lag
Caveats
Bots cannot buy items. This can actually be avoided if you get rid of the line
parse("mp_buymenu -")from the script. Though it would cause weird glitches when trying to open the menu and bots will buy the items with default prices instead of the prices specified in the script.
The items other than weapons that have more than 1 ammo capacity do not work properly. For example, you get 2 flashbangs instead of 1 when bought. And if you already have, let's say, 1 flashbang, the script will not allow you to buy more flashbangs at all as it sees it you already carry the item. In this case, to buy flashbangs, you have to not carry a flashbang. The same goes for Satchel Charge, Snowball, etc.
drop is not triggered when the player replaces an old weapon with a new one. (See feature #3).
Installation & Launching
Extract the files into your CS2D folder
Dofile / run "sys/lua/circular-buy-menu.lua"
Special thanks to Mora for his sprite used in this script and to EngiN33R for his help at geometry.
My own customized buy menu: Video
This is, after all, a fun concept, thus I do not recommend this to the players who play in the competitive scene since it still lacks some of the features and may lag as it is server-sided.
Thanks!
edited 31×, last 12.05.20 05:29:40 pm
Approved by Sparty
Download
29 kb, 757 Downloads