Garry's Mod

Garry's Mod

1,532 个评价
Cannon Tool!
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 武器, 工具
插件标签: 快乐, 角色扮演, 写实
文件大小
发表于
更新日期
544.651 KB
2013 年 1 月 20 日 上午 8:08
2018 年 8 月 22 日 上午 5:29
47 项改动说明 ( 查看 )

订阅以下载
Cannon Tool!

描述
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
热门讨论 查看全部(2)
0
2024 年 5 月 28 日 下午 3:37
the cannons are stuck "loading..." forver
Medic TF2
228 条留言
ChickenNuggetDuder 2024 年 8 月 3 日 下午 10:33 
look at the descprtion
Satoru Gojo 2024 年 1 月 14 日 上午 8:33 
max canistershot is a unknown command
Aspen 2023 年 11 月 12 日 上午 10:16 
oh i found the new one
Aspen 2023 年 11 月 12 日 上午 10:12 
[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 2023 年 9 月 17 日 下午 4:50 
A
:melon:
учусь лизать 2023 年 5 月 15 日 下午 5:06 
it literally just falls off of whatever i try to put it on
milan33a 2023 年 4 月 28 日 上午 10:54 
good cannon :steamthumbsup:
Broig_Master 2023 年 4 月 23 日 下午 6:21 
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
west banana productions 2023 年 3 月 14 日 下午 2:08 
[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)