English Circular Buy Menu Script icon

10 comments
30.01.20 06:50:38 pm
like 6 like it!
29 kb, 29 Downloads
Masea
Super User
Offline Off
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 (cs2d entity 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.
• cs2d lua hook drop is not triggered when the player replaces an old weapon with a new one. (See feature #3).

off-topic Installation & Launching
• Extract the files into your CS2D folder
• Dofile / run "sys/lua/circular-buy-menu.lua"

For Developers >

Special thanks to user Mora_rus for his sprite used in this script and to user EngiN33R for his help at geometry.

My own customized buy menu: Video

This is, before 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.

Updates >

Thanks!
imageimageimageimage
edited 28×, last 20.02.20 02:13:48 pm
ok This file has been reviewed and approved by Sparty (31.01.20 04:29:12 am)

Comments

10 comments
Goto Page
To the start Previous 1 Next To the start

Log in!

You need to log in to be able to write comments!Log in
06.02.20 10:33:24 pm
Up
Masea
Super User
Offline Off
@user Mora_rus: 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 before all.
06.02.20 04:38:54 pm
like I like it!
Up
Mora_rus
User
Offline Off
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.
edited 1×, last 06.02.20 06:02:16 pm
04.02.20 10:57:19 pm
like I like it!
Up
Elfing
User
Offline Off
This is really nice. Surprised it wasn't done before.
edited 1×, last 04.02.20 11:08:32 pm
04.02.20 09:39:51 pm
like I like it!
Up
Oops321
User
Offline Off
nise job
04.02.20 05:07:43 pm
like I like it!
Up
haha1955
User
Offline Off
its a good idea, i like it and its usefull^^
edited 1×, last 04.02.20 06:16:50 pm
01.02.20 04:18:33 pm
Up
Masea
Super User
Offline Off
@user The kennyS: Please edit your comment and include the things that you think are missing. Thanks.
01.02.20 04:04:29 pm
like I like it!
Up
The kennyS
User
Offline Off
Many things are missing.
30.01.20 07:41:39 pm
like I like it!
Up
Mora_rus
User
Offline Off
Imagine yourself you having two flashbangs, it would strip your two flashes and buy new two.
30.01.20 07:38:03 pm
Up
mrc
User
Offline Off
What if when you buy a flashbang it strips all flashbangs you have before equipping the purchased ones? Default value for it can be $400 as default since it will equip 2 everytime, even if u already have one.
30.01.20 07:36:00 pm
like I like it!
Up
LiME1516
User
Offline Off
Omg. This is Awesome really.
To the start Previous 1 Next To the start