Garry's Mod

Garry's Mod

Not enough ratings
[TTT] Lift Grenade
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Weapon
Addon Tags: Cartoon, Comic, Fun
File Size
Posted
Updated
12.992 KB
6 Apr, 2023 @ 7:21am
18 Aug, 2023 @ 1:03pm
11 Change Notes ( view )

Subscribe to download
[TTT] Lift Grenade

In 3 collections by Corvatile
Corvatile's TTT Weapons
9 items
All of Corvatile's TTT Addons
21 items
Corvatile's TTT Randomats
6 items
Description
The Lift Grenade is a special grenade item for Trouble in Terrorist Town.
  • The Lift Grenade is part of the generic weapons pool and will appear alongside other grenades like Discombobulators and Incendiary Grenades.
  • After a 2.5 second fuse, the Lift Grenade explodes. It does not deal damage but instead disables gravity on anything in its radius and causes it to float up for 4.5 seconds.
  • After those 4.5 seconds expire, anything levitating drops back down at lethal speed.
  • Use the Lift Grenade to immobilise other players and lift them up where they're vulnerable.
  • You can also cook the grenade in your hand and detonate it to levitate yourself up onto higher ground.
  • Has c_hands support.

As seen on the Yogscast!

This addon goes well with the Improved Double Jump addon which allows players to survive a potentially fatal drop with a well-timed jump and makes it easier to exploit the Lift Grenade to get around the map.

It also pairs well with my Weapon Spawn Ratio Mod which alters the spawn rates of the various weapon types to make grenade as numerous as they were in vanilla TTT:
[TTT] Weapon Spawn Ratio Mod



Randomat Events
This addon also contains 2 custom Randomat events for the Randomat 2.0 mod (or its Custom Roles version) which are automatically added to the random events pool. You can toggle these Randomats using the ULX menu or by changing their convars manually.

These new Randomat events are:

1) Fly Casting
Everyone gets unlimited lift grenades.
ttt_randomat_flycasting 1

2) You Raise Me Up
Drops a lift grenade on players who stand near each other.
ttt_randomat_youraisemeup 1



Check out other TTT addons I've made in this collection.
6 Comments
Corvatile  [author] 18 Jun @ 1:24pm 
Thanks for the kind comment. I'll see if I can implement that as an optional convar.
[family guy burger] 17 Jun @ 5:41am 
we really love the lift, tysm for making it! is it possible to give the one throwing it the ability to cancel the lift by crouching for example? would make it way useful
Corvatile  [author] 18 Aug, 2023 @ 1:05pm 
Thanks for flagging this up, I've updated it now.
The Stig 14 Aug, 2023 @ 8:53pm 
Hey just letting you know the way you overwrote the SWEP:PullPin() function to change the throwing animation causes conflicts with other mods trying to override the same function.

You can easily fix this by overriding the function the proper way using self.Basclass:
function SWEP:PullPin()
self.BaseClass.PullPin(self)
self:SendWeaponAnim(ACT_VM_PULLBACK_HIGH)
end

What this does is just calls the original PullPin() function before making the change you want.
Corvatile  [author] 30 May, 2023 @ 12:53pm 
I've just released a patch that should fix this error.
Cpt.Haxray 2 May, 2023 @ 8:06pm 
Im getting this lua error whenever I throw the grenade.

[[TTT] Lift Grenade] gamemodes/terrortown/entities/entities/ttt_liftgren_proj.lua:81: Tried to use a NULL entity!
1. GetPhysicsObject - [C]:-1
2. unknown - gamemodes/terrortown/entities/entities/ttt_liftgren_proj.lua:81

Timer Failed! [Simple][@gamemodes/terrortown/entities/entities/ttt_liftgren_proj.lua (line 77)]


might be related to only hitting players/nothing with the explosion radius?

Additionally, its important to have a safeguard to make sure a player's gravity is set to normal if the round or map suddenly ends while this weapon's gravity is in effect. I have no idea if this is the case as i've not tested it, but a lot of addons doing similar things tend to permanently set their gravity if the map changes.