Garry's Mod

Garry's Mod

Sandbox Weapon Shop and Money System
190 条留言
Famous5000  [作者] 9 月 22 日 下午 11:20 
@Gamer72
You need to provide an error message or else I cannot help you. It's probably Steam being a dipshit and not downloading the addon correctly for you, in which case, clearing your download cache can help solve it.
Gamer72 9 月 22 日 上午 4:42 
why its don't work in multiplayer?
Famous5000  [作者] 9 月 6 日 下午 3:48 
also, try unsubbing from their addon and re-subbing to it after validating contents. It may help with the issues you discussed.
Famous5000  [作者] 9 月 6 日 下午 3:47 
A. I'd advise against doing that because players can just spawn the props normally, *and* because the mod doesn't really support entities.
B. I'll add it as a suggestion that the mod should have a "drop" command.
Danifox17 9 月 6 日 下午 3:42 
Additionally, I was planning to use the weapon drop feature so the weapons could be used as scrap in the mod 'Sandbox Crafting System'.
Danifox17 9 月 6 日 下午 3:36 
I messed with the options related to vmanip in the mod's settings, but nothing happened (I didn't really think it would help anyway). I'm not sure if it would be worth suggesting a built-in weapon drop option for this mod, as it would be a good complement for "role-play." However, I don't know if anyone else is having this issue.
Famous5000  [作者] 9 月 6 日 下午 2:34 
That's weird... It shouldn't be interacting with this addon in any way...

I'll add it as a tentative bug report but unfortunately without log output there's not a whole lot I can do.
Danifox17 9 月 6 日 下午 2:32 
I'm having a problem where the mod I use to drop weapons stops working if this mod or the original are active. No error message pops up; it just stops activating. Neither the bound key nor typing the command directly into the console works. I use the drop weapons mod to give guns to friends or NPCs.

This is the mod I'm talking about: https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=3259332947
Famous5000  [作者] 9 月 3 日 下午 2:48 
@molten

That is an idea I am curious if I can implement properly. It probably won't be images though, it'll likely be a model w/ textures (leave it blank to use default).

I'll add it to the Github.
molten 9 月 3 日 上午 9:06 
Awesome add-on. Absolutely great work. One question though, entities added to the shop have missing models/images. So they all appear as a huge error. Any way we can add our own images to these entities? Thanks.
RoShamBo 8 月 25 日 上午 3:31 
Thank you!
Famous5000  [作者] 8 月 25 日 上午 2:59 
@RoShamBo
Should be possible inside of the configuration menu, right-click the weapon and hit delete. Not entirely certain on categories, but if it isn't automatically deleted on last weapon going missing, pretty sure it's the same deal. Don't remember if it happens automatically or not.
RoShamBo 8 月 25 日 上午 2:57 
Any way to remove weapons or weapon categories?
Famous5000  [作者] 8 月 23 日 下午 5:25 
@Nukl3ar
Steam problem. Delete the mod locally, validate files, and then relaunch the game.
Nukl3ar 8 月 23 日 下午 5:23 
When I go to options there is nothing under WeShop Admin or Client. It used to work before though.
Famous5000  [作者] 8 月 16 日 上午 2:31 
@The Bird 6053

The armor/health systems depend on what your *max health* is set to via the gamemode or other means. Though in every single addon I've seen with armor stuff, the max has been 255. Take that with a grain of salt though.

If you want an addon which can adjust your max health, consider ULX.
The Bird 6053 8 月 15 日 下午 3:06 
Is there a way to make the HP/Armor in the shop be uncapped? (so you can buy more even if you have over 100 HP/Armor) If not then that'll probably be a cool thing to add as an option.
Famous5000  [作者] 8 月 14 日 上午 4:56 
@hl267
The ammo limiter is set to what you set the max ammo you can purchase.

And yes that is a planned feature but with me not doing programming for a while you'll need to either apply a pull request to implement it yourself or wait for someone else to do it, or for me to return to programming work.
hl267 8 月 14 日 上午 2:03 
It looks like the ammo maximum capacity was limited to the half life 2. Is there anyway we can disable it?
Famous5000  [作者] 8 月 9 日 下午 6:26 
And yes it does say the addon *will not work* in Sandbox. It won't, but the entities it provides will still be spawnable. Which is enough for the printers I provided.
Famous5000  [作者] 8 月 9 日 下午 6:26 
@Anny the Nerd Vaporeon

Try this for the entities that the printers require: https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=874053982&searchtext=printer

Spawn the stamps, the individual printer upgrades, and the tray. The paper entity is *not* used.
Anny the Fox 8 月 9 日 下午 12:49 
Well, I tried everything but I can't get the printer to recognize the paper or the water.

I made custom entities, it didn't work, I tried using just props, it didn't work either.

I don't know what to do and I'll probably just give up on the idea and go back to just messing around with the standard sandbox with NPC battles.
Anny the Fox 8 月 9 日 上午 11:39 
@Famous5000

Do I need to create the entities or nah just use some props? bc i don't understand LITERALLY ANYTHING.
Famous5000  [作者] 8 月 9 日 上午 2:29 
@Anny the Nerd Vaporen

You'd need to find where GMOD Blueprints stores its file and then put the files you downloaded into that folder.

@infernal

No, nor is it planned.
gmodlover911 8 月 8 日 下午 12:14 
compat with nmoney?
Anny the Fox 8 月 8 日 上午 11:49 
I still don't understand how to import or modify them. When I download the files, they only contain random letters in no particular order.
Anny the Fox 8 月 8 日 上午 7:35 
@Famous5000

Thank you very much, that will be very helpful. Just one question, I have never imported anything before, so I don't know how to do it.
Famous5000  [作者] 8 月 7 日 下午 5:41 
@Anny the Nerd Vaporeon

Grab GMOD Blueprint, then look in here for a couple of examples of money printers I've set up.

First one prints money packets over 4 kills, second one is over time as long as you feed it the entities it requires. You can edit them yourself once you download them and import them.

https://drive.google.com/drive/folders/12f4RBSw7EwpZPNOwZ1zYlYl0Lh1w6leI?usp=drive_link
Anny the Fox 8 月 7 日 下午 12:22 
I was wondering if there is a mod or if it is possible to create a mod that does the same thing as a “money printer” or “money generator.” (Sorry if this is a bit silly or stupid, but I can't find any mods that recreate the money mechanics of darkRP.)

(I was trying to make a darkRP server, but it kept crashing or corrupting the mod, so I had to use this add-on in the sandbox that I had been using for a long time on my sandbox server.)
meierhans 8 月 2 日 上午 6:10 
Thanks! I will post bugs and suggestions directly on Github from now on, until further notice.
If you want to see you addon in full action, you can always visit Gibhaus Lambda Campaign server. Tuned prices and rewards quite a bit until mechanics felt right. Now you have to grind for a while until you can afford one of the better weapons. And dying costs 33%, so it really hurts. Scales so much better for different player counts than regular HL2. Would not be possible without this addon!
Famous5000  [作者] 7 月 31 日 上午 2:45 
Sorry, not trello, Github.
Famous5000  [作者] 7 月 31 日 上午 2:45 
@meierhans
I'll add those suggestions to the trello for the future.
meierhans 7 月 30 日 上午 4:53 
@Famous5000 Oh shit, sorry for annoying you! Possible I red this before you added it?

I tried to contact the dev of smooth pickup, sadly he has comments disabled on his addon. Maybe you could just make the money nocollide with player?

And, one more request: On my modded HL2 Coop server, I would like to limited to amount of weapons per slot. But HL2 itself uses two weapons per slot. Could you make a convar, that allows the maximum weapons per slot?
NexTnTMa5ter 7 月 28 日 下午 2:36 
if anyone wonding how to hotkey the shop is ( bind x wblbuy )
Famous5000  [作者] 7 月 27 日 下午 2:08 
I can't believe I need to state this but read the top freaking section of this addon's description .
Famous5000  [作者] 7 月 27 日 上午 12:23 
@meierhans
If you look at the pinned issue on the Github, NPCs are a very mixed bag with spawning, it is a known issue, and it is not planned to be worked on at the moment by me. If it works, great, if it doesn't work, not officially supported by the addon, unfortunately.

There is a way to bypass this by making your own scripted entity [SENT] and having the thing spawn that instead. This way that SENT can then create the respective NPC with the correct weapons and that will make it functional. GMOD Blueprints is a great example for this. I've already linked it before so it shouldn't be hard to find, but, unfortunately that is not something I will be supporting for now.
meierhans 7 月 27 日 上午 12:20 
Ah, before I forget, something else. I use the Smooth Pickup addon that recently came up. Money will not work for this, in contrast it will even have physics, trying to pick up a larger amount will result in jittery shake for player. Better to ask Smooth Pickup dev for this?
meierhans 7 月 27 日 上午 12:18 
I run your addon on my coop server, it is a great help to balance out single player campaign maps for multiple player. No more people coming first eating up all the goodies, you kill, you buy.

I recently started to add NPCs to my shop, which you can either make follow you by pressing E on them, or just use buddy mod to fully command them. Sadly I noticed that most of them will not spawn with their default weapon. Actually most spawn without any weapon at all. Could this be fixed without to much effort? Willing to switch to beta if needed.

If you want to take a look, you find the server under "Half Life 2 Campaign" gamemode, it is called Gibhaus Lambda.

best!
NexTnTMa5ter 7 月 26 日 下午 1:22 
it will not give me money on kills i messed round in the setting and its not fixing it
MERIDIA FLAGOVICH 7 月 21 日 下午 1:41 
It uses props. That's why I like it.
Famous5000  [作者] 7 月 21 日 下午 1:02 
That is indeed correct.

Also I wasn't aware of that crafting system. Yeah I was aware of `WeShop` because I took over it but I wasn't aware of the crafting system.

I'd make sure that the system you linked supports using entities instead of props for ingredients.
MERIDIA FLAGOVICH 7 月 20 日 下午 10:17 
I'll look into that blueprint thing sometime. You're saying I can use it to create entities out of props, and I'd be able to spawn those entities from this mod's shop feature? If that's true that would be really useful.
MERIDIA FLAGOVICH 7 月 20 日 下午 10:10 
Apologies, I assumed you had worked on this mod because you and its author have worked together on others.
https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=3516448778
Famous5000  [作者] 7 月 20 日 下午 10:08 
Huh? Crafting system? I don't think I ever created a crafting system. You might be thinking of JMOD...

And if you do decide you want to go that route, I strongly suggest you try out GMOD Blueprints as from there you can actually set up custom entity names, and even hide them from the spawn menu/make them admin only so players can't spawn them in, as well as coding custom behavior for it. Link for that is here: https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=1986113409&searchtext=Blueprint
MERIDIA FLAGOVICH 7 月 20 日 下午 10:05 
To be used in conjunction with your crafting system. I wanted to make a certain prop which is marked as a crafting material to be buyable from the store while it is restricted from the spawnmenu so that it is only available through exchanging WeMoney, meaning the player would need to kill an NPC or complete a crafting recipe that produces WeMoney in order to acquire that particular crafting material.
Famous5000  [作者] 7 月 20 日 下午 10:02 
*Props are NOT entities.*

Their class name is prop_physics, and require their model to be set. I don't think coding in prop spawning is going to be a wise idea, since players can already do that via the spawnmenu, unless you set up other systems to prevent that.
MERIDIA FLAGOVICH 7 月 20 日 下午 3:38 
I want to make certain props from the spawnmenu buyable in the store, is there a way to do that? I tried adding them as entities but when I buy them they don't appear.
H E I S E N B U R G 7 月 20 日 下午 2:27 
Sounds great take your time
Famous5000  [作者] 7 月 20 日 上午 11:41 
OK, I'll add that as a suggestion for this via the Github, I may not get to it soon though.
H E I S E N B U R G 7 月 19 日 下午 11:41 
yes I feel that would make a nice addition to the mod