Garry's Mod

Garry's Mod

Blaster Royale: Rewrite
Orange Fanta Soda 2023 年 4 月 30 日 下午 4:54
Custom Weaponsets
Hey there, I was wondering if there's a way to use addon weapons as a weaponset, since after usin the brr_getweaponsets command I noticed a string that says "[base]" next to the main four. If anyone can tell me how to do this please do so. :resmile:
< >
正在显示第 1 - 4 条,共 4 条留言
Blasstah  [开发者] 2023 年 6 月 27 日 上午 7:18 
Sorry for that long response time, I somehow didnt got a notification about this discussion, and switched to game development long time ago.

It sadly cannot be added from the gamemode itself. It requires some Lua knowledge, the easier way to do this is by modifying the config.lua file in the gamemode files. There is a variable called BRR.CONFIG.WEAPON_SETS, you just need to copy an existing one and change the weapons to your liking.

You also need to "register" them later in the BRR.CONFIG.WEAPON_CLASSIFICATION variable on the bottom of the file so the gamemode would know how to treat them.
The same goes for additions, but in BRR.CONFIG.ADDON_CLASSIFICATION.

There is also a way you can do this in totally separate addon, while adding them in the "BRR_Initialize" hook in file located in startup, but it's more limited.
最后由 Blasstah 编辑于; 2023 年 6 月 27 日 上午 7:34
Orange Fanta Soda 2023 年 6 月 27 日 上午 8:26 
well is it okay if I decompile this gamemode and continue development on it, i really liked this gamemode and it's sad to see it go
Blasstah  [开发者] 2023 年 6 月 27 日 下午 4:09 
Sure, give it a go. I'll be happy to hear what you've done with the gamemode, so let me know if you've managed to add something fun. But beware of the code, it is really old and may be painful to read and understand. This version will stay on the workshop as the "original" one, so anyone could go back and play it here, I'll be providing bug fixes only for this version If someone happen to find one. I also planned porting it to s&box, when it releases, so that's when I probably go back developing it on a new engine.
Orange Fanta Soda 2023 年 6 月 27 日 下午 4:11 
Is there a download link or do i have to decompile it myself?
< >
正在显示第 1 - 4 条,共 4 条留言
每页显示数: 1530 50