Profile image

Clip Cannon

11.2k ThomasRoderick  2.2 years ago
Auto Credit Based on ThomasRoderick's Ammo counter & Autoloader

FireWeapons: Fire a shot from the cannon; the cannon would reload after every sixth shot.


How to use the setup:

  1. Create four new variables. Set their Expression to "1" as placeholder.

  2. Set the Expression of the first variable to " rate( [fourth variable name] )>0 ? Time : [first variable name] "
    This variable records the time when the clip is empty.

  3. Set the Expression of the second variable to " Time - [first variable name] > [time a reload a clip] | [third variable name] > [fourth variable name] | [first variable name] = 0 "
    This variable defines when the cannon have access to ammunition; the first condition is if a new clip is inserted, the second when we're firing from a clip, and the third at the start of the game and logically the clip has already been loaded some unspecified amount of time ago. Either condition would allow the cannon to fire.

  4. Set the Expression of the third variable to " ammo( "[name of the weapon]" ) > 0 ? [max ammo of the weapon] - ammo( "[name of the weapon]" ) : [third variable name] "
    This variable keeps the ammo count even when the cannon is inactive.

  5. Set the Expression of the fourth variable to " [third variable name] - [fourth variable name] = [ammo per clip] ? [third variable name] : [fourth variable name] "
    This variable only changes when [ammo per clip] rounds have been fired and is used to signify when a clip is empty.

  6. Install the cannon. Set the activationGroup to " [third variable name] ", ammoCount to " [maximum ammo of the weapon] ", and firingDelay to " [time needed for the weapon to cycle] ".
    If the cannon(s) require other condition(s) to fire then set the activationGroup to " [third variable name] & [other conditons] " .

Spotlights

General Characteristics

  • Predecessor Ammo counter & Autoloader
  • Created On Android
  • Wingspan 8.2ft (2.5m)
  • Length 20.7ft (6.3m)
  • Height 3.7ft (1.1m)
  • Empty Weight 1,264lbs (573kg)
  • Loaded Weight 1,264lbs (573kg)

Performance

  • Wing Loading N/A
  • Wing Area 0.0ft2 (0.0m2)
  • Drag Points 670

Parts

  • Number of Parts 9
  • Control Surfaces 0
  • Performance Cost 48
  • Log in to leave a comment
  • Profile image

    @ThomasRoderick British gun names try not to be simultaneously the coolest sounding but with the weirdest actual acronym challenge (level: impossible)

    +2 one month ago
  • Profile image

    @SchmooveBrain
    Ah, nvm; on that note, how's the setup?
    Also, for those weird cannons on Warrior IFVs, you're probably going to be interested in this as well.

    +1 one month ago
  • Profile image

    @ThomasRoderick sorry, I was talking to BOS in one of my unlisteds and he mentioned an IFV cannon and I wanted to see what he meant
    Sorry, that prob seemed incredibly outta nowhere lol

    +1 one month ago
  • Profile image
    48.6k Unwanted

    @ThomasRoderick she asked about it

    +2 one month ago
  • Profile image

    @SchmooveBrain @BOSSentinel
    Errrrm.... anybody please explain to me what's going on again?

    +1 one month ago
  • Profile image

    @BOSSentinel ouhhh lmao

    +1 one month ago
  • Profile image
    48.6k Unwanted

    @Schmoovebrain this chonker of FT

    one month ago
  • Profile image

    Idle musings:
    Older battleships oftentimes have multiple guns sharing the same elevation mechanism, so... perhaps this setup can be used to represent the individual turrets on those ships?

    one month ago
  • Profile image

    @BlackGearCompany
    Thanks! Feel free to use the setup in your future projects!

    +1 one month ago
  • Profile image
    1,444 SeaplaneINC

    @ThomasRoderick thank you!

    +1 one month ago
  • Profile image

    @BOSinitiate
    1&3: Description updated to include construction guide.
    2: Yes of course! All of my codes are free to use as long as you give credit somewhere in your build.

    +1 one month ago
  • Profile image
    1,444 SeaplaneINC

    I have 3 questions.
    1. How would I put this onto my build?
    2.May I use this on my main account? [@BOSSentinel]
    3. Is there any funky trees I would need to use.?

    +1 one month ago
  • Profile image

    @VTPADELTA
    Sorry for my late reply. Yup it's a lot simpler compared to the autoloader, and also yes, feel free to incorporate it into your next build as long as you give credit.
    (Also make sure to have at least 0.05s delay between your cannons for the counter to work properly)
    .
    ..
    ...
    .... And thanks for the upvotes either way.

    one month ago
  • Profile image
    565 VTPADELTA

    Its just funny how your script still functions, despite the simplicity behind it.

    Gonna incorporate that into my build, if you don't mind :3

    +1 one month ago
  • Profile image
    48.6k 50CalChicken

    @ThomasRoderick well then here's a spotlight for your politeness

    +1 3 months ago
  • Profile image

    @50CalChicken Thanks!

    +1 3 months ago
  • Profile image
    30.4k HudDistance

    @ThomasRoderick idk

    +1 6 months ago
  • Profile image

    @MosquitowithaMachineGun
    Why sudden spotlight now... thx anyways.

    +1 6 months ago
  • Profile image

    @Bogey
    Welp, feel free to use them in your next builds! Granted, it's still in the proof-of-concept phase, so....
    .
    ..
    ... I guess the companion piece can be used to set up individual gun turrets?

    7 months ago
  • Profile image
    7,878 Bogey

    Nice build

    +1 7 months ago
  • Profile image

    @Bogey Thanks!

    7 months ago
  • Profile image
    7,904 Cuboidable

    2000 years later

    8 months ago
  • Profile image

    @ThomasRoderick Yessir

    +1 9 months ago
  • Profile image

    @MajorFreischmidt Thanks!

    9 months ago
  • Profile image
    30.4k HudDistance

    @ThomasRoderick thanks
    Also, it's ok, my discord account and SP account have entirely different names so it makes sense, I'm thinking of changing my discord account to mosquitowithagun but idk.

    +1 10 months ago
  • Log in to see more comments