Garry's Mod

Garry's Mod

Not enough ratings
[TTT2] Loot Goblin [ROLE]
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: ServerContent
Addon Tags: Fun, Roleplay
File Size
Posted
Updated
2.891 MB
6 Jan, 2022 @ 9:52am
12 Mar @ 8:36am
40 Change Notes ( view )

Subscribe to download
[TTT2] Loot Goblin [ROLE]

In 2 collections by Tweek, The Goblin
SipcoGamingGuild TTT Collection
246 items
SipcoGame's TTT2 Items and Role's
21 items
Description
The Loot Goblin is a treasure trove of items that everyone wants to kill. But the goblin just wants to live peacefully with it's loot!

Requires TTT2 in order to use this role. A list of all currently available roles can be found HERE.

Join my Discord: https://discord.gg/PpCafA7wqZ
TTT2 Discord: https://discord.gg/Npcbb4W
Source Code: https://github.com/sipcogames/ttt2-role_lootgoblin



The Loot Goblin is a neutral role in the Jester Slot. They are smaller, and faster than everyone else; but cannot deal damage. The Loot Goblin wins if anyone wins the game, and they lose if they die.

When a Loot Goblin exists in the round everyone will hear a goblin laugh and will be alerted to "Kill the Goblin for it's Loot!". If you manage to kill the goblin the game annouces your victory and the Loot Goblin Drops random traitor items for everyone to enjoy. (Except the now dead goblin).



Normal Convars Generated by TTT2
# enable or disable this role ttt_lootgoblin_enabled [0/1] (default: 1) # the percentage of players that are spawned as this role ttt_lootgoblin_pct [0.0..1.0] (default 0.15) # the limit of players that spawn as this role each round, this overwrites the percentage ttt_lootgoblin_max [0.0..n] (default: 1) # the probability each round of this role being spawned at all ttt_lootgoblin_random [0..100] (default: 33) # the amount of players needed for this role to spawn ttt_lootgoblin_min_players: [0..n] (default: 6)

NAdditional Convars in ULX & F1 Menu
# adjust loot goblin max and starting HP ttt2_lootgoblin_health [0.0...n] (default: 50) # whether you want the game to announce the loot goblin / play the goblin laugh ttt2_lootgoblin_announce [0/1] (default: 1) # how many random traitor weapons to drop if killed ttt2_lootgoblin_lootnum [0...10] (default: 3) # if can deal damage, then what scale of damage? (0 default for no damage) ttt2_lootgoblin_damagescale [0...1] (default: 0.0)




This role is very fun on a server, but keep in mind the loot goblin rarely lives the whole round, it's just too fun to hunt them down. XD
11 Comments
Tweek, The Goblin  [author] 12 Mar @ 3:12pm 
np XD It was actually a helpful fellow on discord that caught the bug and posted a fix for me. I credited them in the change notes :)
MadBeemo 12 Mar @ 3:09pm 
Thank you for the fast fix! Now it's bug free! :lunar2019piginablanket:
MadBeemo 10 Mar @ 12:35pm 
I love the idea of this role! Sadly its bugged for us atm :/ the rounds wont end, even if everybody is dead. with or without the lootgoblin. after disableing the addon it works again.
Toad 25 Jun, 2023 @ 6:48am 
My friends and I have been using this role because it's fun and goofy, but sometimes people hate getting it because it feels like they don't get to play the game. (They also get killed super fast almost everytime even though i put the loot goblins health at 100). For people who want to use this role, i would recommend adding a buy menu to the loot goblins kit. I have hundreds of shop items in my server and so i just gave the loot golbin a range of utility options like speed or teleportation or goofy stuff like tasers and bruh bunkers and now people love to actually play as the loot goblin whilst everyone else loves playing against it!
Tweek, The Goblin  [author] 14 May, 2022 @ 8:10am 
@Tomzen That's actually amazing, but I'll look into fixing it. I'll prob just have to remove the ability to use that weapon.
Tomzen 14 May, 2022 @ 6:32am 
Also a bug if you're using the prop disguiser . If you're a loot goblin and you prop disguise and undisguise it will play the announce sound and reduced the model size again and you can do this as many times as you want.
Tweek, The Goblin  [author] 7 Jan, 2022 @ 12:19pm 
Update:
I've fixed / tested the following as working on multiple servers after this update.

1) Goblin height reduces correctly (if this is not happening for you see if it's a custom model or other plugin affecting it)

2) Speed bonus (run and walk) now properly reset on round end (win or loss) and death. (I cannot say if it will reset if a game is interrupted by something outside of normal gameplay)

3) No Team and Team Goblin are now separate to avoid the text replacement issue.

4) Working on the win condition, but atm they join the winning team to get win points, but retain their "Team Loot Goblin" tag. I'm looking into if I can add an "And Team Loot Goblin" to the victory screen.

5) Working on adding a centre text popup on round start. The goblin sound effect also seems to be on client side only currently and I'd like to make it global when a goblin spawns so everyone hears it.
Tweek, The Goblin  [author] 7 Jan, 2022 @ 11:36am 
All good advice. I'm surprised about the model height and hitbox though, as well as the speed. I'll try and fix those, but they were working during testing so I might need to try something else to replicate those issues. Were you using a custom PM during those games?
Cpt.Haxray 6 Jan, 2022 @ 8:03pm 
5. The announcement being in the top left is easily missable considering how important knowing there is a Loot Goblin active in the round is. I would consider moving it to text in the center of the screen similar to how the Hidden role does it when the Hidden transforms. This is much more noticeable.
Cpt.Haxray 6 Jan, 2022 @ 8:02pm 
4. While not strictly a functionality issue, the fact the Loot Goblin team doesn't actually win at the end of the round, and simply swaps to whatever team wins, is incredibly unsatisfying for the Loot Goblin player. They go through the difficult task of surviving and having the round end while they're alive, and they don't even get to see "Loot Goblin wins", instead seeing "Innocent win". Even if they get listed among the winning team and get winning points, this isn't nearly as fun or satisfying as being properly told "You Win!".