Garry's Mod

Garry's Mod

52 ratings
[TTT/2] Shark Trap
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Weapon
Addon Tags: Cartoon, Comic, Fun
File Size
Posted
Updated
955.823 KB
18 Jul, 2021 @ 9:27am
18 Mar @ 7:03am
6 Change Notes ( view )

Subscribe to download
[TTT/2] Shark Trap

In 1 collection by TheBonBon
Legion of Salt TTT Server
214 items
Description
A Traitor weapon for TTT/2.
It deploys a trap that spawns a deadly shark.

You can survive the trap if you break it or if you have armor (100 dmg)




Check out my other addons:

ttt_strange_night
ttt_pietsmiet
ttt_minecraft_mannhattan
ttt_headroom
ttt_home_remastered_2024
ttt_home
ttt_doloris
ttt_hypa

24 Comments
Psychotrickser 11 May @ 5:05am 
Ah nevermind. Confused it with something else. Thank you for this great weapon! :D
TheBonBon  [author] 11 May @ 5:02am 
@Psychotrickser Attacker Info was fixed recently
Psychotrickser 11 May @ 4:55am 
Please make it so that the traitor who placed the trap gets the kill
Malivil 18 Mar @ 7:42am 
Amazing! Thank you
TheBonBon  [author] 18 Mar @ 7:05am 
@Malivil been a while but attacker + the rare error are fixed
Malivil 27 May, 2023 @ 5:56pm 
Hi =)

I noticed that the shark trap wasn't crediting the person who put it down with the kill. I was looking at the code for the shark trap entity and saw that it's actually setting the attacker of the damage taken to be the person who touched the entity (the victim). Shouldn't the attacker be the person who placed it? (and/or the person who was holding it in a magneto stick when it was triggered?)
Malivil 11 Feb, 2023 @ 9:40am 
Hello again. encountered another rare error in my server logs:

[[TTT/2] Shark Trap] lua/entities/ttt_shark_trap/init.lua:29: Tried to use a NULL entity!
1. SetLocalVelocity - [C]:-1
2. unknown - lua/entities/ttt_shark_trap/init.lua:29

Timer Failed! [Simple][@lua/entities/ttt_shark_trap/init.lua (line 29)]
Malivil 5 Nov, 2022 @ 11:31am 
Great, thanks!
TheBonBon  [author] 5 Nov, 2022 @ 8:42am 
@Malivil should be fixed now. Thanks for the info :)
Malivil 5 Nov, 2022 @ 5:21am 
Hello =)

Looks like if a non-player gets caught in the trap (somehow) it throws a bunch of errors like this:

[[TTT/2] Shark Trap] lua/entities/ttt_shark_trap/init.lua:15: attempt to call method 'Freeze' (a nil value)
1. unknown - lua/entities/ttt_shark_trap/init.lua:15