Garry's Mod

Garry's Mod

Not enough ratings
Grenade Trajectories
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Effects
Addon Tags: Fun
File Size
Posted
Updated
5.267 KB
16 Aug, 2022 @ 12:50pm
28 Aug, 2022 @ 12:04pm
4 Change Notes ( view )

Subscribe to download
Grenade Trajectories

Description
This adds a toggle-able trajectory path to all grenades that use "weapon_tttbasegrenade" as a base class.

It is an adaption of the open source code at https://github.com/colemclaren/ttt/blob/master/addons/moat_addons/lua/weapons/weapon_tttbasegrenade.lua#L293-L353 but does not require editing ever grenade file to include it.

To add a new grenade base class to apply the trajectory to just add it to the grenade_list table in the autorun.lua or contact me and I can add support for that grenade into the public release.



Currently this if for TTT.
To toggle the trajectory view on and off, go into the F1 menu then click the settings tab and scroll to the bottom where a check box will be to enable and disable it.

If you want to use if somewhere else, contact me and I may be able to get the setting toggle in a good location. Currently you can use the !grenade command to toggle the graphics if your not using TTT.
2 Comments
Atacis 29 Jul, 2023 @ 9:20pm 
Good riddance, moat,gg
Rosie 19 Jun, 2023 @ 11:27am 
I wish that this was a thing for all weapons