Garry's Mod

Garry's Mod

评价数不足
[TTT2] Coffee Cup Hunt [FEATURE]
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 特效
插件标签: 快乐, 写实
文件大小
发表于
更新日期
374.000 KB
2020 年 7 月 2 日 上午 7:44
2024 年 9 月 21 日 上午 9:36
7 项改动说明 ( 查看 )

订阅以下载
[TTT2] Coffee Cup Hunt [FEATURE]

在 Tim | Mineotopia 的 1 个合集中
[OFFICIAL] TTT2 Basics - World
9 件物品
描述
Coffee is delicious! No wonder that finding a cup of it improves your points in the scoreboard.

Discord: https://discord.gg/Npcbb4W
Source: https://github.com/TTT-2/ttt2-coffeecup (report issues here)

Searching for these rare coffee cups is the perfect thing to do for all these innocent terrists. It gives them something todo besides dying. Picking them up with 'E' grants the finder instantly 3 points. The spawnrate and the reward size are configurable with convars.

The idea is from this addon. However the original version only works together with pointshop and the fixed version doesn't seem to work at all. Therefore I created a new version of this that also makes use of the many TTT2 features like targetID and MStack. While creating this addon, no code from the original was reused.

You have to use TTT2 for this addon to work.


--
Credits:
Mineotopia: creator of this addon
21 条留言
Tim | Mineotopia  [作者] 2021 年 2 月 20 日 上午 11:30 
It is now 16 bit, so up to 65535
Tim | Mineotopia  [作者] 2021 年 2 月 20 日 上午 11:27 
Ah, yes, I only support values up to 255, I did not anticipate this. I'll udate it right now
Lyrel 2021 年 2 月 20 日 上午 11:25 
It works! It awards the correct amount of points but the only issue is that it displays the wrong value in the top and is usually very low. I made it give me 1000 points but it said 232 and 9999 says 15. The points system usually works with quite high values such as 500 is a very low value and 10000 is quite a bit
Tim | Mineotopia  [作者] 2021 年 2 月 19 日 上午 10:57 
@dscottwilson:
TTT2 just got updated. The coffecups should work now
Tim | Mineotopia  [作者] 2021 年 2 月 18 日 下午 11:39 
See my comment about TTT2
Lyrel 2021 年 2 月 18 日 下午 1:40 
Seems to be an issue. Whenever I try to pick up a cup, it does nothing other than spit out a Lua error on the server but it might just be what you were talking about in your previous comment:

[[TTT2] Coffee Cup Hunt [FEATURE]] lua/terrortown/events/coffeecup.lua:11: attempt to call method 'AddAffectedPlayers' (a nil value)
1. Trigger - lua/terrortown/events/coffeecup.lua:11
2. Trigger - lua/ttt2/libraries/events.lua:178
3. PickupCup - lua/terrortown/autorun/shared/sh_coffecup_handler.lua:82
4. unknown - gamemodes/terrortown/entities/entities/ent_ttt_coffeecup/shared.lua:29
Lyrel 2021 年 2 月 17 日 上午 11:14 
Thank you! I'll give it a try later today
Tim | Mineotopia  [作者] 2021 年 2 月 16 日 上午 7:49 
@dscottwilson:
I added pointshop support. I haven't tested it, please report back!
Tim | Mineotopia  [作者] 2021 年 2 月 8 日 上午 1:40 
There currently is a bug that prevents you from picking up coffeecups. This bug is on the TTT2 side and already fixed in dev. You'll have to wait for 0.8.1b
Tim | Mineotopia  [作者] 2021 年 2 月 7 日 上午 6:35 
Thanks! BUt I want to get back into TTT2 development because I haven't done much for TTT2 in the last few months