Unlimited Cannon [Spaar`s ModLoader]

#1
Mod has been improved and made to function with possibly less bugs. It remains based on dynamic type creation since I just couldn't get the FireTags to function correctly using method overrides.

Features:
  • Supports both ball cannon and shrapnel cannon
  • Ability to modify knockback (ball and shrapnel) and power (ball only)
  • Automatic fire mode, with a period between 0 and 1 seconds
The mod dll is attached.
Installation (From ITR's thread; too lazy to type my own):
  • Install Spaar's Modloader
  • Drag the mod into the "Mods" folder
Change-log:
v2.3:
  • Added option to disable the mod for individual cannons
v2.2:
  • Cannon properties can now be manually specified in a text box
  • Added option to delay cannon shot (more realistic)
v2.1:
  • Used FixedUpdate() instead of Update() to improve time-dependent functions (auto-fire)
  • Added a component which deletes cannon balls when the total number is above 100, to decrease lag
v2.0:
  • Added support for shrapnel cannon
  • Added GUI
v0.2:
  • Fixed "no shoot when heated" bug
v0.1:
  • Unlimited Cannon: Showcase of dynamic type creation and its compatibility with Spaar's modloader
That's it. Enjoy!

Attached Files
UnlimitedCannon.dll
 
#5
Ok so if you get stupid and put like 50 cannons on a stick and fire them all at once 100 times it will wreck your fps but for "Normal" use its just fine.
 
#7
Version 0.2 released. Minor upgrade regarding shooting when heated.
Improved mod layout for those who'd like to take a peak at the source.
 

SNJ

New Member
#8
-edit never mind, i thought this mod caused a decrease in performance but it was the spaar mod loader itself.. thanks for making the mod anyways
 
#12
Just for fun go ahead and place 1 cannon on the start block and then set it on the ground
Set the cannon for Auto Fire with no delay
Set the recoil to 0
Set the time to 1%
Begin the simulation and trip out.
 
#19
Nothing stands out in the log:

[Log] Trying to load E:\Steam\steamapps\common\Besiege\Besiege_Data\Mods\BetterModGUI.dll
[Log] Better Mod GUI mod loaded
[Log] Attached and loaded BetterModGUI.dll
[Log] Trying to load E:\Steam\steamapps\common\Besiege\Besiege_Data\Mods\BombMod.dll
[Log] Attached and loaded BombMod.dll
[Log] Trying to load E:\Steam\steamapps\common\Besiege\Besiege_Data\Mods\RocketMod.dll
[Log] Attached and loaded RocketMod.dll
[Log] Trying to load E:\Steam\steamapps\common\Besiege\Besiege_Data\Mods\Rotate.dll
[Log] RotationMod started
[Log] Attached and loaded Rotate.dll
[Log] Trying to load E:\Steam\steamapps\common\Besiege\Besiege_Data\Mods\UnlimitedCannon.dll
[Log] Attached and loaded UnlimitedCannon.dll
[Log] Found BetterModGUI
[Log] Started Better Mod GUI mod with moveGUI key: left ctrl
[Log] Started rotate mod with default: 22,5 and hudKey: q
 
Top