Arma 3
259 ratings
BackpackOnChest - Redux
4
2
   
Award
Favorite
Favorited
Unfavorite
Data Type: Mod
Mod Type: Mechanics
File Size
Posted
Updated
150.731 KB
Jan 23, 2021 @ 8:31pm
May 7 @ 2:59pm
5 Change Notes ( view )

Subscribe to download
BackpackOnChest - Redux

In 1 collection by mjc4wilton
The Shlappening Mod Collection
21 items
Description
BackpackOnChest - Redux
An official rewrite and continuation of the original BackpackOnChest mod by DerZade. This mod allows you to have a backpack on your chest and on your back at the same time, with movement penalties. Great for parachutes!

Improvements from the original
  • Optimizations.
  • Support for variables associated with the backpack (for items such as the ACE Gunbag or TFAR backpack radios).
  • Transition to an easier development platform with the support of CBA and ACE macros.
  • Various other improvements.

Links
Contribute to the project on Github[github.com]
View documentation on the Github Wiki[github.com]

FAQ:
Can I pack this mod into my unit's modpack?
Go ahead. If your unit's mod is published on the workshop / elsewhere other than say a FTP or HTTP repository for sync, all I ask is that you leave a link back to this workshop page or the github repository but its completely optional since this mod is licensed under the MIT license.
136 Comments
mwpowelllde May 9 @ 12:01am 
Good to know and thank you.
Mar 18 @ 2:17pm 
Thanks for the help.

I just needed to write in a patch to prevent people from using the "Alternative Running" sprint mod while carrying a bag on their chest since they were able to circumvent the force-walk restriction by just doing the modded sprint (The mod: https://steamcommunity.com/sharedfiles/filedetails/?id=2198339170)

I just had to change the path to the XEH_preinit.sqf to my own and included this in the beginning to patch the exploit, code below worked as needed as a simple workaround

if (!isNil {player getVariable ["bocr_main_chestpack", nil]}) exitWith {
systemChat "You are unable to sprint with a bag on your chest.";
};
[+| CL rautamiekka Mar 18 @ 9:52am 
@mjc4wilton

I almost had it, wasn't totally sure about `_main_` being there, and couldn't be arsed to boot the game to try.

I'd recommend using `isNil` directly as of 'Arma 3' v2.18:
_unit isNil "bocr_main_chestpack"

instead of

isNil {_unit getVariable ["bocr_main_chestpack", nil]}
Mar 17 @ 4:49pm 
Thank you! 👍
mjc4wilton  [author] Mar 17 @ 3:17pm 
the macro actually expands to bocr_main_chestpack. Easiest way to check if a player has a chestpack is to run

if (isNil {_unit getVariable ["bocr_main_chestpack", nil]}) then {
systemChat "Unit does not have a backpack on their chest";
};
[+| CL rautamiekka Mar 17 @ 11:50am 
@Ↄ

`_unit getVariable "bocr_chestpack"` (98% certainty), as defined on line 52 in the `/addons/main/functions/fnc_addChestpack.sqf` file, showing what the var contains.

^ GitHub link: https://github.com/mjc4wilton/BackpackOnChestRedux/blob/master/addons/main/functions/fnc_addChestpack.sqf#L52
Mar 14 @ 9:59pm 
What is a variable I can check to see if the player has a bag on their chest..
AshTray_BY Mar 1 @ 11:48am 
RHS RD-54 backpack is in the knee area when moving it to chest. same with R-148 radio
Chair Feb 28 @ 12:53pm 
mjc4wilton, its happened with RHS vehicles and USAF C-130
mjc4wilton  [author] Feb 8 @ 11:56pm 
Do you have any specific vehicles that this is happening to? Ideally classname and mod so I can reproduce to troubleshoot it.