Circular Buy Menu Script 
14 comments This is the circular (or radial) buy menu that we are familiar from CS:GO. It can be entirely and specifically customized for both teams and has as many features possible as default buy menu does (along with some caveats).
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
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!










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.





Special thanks to


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

Comments
14 comments



Log in!
You need to log in to be able to write comments!Log in

Love at first sight! I have never been juicy this faster. It's an immense, great, masterpiece.
edited 1×, last 11.06.20 08:00:08 am
10.06.20 02:15:46 am

if they encoded something like that for the client, I could use more transition animations, it would look prettier and there would be no lag.
@
Mora: I am planning to add the auto-buy feature, yes. But not quite sure when. I first need to learn what exactly it buys for you and under what circumstances. But I am not wholly sure if it should include Flare and Smoke Grenade since they are some sort of optional items in my opinion. I also highly disagree that the auto-buy feature should check FoW to decide to buy things accordingly.
As I said, I should initially grasp the fact that how it appears to be in original CS and then disclude the things I possibly dislike and include the things that would be reasonable enough. Perhaps I'd just keep it the same way it is in the original game which makes more sense after all.

As I said, I should initially grasp the fact that how it appears to be in original CS and then disclude the things I possibly dislike and include the things that would be reasonable enough. Perhaps I'd just keep it the same way it is in the original game which makes more sense after all.
edited 1×, last 07.11.21 10:15:56 am

Feature to do autobuy for those who's not experienced to do it by themselves.
The idea is to add two buy-modes, if there is a fow currently on the map: it would buy flare and smoke grenade too, if there's no fow, the items above wont be bought(kinda dynamic thing). Or dont buy'em but just he/flashesh. The priority might be better than currently is it during to the price and your money. Instead of buying ak you can buy mp5(auto), otherwise only grenades/ammo.
The idea is to add two buy-modes, if there is a fow currently on the map: it would buy flare and smoke grenade too, if there's no fow, the items above wont be bought(kinda dynamic thing). Or dont buy'em but just he/flashesh. The priority might be better than currently is it during to the price and your money. Instead of buying ak you can buy mp5(auto), otherwise only grenades/ammo.
edited 1×, last 06.02.20 06:02:16 pm

This is really nice. Surprised it wasn't done before.
edited 1×, last 04.02.20 11:08:32 pm
@
The Dark Shadow: Please edit your comment and include the things that you think are missing. Thanks.


Imagine yourself you having two flashbangs, it would strip your two flashes and buy new two.



