Dismiss Notice

In the upcoming days mod approvals could be slower than normal.
Thank you for your patience.

Experimental Stunt Mortar 1.9

Apply force to a vehicle in a variety of ways.

  1. HighBeam9000
    What is it?
    upload_2021-11-11_0-31-27.png
    Flipping vehicles is a common stunt. One method, the flip ramp, comes with BeamNG.drive. Another method uses a mortar attached through the chassis floor pan to explosively launch one side of the vehicle upwards, flipping the vehicle. This was the original intent behind the stunt mortar, but it’s evolved to do much more. The stunt mortar is implemented using a thruster. The thruster can be located anywhere within the volume of the vehicle, can be oriented in any direction, and has adjustable force and duration.

    How is it installed?
    For the stock vehicles, the stunt mortar can be installed in either the “License Plate Design” slot or the “Additional Modification” slot (not both at the same time). The choice of slots enables the stunt mortar to be used at the same time as many other mods. For props, such as the shipping container, barrels, and rocks, a different slot is used, but the idea is the same. Mod vehicles will each be listed with the target slot used for that particular vehicle.

    The Tuning Menu can be used to set the following parameters:
    • Force Direction – This section specifies the vehicle-relative direction in which the vehicle will be pushed when force is applied.
    • Force Duration – Specifies how long the force will be applied per trigger (1 ms – 1000 ms). The Continuous Force slider specifies whether force is applied continuously (continuous=1) or according to the time limit (continuous=0). The Button Toggle slider specifies if the buttons that trigger the Stunt Mortar are momentary (default) or are toggled on/off with each press of the button. See below.
    • Force Magnitude – Sets the magnitude of the force applied.
    • Force Origin – This section specifies the location of the thruster within the vehicle in vehicle-relative coordinates.
    Experiment with the settings to get a feel for what they do. The vehicle-relative direction vectors/coordinates are as follows:
    • X: Left is in the X+ direction, and right is X-.
    • Y: Front is in the Y- direction, and rear is Y+.
    • Z: Up is in the Z+ direction, and down is Z-.
    Knowledge of these directions is important to achieve the desired effect. For example:
    • To push the vehicle upward:
      • Force Direction X = 0
      • Force Direction Y = 0
      • Force Direction Z = 1
    • To push the vehicle to the left:
      • Force Direction X = 1
      • Force Direction Y = 0
      • Force Direction Z = 0
    • To push the vehicle to the right:
      • Force Direction X = -1
      • Force Direction Y = 0
      • Force Direction Z = 0
    • To push the vehicle up and to the left:
      • Force Direction X = 1
      • Force Direction Y = 0
      • Force Direction Z = 1
    The Force Origin will determine the area of the vehicle that receives the force. If the force is applied at the vehicle's center, the resultant motion will be mostly linear. If the force is applied away from the vehicle's center, then rotation will also result.

    The Button Toggle setting in the Tuning menu determines if the Stunt Mortar triggers are momentary or toggle on/off:
    • Button Toggle = 0 --> The trigger is momentary. Press the trigger button to turn the thruster on, and release the button to turn it off.
    • Button Toggle = 1 --> The trigger button toggles the thruster on and off. Press and release to turn it on, then press and release it again to turn it off.
    How can it be used?
    The thruster can be used in any way that the player can think of to use a thruster bolted to a vehicle, such as any of the following uses:
    • Flip Vehicles – Apply an upward force at about the middle of one side of the vehicle. Put the vehicle into a sideways slide, then activate the stunt mortar to trigger a rollover "accident".
    • “Hydraulics” – Not really hydraulics. Allow the vehicle to jump over obstacles by applying an upward force in the middle of the vehicle. This method can also be used to launch vehicles straight to the second or third level of a parking garage.
    upload_2021-11-11_0-56-23.png
    • Add pop to explosions – When exploding a vehicle, apply an upward force to cause the vehicle to lurch upward at detonation. Note that the stunt mortar just adds the pop, not the explosion. Explosions come with BeamNG (Options-->Controls-->Bindings-->Gameplay-->Explode or Fun Stuff-->Boom).
    upload_2021-11-11_0-56-45.png
    • Invisible Jet – Accelerate very quickly, like using the JATOs but sneakier, by applying a strong forward force.
    • Speed Brakes – Decelerate quickly by applying a strong backward force.
    • Gravity Reduction – Apply an upward force to unspring the vehicle weight off the suspension, but not quite strong enough to lift the vehicle off the ground. This severely reduces tire traction and allows the vehicle to perform ballet, or to be used as a hockey puck.
    • Flying Car – Install the Stunt Mortar in the “Additional Modification” slot and install the AgentY Universal JATO in the “License Plate Design” slot. Locate the stunt mortar thruster in the middle of the front bumper of the vehicle. Set a continuous upward force so that it slowly lifts the front of the vehicle when the stunt mortar is activated, but don’t activate it yet. Launch the JATOs, wait a few seconds to gain speed, then activate the stunt mortar to start rotating the nose upward. When enough of the JATO thrust is vectored downward, the vehicle will leave the ground.
    upload_2021-11-11_0-57-3.png
    • Side Swipe – Locate the thruster in the middle of the vehicle and apply a sideways force. This can be used to side swipe fleeing vehicles in a police pursuit. It can also be used to make parallel parking easy.
    • Stick to Walls and Ceilings – Apply a downward force strong enough to overcome gravity, then drive up the wall of a whole pipe in the Grid map. This can be rough on a vehicle's suspension.
    Note that, because the thruster parameters can be set only one way at a time, the stunt mortar can’t be used for all of the above purposes at the same time. Reconfiguration is required to repurpose. Also note that the stunt mortar has a thrust reverser, which adds a second button that fires the stunt mortar thruster in the reverse direction. This allows for the following:
    • Rapid acceleration and deceleration in one configuration.
    • Start and stop rotation for skateboard tricks or gymnastics.
    • Sideswipe left and right in one configuration.
    • Swim forward and backward in the Sea Monster (see below).
    • Start to jump over another vehicle, but when you're above them, drop your vehicle down on them hard.
    • Open and close gates made from shipping containers.


    A video demonstrating some of the stunt mortar’s uses can be found here. Also, there are instructional videos available for the following configurations:

    Currently Supported Vehicles and Props
    • Standard Vehicles
      • Autobello
      • Barstow
      • Bastion
      • Bluebuck
      • Burnside
      • City Bus
      • Dunekicker
      • Ibishu 200BX
      • ETK 800-Series
      • ETK K-Series
      • ETK I-Series (i2400 and i3000)
      • Grand Marshal
      • Covet (Both new and "Covet Classic")
      • Hopper
      • Lansdale
      • LeGran
      • Miramar
      • Moonhawk
      • Pessima
      • D-Series Pickup
      • Pigeon
      • Roamer
      • Rockbasher
      • SBR4
      • Scintilla
      • T-Series Semi (Both new and "Semi Classic")
      • Stambecco
      • Sunburst
      • Bolide (Both new and "Bolide Classic")
      • H-Series Van
      • Vivace
      • Wendover
      • Wigeon
      • Wydra
      • Aurata
    • Mod Vehicles
      • CRD Monster Truck (Uses the Back-Up Beeper slot)
      • DH Hyper Bolide (Uses either the License Plate Design or Additional Modification slot)
      • NASCAR (Folder name = "nascar"; Uses either License Plate Design or Additional Modification slot)
      • NASCAR (Folder name = "latemodel"; Uses Paint Design slot)
      • Gavril Vertex (Uses either the License Plate Design or Additional Modification slot)
      • Procyon Centauri (Uses either the License Plate Design or Additional Modification slot)
      • Mazza 7B8B (Additional Modification slot)
      • Carbonworks F4 (Has alternate monocoque equipped with additional slots: License Plate Design and Additional Modification slots. Select the monocoque with slots, then install the Stunt Mortar on there.)
    • Props
      • Shipping Container - Yes, the shipping container can be moved with a thruster. This allows the shipping container to be used as a security gate or to crush vehicles.
      • Barrels – There are a thousand fun things to do with throwable barrels.
      • Rocks - Throwable rocks; Good for punting cars
      • Travel Trailer - Actually, it's only attached to the toilet. By default, it will launch out of the roof of the trailer.
    What if my favorite vehicle isn't supported (yet)?
    One option is to wait for "official" support. (Hint: I accept suggestions. :)) However, motivated users can opt to add support themselves. Adding stunt mortar support for an unsupported vehicle isn't difficult, just slightly tedious. At the end of this mod description are step-by-step instructions to add support to any vehicle with an available slot. Almost any slot will work, but some slots are better choices than others.

    Plans for the Future
    • Additional Mod Vehicles – Some non-stock vehicles will be supported.
    • Additional Movable Props – Some additional props will be supported.
    Known Shortcomings
    • If the Stunt Mortar is installed in the License Plate Design slot on the following vehicles, the vehicle will melt, then explode:
      • Miramar
      • ETK-i
      • SBR
      • Stambecco
      • Wydra
      • NASCAR
    The Additional Modification slot works just fine however, and the License Plate Design slot works for other vehicles. I'm working with the devs to figure this out. I only noticed this problem recently, when adding the new v0.27 vehicles.

    UPDATE: I figured out why some vehicles melt then explode, and the next update (v1.4) has the melt/explode problem fixed.
    • The barrel, while not necessarily unstable with the stunt mortar attached, sometimes bounces around for a while after a collision. The stunt mortar attachment simply needs a little more tuning for when it's installed on the barrel. Lighter objects seem to be more sensitive to large changes in node mass and beam spring/damp values.
    • For body-on-frame vehicles, the thruster is attached to the frame. Frames nodes tend to be somewhat planar. Locate the thruster above or below this “frame plane” for best results.
    • Applying large forces using the stunt mortar can lead to fun and vehicle damage. Applying utterly ridiculous forces can sometimes lead to instability.
    • The Stunt Mortar mod will appear in the "License Plate Design" slot for all vehicles that have that slot. However, not all vehicles that have that slot are supported, yet. There's a "stub" of sorts that connects to the License Plate Design slot, but if the guts don't exist for that particular vehicle, nothing happens.
    • If the vehicle is instructed to fall apart (Fun Stuff-->Break or Options-->Controls-->Bindings-->Gameplay-->Dismount all parts), it will also drop the stunt mortar, which will no longer be able to apply force until the vehicle is recovered (repaired). If the vehicle is intended to fall apart, be sure to give the stunt mortar enough time to apply the needed force before disintegrating the vehicle.
    • Sometimes, if a vehicle has other special controllers, the control event that is supposed to trigger the stunt mortar isn't received for some reason. The initialization and graphics update functions are called, which suggest that the mod is loading, but no trigger. For example, the stunt mortar works with the Hyper Bolide, but not if either the built-in rockets or minigun are installed. As soon as both of those are removed, the stunt mortar works. Some other vehicles with additional controllers may also have similar issues. However, the presence of a special controller doesn't necessarily mean that other controllers won't work. As another example, a version of the Pessima also has another special controller, for 4-wheel steering, but the stunt mortar works just fine with it. There's probably a better way that the stunt mortar controller can be implemented; some way that won't be affected by the presence of other controllers.
    Adding Support to Vehicles
    This section describes how to add stunt mortar support to a currently unsupported vehicle with an available slot. Without a free slot, adding the stunt mortar is more difficult, and won't be covered here. The easiest way to add stunt mortar support is to copy an existing vehicle's support files and make some edits. This activity requires some knowledge of the BeamNG.drive slot system. See the BeamNG.drive wiki and other dev pages for more information regarding the slot system.

    JBEAM files with the ".jbeam" extension define slot types to which other JBEAMs can connect. For example, the main JBEAM of the Covet (hatch.jbeam) has the following "slots" section:
    "slots": [
    ["type", "default", "description"],
    //bodywork
    ["hatch_body","hatch_body", "Body", {"coreSlot":true}],
    ["paint_design", "", "Paint Design"],
    ["licenseplate_design_2_1","","License Plate Design"],
    ["hatch_mod", "", "Additional Modification"]
    ],

    The first line within the "slots" section defines the field names for the lines that follow: type, default, and description. The first item in each subsequent line is the slot type. The second item is the default selection for that slot. The third is the slot type description that's displayed in the parts selection screen. The tag "coreSlot" determines if the slot must be filled to properly create the vehicle.

    The "Additional Modification" and "License Plate Design" slots are popular mod slots because nothing that affects the vehicle's performance is usually installed in those slots. In fact, the Additional Modification slot is specifically for mods because nothing stock in the game is installed in that slot. Another good slot candidate might be the GPS slot. Taking over the GPS slot doesn't affect vehicle performance.
    1. Open the mod vehicle's ZIP file. This will usually be somewhere in the folder "C:\Users\Your_User_Name\AppData\Local\BeamNG.drive\latest\mods".
    2. Within the ZIP file is a "vehicles" folder, and in that folder are folders with vehicles' names. Pick one mod vehicle to use for this exercise, and remember its name. This vehicle will be referred to as the target vehicle. A folder will be created later that will eventually hold the stunt mortar support files for this vehicle. This folder's name needs to exactly match the name of the target vehicle folder.
    3. Find an appropriate slot somewhere within the target vehicle JBEAM files and take note of the slot type.
    4. Find the target vehicle's chassis JBEAM file. If it's a body-on-frame vehicle, the name of the file will probably be the name of the vehicle with "_frame.jbeam" at the end. If it's a unibody vehicle, the name of the file will probably have "_body.jbeam" at the end. Open the chassis JBEAM file.
    5. Look for all of the "nodeWeight" tags in the file. Take note of the highest value found with these tags. A value of 40% of this node weight will be used as a starting point for the stunt mortar node weights. Calculate this 40% value now.
    6. Find the "beams" section of the chassis file. Look at the comments in this section and find a main load-bearing part of the chassis. Take note of the "beamDeform", "beamSpring", and "beamDamp" tags in this chassis area. The stunt mortar attachment beams will use 10% values of beamSpring and beamDamp, and will use the full value of beamDeform as a starting point. Calculate these values now.
    7. Launch BeamNG.drive and spawn the target vehicle in the blank, empty grid map for fast loading.
    8. Strip the vehicle down until only the chassis (frame or body) remains. Some parts can't be completely removed, and that's OK.
    9. Turn on the node name display. If the debug stuff is setup with default settings, this can be accomplished with Ctrl-N.
    10. Select 10 chassis nodes to use as attachment points for the stunt mortar, 5 from each side of the chassis. Take note of these node names. Exit BeamNG after selecting nodes.
    11. The stunt mortar is encapsulated in the ZIP file "HighBeam9000_Stunt_Mortar.zip". Create a new folder on your PC and extract the ZIP file into this folder.
    12. Within the extracted folder structure is a "vehicles" folder, and in that folder are folders with the names of all the vehicles currently supported by the stunt mortar. This exercise will use the "hatch" (Covet) as an example. Make a copy of the "hatch" folder.
    13. Rename the copy with the exact same name as the target vehicle's original folder. If the folders aren't named exactly the same, this won't work.
    14. Open the folder that you just renamed. This will soon be the target vehicle's stunt mortar support file folder. Feel free to check out the "inputmaps" folder and the "input_actions_HighBeam9000_Stunt_Mortar.json" file. However, these items don't require modification.
    15. Rename the file "HighBeam9000_Stunt_Mortar_HatchMod.jbeam". Change the "_HatchMod" part of the file's name to something that denotes the slot type that was selected for the stunt mortar. For example, if the "gps_nav" slot was selected, the file could be renamed as "HighBeam9000_Stunt_Mortar_GPSNav.jbeam".
    16. After renaming the file, open it.
    17. At the top of the file is the name of the JBEAM contained by the file. The name of the JBEAM must match the name of the file, except without the ".jbeam" extension.
    18. In the "information" section, change "(Hatch Mod)" to something more descriptive of the slot type selected for the stunt mortar.
    19. In the "slotType" section, change "hatch_mod" to the exact text of the target slot type on the target vehicle.
    20. Save and close this file.
    21. Find the file "HighBeam9000_Stunt_Mortar.jbeam". This file's name must remain unchanged. Open this file.
    22. In the "variables" section, there are some variables whose names start with "hb9k_forceOrg". These variables determine where the stunt mortar is placed in the vehicle. If the minimum and maximum X, Y, and Z coordinates of the vehicle nodes are known, then those values can be entered. The defaults for each variable must be between min and max, inclusive. If the vehicle's extents are not known, then -2 to 2 is a good starting range to try first. The parameters for the variable "hb9k_forceMag" will be set later when the stunt mortar is installed for the first time.
    23. In the "nodes" section, find the "nodeWeight" tag. Set the node weight to the value that was calculated at the end of step (5).
    24. In the "beams" section, set the "beamDeform", "beamSpring", and "beamDamp" values to those calculated at the end of step (6).
    25. Also in the beams section are the beams that connect the stunt mortar to the chassis. The stunt mortar nodes are named "hb9k_smfn1" and "hb9k_smfn2". There is a list of 10 nodes that are connected to hb9k_smfn1, and the same 10 nodes connected to hb9k_smfn2. Edit both lists to connect both stunt mortar nodes to the 10 nodes selected in step (10).
    26. Save the file, but keep it open to be edited some more later. The stunt mortar maximum and default forces still need to be set.
    27. Navigate back to the base folder in which the file "HighBeam9000_Stunt_Mortar.zip" was extracted at the beginning of this procedure, and zip everything back up again, including your new stunt mortar support files. Do not delete the unzipped copies of the files. You'll need those to put your vehicle's stunt mortar support files back whenever the official stunt mortar ZIP file is updated on your PC.
    28. Copy the ZIP file back to the mods folder where you found it. Overwrite the existing file.
    29. Launch BeamNG, spawn the target vehicle, equip the stunt mortar, and try it out. Also, be sure to check the debug window for errors. Pop up the debug window with the ~ key, except don't hold shift when pressing it.
    30. Tune the settings in the file "HighBeam9000_Stunt_Mortar.jbeam":
      -- The "hb9k_forceMag" variable default value is normally set to the minimum necessary to flip a vehicle onto its side, and the maximum is normally set to 5 times the default.
      -- The "nodeWeight", "beamSpring", and "beamDamp" beam settings may need to be adjusted if signs of instability are detected. These signs include BeamNG reporting instability, the vehicle vibrating or sliding around on its own, or the vehicle actually exploding. If instability occurs, raise the nodeWeight, lower the beamSpring or beamDamp, or some combination thereof. Some experimentation may be necessary.
    31. Once it's dialed-in, enjoy!

Recent Reviews

  1. flatoreo9
    flatoreo9
    5/5,
    Version: 1.9
    I love using this to do blowovers in the nascar and wendover
    1. HighBeam9000
      Author's Response
      Nice! I'm glad that you like it. :)
  2. Idonthavausernam
    Idonthavausernam
    5/5,
    Version: 1.9
    Thank you so much for adding support to Carbonworks F4. I also hope to MaxieTheFoxxie's Crown Victoria's support soon.
    1. HighBeam9000
      Author's Response
      The Crown Vic is added to the mod to-do list. It'll take some time to get to it, but I will.
  3. Lezard1
    Lezard1
    5/5,
    Version: 1.8
    How do i make it push me up for vtol and slow me down for airbreak like in the hyper bolide mod, i can just do 1 or another how do i have them both in 2 different key
    1. HighBeam9000
      Author's Response
      The Stunt Mortar is just a single thruster. Two thrusters would be required for a hover jet and an air brake. Fortunately, there is a STOLide setup and instructions here:
      https://www.beamng.com/threads/naval-warfare.87940/page-3#post-1497542

      For this STOLide (short for STOL Bolide), the Stunt Mortar is used for the hover jet, and I added "thrust reversers" on the main rockets for braking. If you need further assistance, or if you would like to see some more cool stuff, feel free to contact us on the Naval Warfare thread on the BeamNG Forum:
      https://www.beamng.com/threads/naval-warfare.87940/

      We're happy to help.
  4. golgo1387
    golgo1387
    5/5,
    Version: 1.8
    Very fun. Almost like an invisible and silent JATO rocket.
    1. HighBeam9000
      Author's Response
      In all the ways that your finger can push around a small toy car, the Stunt Mortar can do the same. I'm glad that you like it.
  5. Idonthavausernam
    Idonthavausernam
    5/5,
    Version: 1.7
    Excellent! This will be the only mod I ever need to make cinematics. Will Carbonworks F4 be supported anytime soon?
    1. HighBeam9000
      Author's Response
      I can add support for the Carbonworks F4, since you requested it. :) I'll add it in the next week or two. I've been pretty busy lately.
  6. SMALLMAXO
    SMALLMAXO
    5/5,
    Version: 1.7
    its great but i dont know how to actually get it up into the air. i want to know but idk what button to press. the explanation didn't
    help at all pls help me
    1. HighBeam9000
      Author's Response
      First, not all vehicles are supported. All of the currently supported vehicles are listed on the Stunt Mortar mod page:
      https://www.beamng.com/resources/stunt-mortar.20419/

      Second, you'll need to map the controls that you'll use to activate the Stunt Mortar. After you've spawned a supported vehicle, go to Options-->Controls-->Vehicle Specific. You'll see "Stunt Mortar" (triggers a force to be exerted on vehicle) and "Stunt Mortar Rev" (exerts a force in the opposite direction). Map some controls (keys on keyboard, buttons on controller, etc) to these functions to activate them.
  7. SebyINFINITEs
    SebyINFINITEs
    5/5,
    Version: 1.5
    I absolutely love this mod, it's really usefull for rollover crashing, they are so satisfying to watch! Can you also make support for the Procyon Centauri and Gavril Vertex?
    1. HighBeam9000
      Author's Response
      Yes, I can, and it will be done.

      Now it's on my list. I just need some time to do it.
  8. Threepea11
    Threepea11
    5/5,
    Version: 1.4
    Great mod, can you make support for the nascar late model?
    1. HighBeam9000
      Author's Response
      I absolutely can. PM me with the details of the vehicle, including a link to where I can find it.
  9. bussin.buses
    bussin.buses
    5/5,
    Version: 1.2
    Update for Stambecco? (And the tube frame vehicles, but I don’t really use ‘em)
    1. HighBeam9000
      Author's Response
      An update will be forthcoming that will support the new 0.27 vehicles. I just need to find the time.
  10. ITHEPUNISHER
    ITHEPUNISHER
    5/5,
    Version: 1.2
    I have been wanting this for years!! dude your a legend please do not ever give up on this it's essential to the game♥
    1. HighBeam9000
      Author's Response
      Thank you. :)

      This was my first mod. I needed a means to roll a vehicle out of a slide, but it can do lots more stuff. It's a nice, generic car pusher.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice