Nainstalovat Steam
přihlásit se
|
jazyk
简体中文 (Zjednodušená čínština)
繁體中文 (Tradiční čínština)
日本語 (Japonština)
한국어 (Korejština)
ไทย (Thajština)
български (Bulharština)
Dansk (Dánština)
Deutsch (Němčina)
English (Angličtina)
Español-España (Evropská španělština)
Español-Latinoamérica (Latin. španělština)
Ελληνικά (Řečtina)
Français (Francouzština)
Italiano (Italština)
Bahasa Indonesia (Indonéština)
Magyar (Maďarština)
Nederlands (Nizozemština)
Norsk (Norština)
Polski (Polština)
Português (Evropská portugalština)
Português-Brasil (Brazilská portugalština)
Română (Rumunština)
Русский (Ruština)
Suomi (Finština)
Svenska (Švédština)
Türkçe (Turečtina)
Tiếng Việt (Vietnamština)
Українська (Ukrajinština)
Nahlásit problém s překladem
Alternatively, this might be a conflict between Backpacks on chests and the walkable moving objects mod. It's hard to say without more concrete reproduction steps. If anyone else is having this problem, let us know.
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://steamhost.cn/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.";
};
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]}
if (isNil {_unit getVariable ["bocr_main_chestpack", nil]}) then {
systemChat "Unit does not have a backpack on their chest";
};
`_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