ACE3/addons/quickmount/initSettings.sqf
Dystopian e8c3be8016 Quick Mount - Add Get In and Change seat action menu (#5745)
* Add quickmount GetIn menu

* Add compartment support

* Check engine, check pilot, check static turret driver

* Add doc, condition, translation

* Add hybrid config entries, fix MP issue

* Optimize condition

* Ignore Enabled setting in vehicle

* Work around SQF validator macro issue

* Fix config macro entries

* Add workaround for getting damage when seat changing while moving

* Add setting for Get In menu disabling

* Fix race when 2 players try to get the same seat

* Convert if-else to switch

* Decrease move-back timeout to 0.5s

* Check if vehicle is flipped

* Add getin statement for parent menu

* Improve canShowFreeSeats

* Apply latest trends

* Improve fnc_addFreeSeatsActions

* Change copilot and gunless turret icons

* Fix macro name

* Fix FFV icon

* Optimize turret icon code

* Extend setting to 4 values

* Fix menu is shown when vehicle is full

* Optimize UAV checking code

* Fix bug with disabled FFV turrets

* Remove bugged FFV, Add turret locality check, Add Failed message

* Replace some macros with function

* Fix validator

* Remove global variables, Add debug
2018-11-18 22:33:50 -06:00

53 lines
1.2 KiB
Plaintext

[
QGVAR(enabled),
"CHECKBOX",
ELSTRING(common,Enabled),
format ["ACE %1", LLSTRING(Category)],
true,
true
] call CBA_settings_fnc_init;
[
QGVAR(distance),
"SLIDER",
[LSTRING(Distance), LSTRING(DistanceDescription)],
format ["ACE %1", LLSTRING(Category)],
[0, 10, DEFAULT_DISTANCE, 0],
true
] call CBA_settings_fnc_init;
[
QGVAR(speed),
"SLIDER",
[LSTRING(Speed), LSTRING(SpeedDescription)],
format ["ACE %1", LLSTRING(Category)],
[0, 30, DEFAULT_SPEED, 0],
true
] call CBA_settings_fnc_init;
[
QGVAR(priority),
"LIST",
[LSTRING(Priority), LSTRING(PriorityDescription)],
format ["ACE %1", LLSTRING(Category)],
[[0, 1, 2, 3], ["str_getin_pos_driver", "str_getin_pos_gunn", "str_getin_pos_comm", "str_getin_pos_passenger"], DEFAULT_PRIORITY],
false
] call CBA_settings_fnc_init;
[
QGVAR(enableMenu),
"LIST",
ELSTRING(interact_menu,Category_InteractionMenu),
format ["ACE %1", LLSTRING(Category)],
[
[0,1,2,3],
[
"STR_A3_None",
"STR_rscMenu.hppRscGroupRootMenu_Items_GetIn1",
LSTRING(ChangeSeat),
"str_word_all"
],
3
]
] call CBA_settings_fnc_init;