mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Dragging - Add setting for Max Weight Coefficient (#9569)
* add arcade mode setting * tweak stringtable * stringtable * change to slider * fix spelling * Update stringtable.xml --------- Co-authored-by: PabstMirror <pabstmirror@gmail.com>
This commit is contained in:
parent
e5c3470f5d
commit
406fce2836
@ -18,6 +18,9 @@
|
||||
|
||||
params ["_object"];
|
||||
|
||||
// Skip weight checking if it will be 0
|
||||
if (GVAR(weightCoefficient) == 0) exitWith {0};
|
||||
|
||||
private _weight = loadAbs _object;
|
||||
|
||||
if !(GVAR(skipContainerWeight)) then {
|
||||
@ -36,4 +39,4 @@ if !(GVAR(skipContainerWeight)) then {
|
||||
|
||||
// Mass in Arma isn't an exact amount but rather a volume/weight value
|
||||
// This attempts to work around that by making it a usable value (sort of)
|
||||
_weight * 0.5 // return
|
||||
GVAR(weightCoefficient) * _weight * 0.5 // return
|
||||
|
@ -1,3 +1,12 @@
|
||||
[
|
||||
QGVAR(weightCoefficient),
|
||||
"SLIDER",
|
||||
[LSTRING(weightCoefficient_DisplayName), LSTRING(weightCoefficient_Description)],
|
||||
LLSTRING(SettingsName),
|
||||
[0, 2, 1, 2],
|
||||
true
|
||||
] call CBA_fnc_addSetting;
|
||||
|
||||
[
|
||||
QGVAR(dragAndFire),
|
||||
"CHECKBOX",
|
||||
@ -10,7 +19,7 @@
|
||||
QGVAR(allowRunWithLightweight),
|
||||
"CHECKBOX",
|
||||
[LSTRING(allowRunWithLightweight_DisplayName), LSTRING(allowRunWithLightweight_Description)],
|
||||
localize LSTRING(SettingsName),
|
||||
LLSTRING(SettingsName),
|
||||
true,
|
||||
true
|
||||
] call CBA_fnc_addSetting;
|
||||
@ -19,7 +28,7 @@
|
||||
QGVAR(skipContainerWeight),
|
||||
"CHECKBOX",
|
||||
[LSTRING(skipContainerWeight_DisplayName), LSTRING(skipContainerWeight_Description)],
|
||||
localize LSTRING(SettingsName),
|
||||
LLSTRING(SettingsName),
|
||||
false,
|
||||
true
|
||||
] call CBA_fnc_addSetting;
|
||||
|
@ -179,5 +179,11 @@
|
||||
<Korean>무게 계산에 개체의 무게를 추가할 지 여부를 결정합니다.</Korean>
|
||||
<French>Défini si le poids d'un objet est ajouté aux calculs du poids.</French>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Dragging_weightCoefficient_DisplayName">
|
||||
<English>Max Weight Coefficient</English>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Dragging_weightCoefficient_Description">
|
||||
<English>Modifies weight limit calculations. Set to 0 to ignore.</English>
|
||||
</Key>
|
||||
</Package>
|
||||
</Project>
|
||||
|
Loading…
Reference in New Issue
Block a user