Unlimited Cannon [Spaar`s ModLoader]

Discussion in 'Besiege: Modding' started by cysto, May 21, 2015.

  1. cysto

    cysto Member

    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
     
  2. Deptune

    Deptune New Member

    Cannon can't be activated by flame
     
  3. x2thaz

    x2thaz New Member

    any chance you could get it to ignite from flame again? and remove recoil.. i want to make a badass gattling gun
     
  4. UrSubconscious

    UrSubconscious New Member

    Gotta keep the recoil. so you can do cannon rockets!
     
  5. UrSubconscious

    UrSubconscious New Member

    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.
     
  6. pig005

    pig005 New Member

    Awesome! XD
     
  7. cysto

    cysto Member

    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.
     
  8. SNJ

    SNJ New Member

    -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
     
  9. x2thaz

    x2thaz New Member

    any chance of the recoil mod?
     
  10. holyco

    holyco New Member

    here is my version, I made it as heavy as possible to negate the recoil and improve accuracy

    Attached Files
    tortoise.bsg
     
  11. cysto

    cysto Member

    Mod updated. Check main post for changes and download link
     
  12. UrSubconscious

    UrSubconscious New Member

    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.
     
  13. holyco

    holyco New Member

    thanks!:)
     
  14. pig005

    pig005 New Member

    lol thanks!
     
  15. cysto

    cysto Member

    Mod updated to v2.1; changelog updated in main post
     
  16. Now the cannon doesn't have unlimited shots, and nor does the shrapnel cannon.
     
  17. cysto

    cysto Member

    How come. I have tested it countless times :p Press Ctrl+K, does anything suspicious show up? (Exceptions of any kind?)
     
  18. cysto

    cysto Member

    Mod updated to v2.2; changelog updated in main post
     
  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
     
  20. cysto

    cysto Member

    What version are you using? I think you're still using v0.1
    Download v2.2 from main post and try again
     

Share This Page