What is it?
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:
Experiment with the settings to get a feel for what they do. The vehicle-relative direction vectors/coordinates are as follows:
- 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.
Knowledge of these directions is important to achieve the desired effect. For example:
- 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-.
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.
- 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 Button Toggle setting in the Tuning menu determines if the Stunt Mortar triggers are momentary or toggle on/off:
How can it be used?
- 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.
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.
- 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).
- 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.
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:
- 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.
- 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:
- Sea Monster: CRD monster truck that swims
- Hyper Bolide STOL: For short runways
- Car Bowling
- Gymnastics
Currently Supported Vehicles and Props
What if my favorite vehicle isn't supported (yet)?
- 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.
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
Known Shortcomings
- Additional Mod Vehicles – Some non-stock vehicles will be supported.
- Additional Movable Props – Some additional props will be supported.
- 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.Adding Support to Vehicles
- 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.
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.
- 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".
- 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.
- Find an appropriate slot somewhere within the target vehicle JBEAM files and take note of the slot type.
- 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.
- 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.
- 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.
- Launch BeamNG.drive and spawn the target vehicle in the blank, empty grid map for fast loading.
- Strip the vehicle down until only the chassis (frame or body) remains. Some parts can't be completely removed, and that's OK.
- Turn on the node name display. If the debug stuff is setup with default settings, this can be accomplished with Ctrl-N.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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".
- After renaming the file, open it.
- 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.
- In the "information" section, change "(Hatch Mod)" to something more descriptive of the slot type selected for the stunt mortar.
- In the "slotType" section, change "hatch_mod" to the exact text of the target slot type on the target vehicle.
- Save and close this file.
- Find the file "HighBeam9000_Stunt_Mortar.jbeam". This file's name must remain unchanged. Open this file.
- 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.
- In the "nodes" section, find the "nodeWeight" tag. Set the node weight to the value that was calculated at the end of step (5).
- In the "beams" section, set the "beamDeform", "beamSpring", and "beamDamp" values to those calculated at the end of step (6).
- 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).
- 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.
- 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.
- Copy the ZIP file back to the mods folder where you found it. Overwrite the existing file.
- 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.
- 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.- Once it's dialed-in, enjoy!
Dismiss Notice
In the upcoming days mod approvals could be slower than normal.
Thank you for your patience.
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.
Recent Updates
- Additional vehicles Dec 18, 2023
- Added support for Hirochi Aurata Oct 9, 2023
- Vehicle Support Added Jul 10, 2023