ACE3/addons
johnb432 c8404f496e
Arsenal - Add/Fix/Improve/Change numerous aspects (#9040)
* Arsenal update

* Fixes

* Update fnc_onSelChangedLeft.sqf

* Update fnc_updateUniqueItemsList.sqf

* Header fixes

* Fix for defines.hpp

Co-authored-by: Dystopian <sddex@ya.ru>

* Moved fnc_baseWeapon, filtered invalid items

* Update addons/arsenal/functions/fnc_scanConfig.sqf

Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>

* Fixes and tweaks

- Sorting is guaranteed to give a fixed order
- Dog tags no longer throw errors when reloading the ACE arsenal mission when you had some saved in your loadout before quitting the last time you played.

* Cleanup, bug fixes and additions

- Added the ability to add items from "CfgMagazines" into the "Misc. items" or custom tabs.
- Added "baseWeapon" class support for weapon attachments. If a weapon attachment has the config property "baseWeapon" defined, it will take that item and show that in the arsenal.
- Added stronger filtering on item scopes (scope > 0 at least for every item)
- Added "descending" (default, as it is now) and "ascending" sort order as a drop down menu,
- Unique backpacks in containers can now be removed with either the "-" or "clear all items" button.
- When sorting by a number, 2 decimal points have been added, so that when you sort by weight it returns the correct order.

* More fixes and tweaks

- Converted the arsenal to partially work with hashmaps instead of arrays (for configItems and virtualItems, currentItems is still an array).
- Because of the above, performance of FUNC(addVirtualItems) and FUNC(removeVirtualItems) has improved immensely.
- Sorting now caches results, reducing repeated sorting times drastically.
- CBA disposable launchers are handled differently now: Within the arsenal, you can change weapon attachments on disposable launchers, but you can't change their magazines (primary or secondary). Item info on the right and the stats show correct information.
- FUNC(addSort) now checks if the new sorting method already exists and doesn't add it if it does.
- FUNC(removeSort) now exists. You can't remove the default sort type (alphabetically) to avoid problems with the arsenal.
- Both FUNC(addStat) and FUNC(compileStats) actually taken priority into account now. Because of that priority on several stats needed to be tweaked.
- FUNC(removeStat) ensures that there are no gaps within the stat array (so if there is an empty spot in the stats page, it's because there is a stat, but the condition for it being shown hasn't been met).

* Update fnc_replaceUniqueItemsLoadout.sqf

* Update fnc_onSelChangedLeft.sqf

* Update fnc_scanConfig.sqf

* Update docs/wiki/framework/arsenal-framework.md

Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>

* Minor cleanup

* Baseweapon filtering

* Improvements + better unique items support

* Update fnc_fillRightPanel.sqf

* Update fnc_onSelChangedLeft.sqf

Fixed: Switching between weapons with incompatible primary magazines while a compatible secondary magazine is loaded doesn't equip the new weapon's primary magazine.

* Update addons/common/functions/fnc_uniqueUnitItems.sqf

Co-authored-by: PabstMirror <pabstmirror@gmail.com>

* undefined variable

Co-authored-by: PabstMirror <pabstmirror@gmail.com>

* fix undefined loadout var

* Update fnc_fillLoadoutsList.sqf

---------

Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 21:25:25 +03:00
..
advanced_ballistics HEMTT v10 Compatibility (#9105) 2023-02-01 23:28:55 -06:00
advanced_fatigue Adv Fatigue - Make stamina penalty for weapon raised/ready scale with weapon inertia (#8669) 2023-06-27 19:40:07 +03:00
advanced_throwing Translations - Russian (#9095) 2022-12-03 13:57:43 -06:00
ai Cleanup - Trim all trailing whitespace (#8651) 2021-10-30 16:42:03 -05:00
aircraft Aircraft - Drone Tools (#8276) 2022-05-05 11:07:54 -05:00
apl Trenches - Add camouflage action using surfaceTexture (#8935) 2022-07-15 15:42:00 +01:00
arsenal Arsenal - Add/Fix/Improve/Change numerous aspects (#9040) 2023-07-21 21:25:25 +03:00
artillerytables HEMTT v10 Compatibility (#9105) 2023-02-01 23:28:55 -06:00
atragmx Ballistics - Add 12.7x108mm APDS AB values (#9191) 2023-06-22 16:01:09 +03:00
attach Localization - Improve Simplified Chinese (#8781) 2022-02-14 15:57:50 -06:00
backpacks General - Change object config lookups to configOf (#8795) 2022-03-08 21:41:21 -06:00
ballistics Arsenal - Add/Fix/Improve/Change numerous aspects (#9040) 2023-07-21 21:25:25 +03:00
captives Korean Translation Improved (#9164) 2023-03-10 19:17:36 -06:00
cargo Docs - Add Grim to maintainers (#9223) 2023-06-19 16:31:17 +03:00
casings Update Spanish translation (#9203) 2023-05-29 18:22:37 -05:00
chemlights Korean Translation Improved (#9164) 2023-03-10 19:17:36 -06:00
common Arsenal - Add/Fix/Improve/Change numerous aspects (#9040) 2023-07-21 21:25:25 +03:00
compat_ws Tools - HEMTT preprocess is now an object (#9275) 2023-07-21 11:23:03 -05:00
concertina_wire Add images and icon to concertina wire. (#9071) 2022-10-13 12:13:20 -05:00
cookoff Cookoff - Improve destroying vehicle post cookoff (#9029) 2023-06-25 01:06:26 -03:00
csw Docs - Add Grim to maintainers (#9223) 2023-06-19 16:31:17 +03:00
dagr Translations - Russian (#9095) 2022-12-03 13:57:43 -06:00
disarming HEMTT v10 Compatibility (#9105) 2023-02-01 23:28:55 -06:00
disposable Korean Translation Improved (#9164) 2023-03-10 19:17:36 -06:00
dogtags Arsenal - Add/Fix/Improve/Change numerous aspects (#9040) 2023-07-21 21:25:25 +03:00
dragging Dragging - Add limping check to carrier and improve limping check for target unit (#9251) 2023-07-10 06:45:53 +03:00
dragon Tools - Add dummy rtms to make ace buildable by current mikro tools (#9135) 2023-01-28 14:13:45 -06:00
explosives Explosives - Add "ace_explosives_setup" CBA Event (#9197) 2023-06-20 13:36:57 -06:00
fastroping HEMTT v10 Compatibility (#9105) 2023-02-01 23:28:55 -06:00
fcs Translations - Russian (#9095) 2022-12-03 13:57:43 -06:00
field_rations Field Rations - Add arsenal category (#9221) 2023-07-07 07:14:35 +03:00
finger Update Spanish translation (#9203) 2023-05-29 18:22:37 -05:00
fire Fire - Fix fire spread to invincible units and not being able to be put on fire by proximity if multiple units are on fire (#8632) 2023-06-24 05:34:31 +03:00
flashlights Korean Translation Improved (#9164) 2023-03-10 19:17:36 -06:00
flashsuppressors Korean Translation 100% done (#8899) 2022-05-09 20:28:28 -05:00
fonts Update contribution documents (#8382) 2021-08-16 20:17:56 +01:00
fortify Update Spanish translation (#9203) 2023-05-29 18:22:37 -05:00
frag Frag/Medical Damage - Treat shrapnel as grenade damage (#9218) 2023-06-22 04:06:52 -03:00
gestures Tools - Add dummy rtms to make ace buildable by current mikro tools (#9135) 2023-01-28 14:13:45 -06:00
gforces Arsenal - Add/Fix/Improve/Change numerous aspects (#9040) 2023-07-21 21:25:25 +03:00
goggles HEMTT v10 Compatibility (#9105) 2023-02-01 23:28:55 -06:00
grenades Korean Translation Improved (#9164) 2023-03-10 19:17:36 -06:00
gunbag Gunbag - Fix arsenal caching conflicting with CBA_fnc_setLoadout (#9250) 2023-07-10 00:13:43 +03:00
headless Update Spanish translation (#9203) 2023-05-29 18:22:37 -05:00
hearing Arsenal - Add/Fix/Improve/Change numerous aspects (#9040) 2023-07-21 21:25:25 +03:00
hellfire Korean Translation 100% done (#8899) 2022-05-09 20:28:28 -05:00
hitreactions Translations - Russian (#9095) 2022-12-03 13:57:43 -06:00
hot HEMTT v10 Compatibility (#9105) 2023-02-01 23:28:55 -06:00
hunterkiller Update Spanish translation (#9203) 2023-05-29 18:22:37 -05:00
huntir Korean Translation Improved (#9164) 2023-03-10 19:17:36 -06:00
intelitems Intel Items - Change scope for better Arsenal filtering (#9228) 2023-06-27 10:46:56 +03:00
interact_menu Forbit use of (optional) in function headers, always require a value 2023-05-01 17:33:07 +02:00
interaction Interaction - Add actions to access and allow carrying inventory holders (#6029) 2023-07-10 05:49:37 +03:00
inventory Korean Translation 100% done (#8899) 2022-05-09 20:28:28 -05:00
javelin Javelin - Fix weapon being in top-attack when loading AP magazine (#9161) 2023-06-28 12:55:45 +02:00
kestrel4500 HEMTT v10 Compatibility (#9105) 2023-02-01 23:28:55 -06:00
killtracker Update Spanish translation (#9203) 2023-05-29 18:22:37 -05:00
laser Update Spanish translation (#9203) 2023-05-29 18:22:37 -05:00
laserpointer Arsenal - Add/Fix/Improve/Change numerous aspects (#9040) 2023-07-21 21:25:25 +03:00
logistics_rope Update Spanish translation (#9203) 2023-05-29 18:22:37 -05:00
logistics_uavbattery Korean Translation 100% done (#8899) 2022-05-09 20:28:28 -05:00
logistics_wirecutter Logistics Wirecutter - Add modded class support (#9235) 2023-07-09 19:37:30 +03:00
magazinerepack Update Spanish translation (#9203) 2023-05-29 18:22:37 -05:00
main Optionals - Load dynamically based on presence of mod (__has_include) (#9116) 2023-04-30 16:53:43 -05:00
map Use function documentation script (#6897) 2023-04-30 23:03:35 +02:00
map_gestures Translations - Russian (#9095) 2022-12-03 13:57:43 -06:00
maptools Use polyline marker for straight lines (#9174) 2023-04-03 12:18:47 -05:00
marker_flags Update Spanish translation (#9203) 2023-05-29 18:22:37 -05:00
markers Update Spanish translation (#9203) 2023-05-29 18:22:37 -05:00
maverick HEMTT v10 Compatibility (#9105) 2023-02-01 23:28:55 -06:00
medical Medical - Handle wound hashmaps deserialized as CBA_namespaces (#9245) 2023-07-09 17:33:51 +03:00
medical_ai Medical - Change medical to use hashmaps for wound storage (#8926) 2023-06-24 08:11:56 +03:00
medical_blood Medical Blood - Add source of blooddrop to events (#9102) 2023-02-01 05:03:44 -06:00
medical_damage Medical - Change medical to use hashmaps for wound storage (#8926) 2023-06-24 08:11:56 +03:00
medical_engine Medical Engine - Ignore Reflector Hitpoints (#9131) 2023-06-27 19:41:10 +03:00
medical_feedback Update Spanish translation (#9203) 2023-05-29 18:22:37 -05:00
medical_gui Medical GUI - Add setting to show Damage (#8444) 2023-07-01 01:37:08 +03:00
medical_statemachine Docs - Add Grim to maintainers (#9223) 2023-06-19 16:31:17 +03:00
medical_status Medical - Change medical to use hashmaps for wound storage (#8926) 2023-06-24 08:11:56 +03:00
medical_treatment Medical Treatment - Remove early exit when stitching with sutures (#9243) 2023-07-07 08:19:45 +03:00
medical_vitals Medical Vitals - Add event to vitals loop (#8891) 2022-05-03 18:04:58 -05:00
metis change name (#8805) 2022-01-30 11:54:30 -06:00
microdagr Korean Translation Improved (#9164) 2023-03-10 19:17:36 -06:00
minedetector Korean Translation 100% done (#8899) 2022-05-09 20:28:28 -05:00
missileguidance Missile Guidance - Use weaponsInfo to optimize fire-mode selection (#8879) 2022-08-29 09:33:58 +01:00
missionmodules Translations - Russian (#9095) 2022-12-03 13:57:43 -06:00
mk6mortar Mk6 Mortar - Fix AI usage (#9258) 2023-07-13 19:54:39 +03:00
modules General - Change object config lookups to configOf (#8795) 2022-03-08 21:41:21 -06:00
movement Cleanup - Trim all trailing whitespace (#8651) 2021-10-30 16:42:03 -05:00
mx2a HEMTT v10 Compatibility (#9105) 2023-02-01 23:28:55 -06:00
nametags Update Spanish translation (#9203) 2023-05-29 18:22:37 -05:00
nightvision Update Spanish translation (#9203) 2023-05-29 18:22:37 -05:00
nlaw Translations - Russian (#9095) 2022-12-03 13:57:43 -06:00
noidle Update contribution documents (#8382) 2021-08-16 20:17:56 +01:00
noradio Update Spanish translation (#9203) 2023-05-29 18:22:37 -05:00
norearm Update contribution documents (#8382) 2021-08-16 20:17:56 +01:00
novehicleclanlogo Update Spanish translation (#9203) 2023-05-29 18:22:37 -05:00
optics Korean Translation Improved (#9164) 2023-03-10 19:17:36 -06:00
optionsmenu Translations - Russian (#9095) 2022-12-03 13:57:43 -06:00
overheating Update Spanish translation (#9203) 2023-05-29 18:22:37 -05:00
overpressure Overpressure - Fix invulnerable units taking backblast damage when firing launchers (#9256) 2023-07-14 22:33:54 +03:00
parachute Update Spanish translation (#9203) 2023-05-29 18:22:37 -05:00
pylons HEMTT v10 Compatibility (#9105) 2023-02-01 23:28:55 -06:00
quickmount Quickmount - Fix teleport bug in UAV through change seat (#9065) 2023-01-31 17:12:19 -06:00
rangecard HEMTT v10 Compatibility (#9105) 2023-02-01 23:28:55 -06:00
realisticnames Update Spanish translation (#9203) 2023-05-29 18:22:37 -05:00
realisticweights Ballistics/Realistic Weights - Improve LMG_Mk200_F (#8811) 2022-03-03 17:19:10 -06:00
rearm Forbit use of (optional) in function headers, always require a value 2023-05-01 17:33:07 +02:00
recoil HEMTT v10 Compatibility (#9105) 2023-02-01 23:28:55 -06:00
refuel Update Spanish translation (#9203) 2023-05-29 18:22:37 -05:00
reload Translations - Russian (#9095) 2022-12-03 13:57:43 -06:00
reloadlaunchers Korean Translation 100% done (#8899) 2022-05-09 20:28:28 -05:00
repair Repair - Make Full Repair Time dependent on vehicle damage (#8417) 2023-07-06 06:52:04 +03:00
respawn Respawn - fix script error (#9166) 2023-03-20 13:18:57 -05:00
safemode Safety - Add optional flag to hide hint (#9086) 2022-12-03 13:57:16 -06:00
sandbag Localization - Improve Simplified Chinese (#8781) 2022-02-14 15:57:50 -06:00
scopes Scopes - Add tool to diagnose scope height (#9152) 2023-04-30 16:57:34 -05:00
sitting Korean Translation 100% done (#8899) 2022-05-09 20:28:28 -05:00
slideshow Update Spanish translation (#9203) 2023-05-29 18:22:37 -05:00
smallarms Localization - Improve Simplified Chinese (#8781) 2022-02-14 15:57:50 -06:00
spectator HEMTT v10 Compatibility (#9105) 2023-02-01 23:28:55 -06:00
spottingscope HEMTT v10 Compatibility (#9105) 2023-02-01 23:28:55 -06:00
switchunits HEMTT v10 Compatibility (#9105) 2023-02-01 23:28:55 -06:00
tacticalladder Translations - Add and Improve Missing Japanese (#8924) 2022-05-27 14:06:51 -05:00
tagging Update Spanish translation (#9203) 2023-05-29 18:22:37 -05:00
thermals Update contribution documents (#8382) 2021-08-16 20:17:56 +01:00
towing Update Spanish translation (#9203) 2023-05-29 18:22:37 -05:00
trenches Update Spanish translation (#9203) 2023-05-29 18:22:37 -05:00
tripod Cleanup - Trim all trailing whitespace (#8651) 2021-10-30 16:42:03 -05:00
ui Update Spanish translation (#9203) 2023-05-29 18:22:37 -05:00
vector HEMTT v10 Compatibility (#9105) 2023-02-01 23:28:55 -06:00
vehicle_damage Vehicle Damage - Fix incoming damage from blank hit selection resulting in absurd damage values (#9194) 2023-06-28 13:39:33 +03:00
vehiclelock Translations - Russian (#9095) 2022-12-03 13:57:43 -06:00
vehicles Vehicles - Add Resume/Set functionality to speed control (#8967) 2023-06-28 17:17:14 +03:00
viewdistance Update Spanish translation (#9203) 2023-05-29 18:22:37 -05:00
viewports Update Spanish translation (#9203) 2023-05-29 18:22:37 -05:00
viewrestriction Update Spanish translation (#9203) 2023-05-29 18:22:37 -05:00
volume Update Spanish translation (#9203) 2023-05-29 18:22:37 -05:00
weaponselect Weapon Select - Remove vehicle smoke selection key (#9144) 2023-02-09 13:17:24 -06:00
weather HEMTT v10 Compatibility (#9105) 2023-02-01 23:28:55 -06:00
winddeflection Localization - Improve Simplified Chinese (#8781) 2022-02-14 15:57:50 -06:00
xm157 Scopes - Add tool to diagnose scope height (#9152) 2023-04-30 16:57:34 -05:00
yardage450 HEMTT v10 Compatibility (#9105) 2023-02-01 23:28:55 -06:00
zeus Update Spanish translation (#9203) 2023-05-29 18:22:37 -05:00