Garry's Mod

Garry's Mod

1,529 ratings
Cannon Tool!
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Weapon, Tool
Addon Tags: Fun, Roleplay, Realism
File Size
Posted
Updated
544.651 KB
20 Jan, 2013 @ 8:08am
22 Aug, 2018 @ 5:29am
47 Change Notes ( view )

Subscribe to download
Cannon Tool!

Description
NOTE: I am no longer able to support this addon due to not having enough time. As such, I will no longer be able to add new features or fix bugs caused by new versions of the game. If someone else wants to take over this mod, they are welcome to message me. Sorry guys.

A tool that allows you to create usable cannons and cannon ammo.

To use, choose the Cannons! tool from the tools list, then spawn a cannon by left clicking. You can spawn ammo by right clicking with the tool. To load the cannon, move any cannon ammo to the loading end of the cannon, which can be changed to the front or rear in the tool settings. It will load after a few seconds, and the cannon will be ready to fire. To fire the cannon, simply press the use key on it (normally bound to E).

There are 4 different types of ammo that can be loaded into the cannon; round shot, which is a solid round ball, canister shot, which acts like a shotgun load and fires many small shots, explosive shot, which explodes upon impact and does damage to anything in its radius, and incendiary shot, which explodes upon impact and sets fire to anything in its radius. Ammo can either be spawned with the tool or spawned from the entities tab in the "Cannon Ammo" section

There are 6 commands for servers that can be used with this addon;

sbox_cannons_adminonly 0-1: This sets whether the cannons are spawnable by admins only. Default 0.
sbox_maxcannons #: This sets the maximum amount of cannons that can be spawned. Default 5.
sbox_maxroundshot #: Same as above, only for round shot. Default 20.
sbox_maxcanistershot #: Same as above, only for canister shot. Default 5.
sbox_maxexplosiveshot #: Same as above, only for explosive shot. Default 5.
sbox_maxincendiaryshot #: Same as above, only for incendiary shot. Default 5.

Check this disscussion thread for updates as they are released. I will post a summary to the thread every time I update the addon.

Please let me know immediately of any bugs you find so I can fix them. If you are having problems with a cannon in a dupe, make sure to update the cannon by left clicking it with the cannon tool selected in order to update its settings before submitting it as a bug. Feature suggestions are also welcome.

Credits
Elijah: Created the original addon for an older version of gmod from which this addon is based, granted me permission to fix it
Myself: Fixed Elijah's original cannon tool for newer versions of GMod and expanded its functionality
\\Shadow}, Kogitsune, and Ruzza (from facepunch): Helped me iron out a couple of bugs that I couldn't fix
FattyMatty: Helped with screenshots
Popular Discussions View All (2)
0
28 May, 2024 @ 3:37pm
the cannons are stuck "loading..." forver
Kai.rysdam
228 Comments
ChickenNuggetDuder 3 Aug, 2024 @ 10:33pm 
look at the descprtion
Satoru Gojo 14 Jan, 2024 @ 8:33am 
max canistershot is a unknown command
Aspen 12 Nov, 2023 @ 10:16am 
oh i found the new one
Aspen 12 Nov, 2023 @ 10:12am 
[Cannon Tool!] lua/entities/sd_incendiaryshot/init.lua:105: bad argument #2 to 'FindInSphere' (number expected, got nil)
1. FindInSphere - [C]:-1
2. GetNearProps - lua/entities/sd_incendiaryshot/init.lua:105
3. Destruct - lua/entities/sd_incendiaryshot/init.lua:86
4. unknown - lua/entities/sd_incendiaryshot/init.lua:66 (x25)
TheR4T0nB9en0 17 Sep, 2023 @ 4:50pm 
A
:melon:
учусь лизать 15 May, 2023 @ 5:06pm 
it literally just falls off of whatever i try to put it on
milan33a 28 Apr, 2023 @ 10:54am 
good cannon :steamthumbsup:
Broig_Master 23 Apr, 2023 @ 6:21pm 
CHANGE OUT THE THUMBHOLE, CLEAN DEBRIS IN THE BARREL USING A WORM THEN DIP A BIG Q TIP IN WATER AND CLEAN THE BARREl, THEN TAKE A DRY AND BIG Q TIP AND DRY OUT THE BARREL, CHANGE OUT THE GUNPOWDER, PUT IN A CHARGE AND USE THE LARGE DRY Q-TIP TO SHOVE IT DOWN THEN PUT THE CANNONBALL IN THEN LIGHT THE GUNPOWDER AND BOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOM
how i look at bro when 14 Mar, 2023 @ 2:08pm 
[Cannon Tool!] lua/entities/sd_explosiveshot/init.lua:75: Tried to use a NULL physics object!
1. EnableMotion - [C]:-1
2. Destruct - lua/entities/sd_explosiveshot/init.lua:75
3. unknown - lua/entities/sd_explosiveshot/init.lua:64 (x4)