Garry's Mod

Garry's Mod

26 ratings
ttt_potOfGreed
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Weapon
File Size
Posted
Updated
269.448 KB
7 Mar, 2020 @ 8:15am
10 Apr, 2020 @ 5:37am
5 Change Notes ( view )

Subscribe to download
ttt_potOfGreed

Description
Pot of greed is a weapon mod for Garry's mod's Trouble in Terrorist Town 2. It doesn't work with the original TTT gamemode as of now.

Github: can't link, my full name is apparently very insulting for steam. Ask me in DM or find it on github under the name of ttt_potOfGreed, made by some guy named Nicolas Lutz, all attached.

What does pot of greed even do?
Much like its Yu-Gi-Oh! counterpart, this item gives you two random items from the shop of your role.
Game design-wise, this item should be used when a shop contains a lot of different items modded in, as more often than not, some shop items go unused. The user will be able to enjoy an increased number of items in exchange for control over which items they want to buy.

ConVar options
  • ttt_potOfGreed_nbItemsToGive allows you to change the number of shop items given by the pot of greed (default is 2).

  • ttt_potOfGreed_conflictPolicy determines what to do when an item received takes the same slot as an item already in the buyer's inventory (default is 2).
    • 0 - do nothing. The new item is lost.
    • 1 - override the current item. The user may still lose items if several items taking the same slot are obtained.
    • 2 - override the current item, and prevent next given items from overriding this new item (e.g. you won't get a slot 4 grenade after another slot 4 grenade, but you might get two slot 7 items).
    • 3 - avoid needing to override the current item by preventing the pot from giving the same kind of item (e.g. you won't get a slot 4 grenade if you already have one when buying the pot. Not recommended, necessary on rare occasions).
    The conflict policy only concerns items taking standard slots (<6), otherwise it acts as if it was set to 0. The best is to make the pot the first item you buy if you want to use it!

Known issues

How to install
Subscribe to the collection, or download and extract the project from github in your addons folder. In any case, make sure TTT2 is installed as well.
Popular Discussions View All (1)
2
14 Jul, 2020 @ 10:54am
% draw?
Arc Asterisk (Ion)
13 Comments
TheSealWithSalt 16 Jun @ 3:14am 
Wish the Item would work, as of now it drops nothing, we have a limited shop for variety, idk if it clashes with that perhaps, any idea ?
Sirius 29 Mar @ 11:38am 
Everyday im crying at the club over how this is broken.
mexikoedi 25 Feb @ 2:16pm 
It creates an error on the newest version of TTT2 (0.13.0b) and seems to not work correctly:
Here the error:
[ttt_potOfGreed] lua/weapons/weapon_ttt_potofgreed.lua:157: attempt to call global 'EquipmentIsBuyable' (a nil value)
1. func_update - lua/weapons/weapon_ttt_potofgreed.lua:157
2. UpdateEquipmentTable - lua/weapons/weapon_ttt_potofgreed.lua:113
3. WasBought - lua/weapons/weapon_ttt_potofgreed.lua:156
4. callback - gamemodes/terrortown/gamemode/shared/sh_shop.lua:310
5. GiveEquipmentWeapon - gamemodes/terrortown/gamemode/server/sv_player_ext.lua:474
6. BuyEquipment - gamemodes/terrortown/gamemode/shared/sh_shop.lua:307
7. func - gamemodes/terrortown/gamemode/server/sv_shop.lua:95
8. unknown - lua/includes/extensions/net.lua:38
wizard ducklett 1 Jul, 2022 @ 8:12pm 
but what does it do
Lutzi 🐸  [author] 10 Sep, 2021 @ 1:02pm 
No chance but I don't remember why I couldn't
The Pie Man 1 Sep, 2021 @ 9:25am 
Any chance this will be ported to original TTT?
Dac64 11 Sep, 2020 @ 11:54am 
WHAT DOES POT OF GREED DO!?
QU1CK5C0P3RM4N9000_YT 15 Mar, 2020 @ 11:43pm 
bUt wHaT dOeS pOt-Of-GrEeD dO!!??/??/?!!!111!!
Pedrones7777 9 Mar, 2020 @ 8:40am 
tell me, what does it do?
not_ryuka 8 Mar, 2020 @ 9:51am 
what does it even do?