Garry's Mod

Garry's Mod

36 个评价
PropPrice - The Innovative Anti-Prop Spam Addon
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 工具
插件标签: 建筑, 写实
文件大小
发表于
更新日期
129.926 KB
2018 年 9 月 23 日 上午 4:05
2021 年 1 月 28 日 上午 12:07
8 项改动说明 ( 查看 )

订阅以下载
PropPrice - The Innovative Anti-Prop Spam Addon

描述
PropPrice - The Innovative Anti-Prop Spam Addon*

* price tag and bHUD not included



Are you a server administrator, wishing to prevent prop spam?
Are you in singleplayer, wanting to cut down on prop count and lag?
Do you believe prevention is better than cure?

For the record, I'm still busy dealing with life's problems, so this is an addon I made in just a week or two in order to continue contributing to the community. Thought it might be useful.

This addon will cause props and entities to cost money to spawn. You can find relevant options in your spawnmenu, in the Options tab.

Planned features:
- Money printers.
- More ways to gain cash.

If you have any suggestions or bug reports, feel free to leave it in the comments down below. All comments are welcome. Only spam comments will be deleted.



If you like my work, you now have the option to donate on Ko-fi[ko-fi.com] so that I can keep working for another day. Every little bit helps!
46 条留言
Piengineer12  [作者] 2021 年 12 月 5 日 上午 4:18 
@Hobo Joe
You can use my code, but under the MIT License [github.com]. As in, you can use my code for anything, so long as you include the LICENSE.txt I've linked above somewhere in your files.
Hobo Joe 2021 年 11 月 28 日 下午 9:58 
Would you mind if I used your mod in a gamemode I'm making?
I was considering just being inspired by it and making a similar system to calculate "prop price" by mass, polygon count, whatever lol.
But I realize that even if I did use that concept, that it would never be as compatible/customizable as yours. Which would negatively effect servers/players ability to customize the difficulty of the mod/internal economical resource bull shiz.
I would give absolute full credit. I would need to modify it slightly to make it compatible of course (UI and very little code likely). The gamemode in question is a spiritual successor to Market Fog.

If you are uncomfortable with this no problem! I won't bother you any further!
Piengineer12  [作者] 2021 年 7 月 12 日 上午 12:48 
Turns out I've forgotten a type cast. I've fixed it in the latest update to the UCE.
Reasonably Overworked 2021 年 7 月 12 日 上午 12:27 
Hello again! Thank you for the quick update. The changes were a big help in my server.

Here's an error I've found though while attempting to exchange from Nmoney 2 to PropPrice:

---

[DeluxeFrappe|3|STEAM_0:1:125923806] Lua Error:

[Universal Currency Exchanger] lua/entities/currency_exchanger.lua:300: attempt to compare number with string
1. UniversalCurrencyFunction - lua/entities/currency_exchanger.lua:300
2. unknown - lua/entities/currency_exchanger.lua:506



[Universal Currency Exchanger] lua/entities/currency_exchanger.lua:300: attempt to compare number with string
1. UniversalCurrencyFunction - lua/entities/currency_exchanger.lua:300
2. unknown - lua/entities/currency_exchanger.lua:506 (x52)

Transaction successful!

---

As for improvements, I think the HUD or GUI is all I could think of since all of your scripts are so unique and well-written. Can't ask for more really. Thumbs up!
Piengineer12  [作者] 2021 年 7 月 11 日 上午 2:25 
Alright, I've rolled out an update to the UCE, comment there if any improvements / bug fixes can be made.
Reasonably Overworked 2021 年 7 月 11 日 上午 12:53 
Yes I was thinking of that too, and I remember seeing the same suggestion in the comment section there. I think the people will like it.
Piengineer12  [作者] 2021 年 7 月 11 日 上午 12:52 
It's impossible unfortunately due to how I've coded the system. I can however update the old Universal Currency Exchanger addon to convert PropPrice cash to nMoney and back, is that fine?
Reasonably Overworked 2021 年 7 月 10 日 下午 7:57 
Is it possible to support Nmoney 2 addon to be used as the currency for spawning props?
Judas Priest 2021 年 2 月 5 日 上午 1:48 
I'll definitely look into it on the meantime and update you on it. Thanks for responding. :steamthumbsup:
Piengineer12  [作者] 2021 年 2 月 5 日 上午 1:36 
I can't seem to reproduce the bug - the addon doesn't allow me to spawn anything when my cash is negative.

If propprice_overdrafting is 1, players can spawn things until their cash is negative, where it'll completely prevent any type of spawning. If you can still spawn NPCs while your cash is negative, then there might be an addon conflict.