Author: Leopard20
Author Website:

Requirements: Community Base addons A3

Version: 0.31
Signed: Yes, serverkey included

Short description: is a simple and lightweight addon that attempts to improve (not fix) the weird PhysX problem where the vehicles bounce up into the air in a ridiculous way.

Date: 2020-08-09 09:33


Comments: (0)
Rating:



 







Anti-Bounce System (ABS)

by
Leopard20


Description:
Warning! This mod is work-in-progress!
This is a simple and lightweight addon that attempts to improve (not fix) the weird PhysX problem where the vehicles bounce up into the air in a ridiculous way.

I made this addon for my upcoming AI mod, as they had a tendency to flip their vehicles a lot while driving. But I suppose it is worth using by players as well.

I have tried my best to make the vehicle movement look as natural as possible (basically no "teleporting"). There shouldn't be any undesired side-effects (interference with normal vehicle physics)

Please note that the problem with PhysX cannot be fixed with a simple addon, because it is engine related. Also, please note that this mod is still work-in-progress, so do not use it in any serious missions until you've tested it and made sure it satisfies your needs.

I will try to improve the mod with your feedback, so please report all your issues and findings.

Mod Features:
1. Anti-Bounce System:
Attempts to prevent the vehicle from flying into the air upon contact, caused by sharp edges in geometries (which apparently impart a large torque to the vehicle, thus sending it up into the air). It doesn't fix it completely however (due to vehicle acceleration):
You can find one instance of this building about 800 m east of Stratis Airbase, next to the end of a road which you should be able to find easily (GRID: 025055). You can also place the building yourself (Land_i_Stone_Shed_V1_F)
2. Un-flip assistant:
Gives the vehicle a small "boost" to help it unflip. Note that it doesn't always work (especially if the vehicle is completely upside-down).
The vehicles gets back on its tracks due to the boost (force) itself. It doesn't "teleport" to that position (setVectorUp or other dirty methods) .
3. Manual unflipping:
Use WASD keys to unflip your vehicle.
Unbinding the WASD keys will disable this feature (see below)
4. Customizable:
Customize the mod features using CBA settings and keybindings.
CBA Settings: [Pause menu] -> Game -> Configure Addons -> Anti-Bounce System or [Pause menu] -> Addon Options -> Anti-Bounce System
CBA Keybindings: [Pause menu] -> Controls -> Configure Addons -> Anti-Bounce System
5. Performance friendly:
Extremely lightweight (event handler based) and nearly zero performance impact, so it is used on all land vehicles.


Installation:
To install Anti-Bounce System (ABS) you should use modfolders to keep it seperate from the official game content to prevent issues.
With Arma 3 you can use different ways to set up your modfolders to use custom content you have downloaded.
Please visit the Arma 3 Mod install instructions page for more information about using custom mods and addons in Arma 3.


Included files:
AntiBounceSystem.pbo


Usage:
1. Testing:
The mod automatically activates for all land vehicles. If you want to remove the features for testing, execute this code in the debug console (in case you don't know what it is, it's the black box that you see when you pause the mission in editor):
[vehicleName] call ABS_fnc_removeEHs

vehicleName is the name of the vehicle you want to test. If you want to test it on the player's vehicle, you can use this code instead:
[vehicle player] call ABS_fnc_removeEHs

To re-activate, use this code:
[vehicleName] call ABS_fnc_addEHs

2. Customization:
CBA Settings: [Pause menu] -> Game -> Configure Addons -> Anti-Bounce System or [Pause menu] -> Addon Options -> Anti-Bounce System
CBA Keybindings: [Pause menu] -> Controls -> Configure Addons -> Anti-Bounce System

3. Multiplayer Compatibility:
The mod should be MP-compatible, but I haven't tested it yet. So if you want, you can give it a go in a casual test mission.


Notes:
Multiplayer Compatibility:
The mod should work fine in MP, but I haven't tested it yet.
It must be loaded by the server and all clients.


License / Disclaimer:
The source code is available on GitHub. If you want, you can improve the mod in your own way!

Please note that this mod is still work-in-progress (unfinished). The author neither claims nor guarantees that this mod will be completely harmless. Thus be sure to test the mod properly before using it in any serious operations/missions.


Changelog:
0.31
# Added:
* New CBA setting: Enable Manual Unflipping

0.3
Improved:
Anti-Bounce: The mod should be able to detect large lateral accelerations and cancel them as well!
Auto-unflipping: Since the code is fast enough, it now runs the entire time (during PhysX contact only) to make sure the vehicle is fully unflipped. So it now has a 90%+ success rate!
I have removed the "jolt", because it might've made the vehicle fast enough to kill any infantry units in its way!.
Manual-unflipping: It will cancel Auto-unflipping if it's currently in progress. So you don't need to enable the option "Disable automatic unflipping for player vehicles" anymore.
Manual-unflipping: The force is now applied in alignment with the center of mass

0.2
Added:
Manual Unflipping using WASD
Customization options (CBA Settings)

0.1
Initial Release


Forum topic:
- BI forums


Steam Workshop:
- Subscribe




Enable javascript to be able to download from Armaholic please!