ACE3/docs/wiki/framework
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-framework.md Advanced Ballistics - wiki/framework update 2017-11-23 14:36:36 +01:00
advanced-fatigue-framework.md Update docs and stringtable.xml 2017-11-15 12:22:56 -05:00
advanced-throwing-framework.md Replace CPP highlighting with SQF highlighting (#8656) 2021-10-31 14:48:47 -05:00
arsenal-framework.md Arsenal - Add/Fix/Improve/Change numerous aspects (#9040) 2023-07-21 21:25:25 +03:00
atragmx-framework.md Consitently capitalize first letters of wiki titles (#6615) 2018-10-05 15:20:50 +02:00
cargo-framework.md Docs/Cargo - Include missing "unload type" param (#9010) 2022-09-06 15:20:44 -05:00
checkPBOs-framework.md fix wiki suggesting activatedAddon to export addon list 2017-10-26 09:05:30 +02:00
common-framework.md Common - Add keybind and function to unload unit's weapon/muzzle (#8735) 2022-05-18 13:07:47 -05:00
cookoff-framework.md Cookoff - Removed references to unused ignoreTurret parameter 2022-07-14 21:27:07 +01:00
crew-served-weapons-framework.md Overhaul CSW docs (#8206) 2021-04-12 08:52:53 +02:00
disposables-framework.md Apply suggestions from code review 2019-10-17 13:28:05 -05:00
dragging-framework.md Dragging - Add more objects configs (#8104) 2021-07-23 16:11:57 +02:00
events-framework.md Explosives - Add "ace_explosives_setup" CBA Event (#9197) 2023-06-20 13:36:57 -06:00
explosives-framework.md Explosives - Add getVar to disable setShotParents (#9190) 2023-05-03 11:55:02 -05:00
fastroping-framework.md Fastroping - Remove FRIES on vehicle deletion / adjust Ghosthawk Fries (#6932) 2019-04-25 13:31:36 -05:00
field-rations-framework.md Field Rations - Add arsenal category (#9221) 2023-07-07 07:14:35 +03:00
fire-framework.md Add Vehicle Damage (ACE2 port) & Enhance Cook-Off (#7565) 2021-10-14 10:49:27 -05:00
fortify-framework.md Fortify - Categories (#9167) 2023-03-18 19:23:20 -05:00
frag-framework.md Add Pentolite Gurney constant to wiki (#5413) 2017-08-09 11:34:35 +01:00
goggles-framework.md Fix some event names on wiki (#5254) 2017-06-08 14:31:27 -05:00
grenades-framework.md Add support for N-bangs (#6848) 2019-05-11 23:43:32 -05:00
gunbag-framework.md Move gunbag type from inheritance to config property (#7022) 2019-06-04 20:00:55 -05:00
headless-framework.md Replace CPP highlighting with SQF highlighting (#8656) 2021-10-31 14:48:47 -05:00
hearing-framework.md Add version information to most wiki feature and framework pages (#4303) 2016-08-30 15:49:04 +02:00
hunterkiller-framework.md Update hunterkiller-framework.md (#9026) 2022-09-08 21:20:11 +02:00
huntIR-framework.md Add version information to most wiki feature and framework pages (#4303) 2016-08-30 15:49:04 +02:00
index.md Documentation - Only split the wanted ul into columns 2023-05-01 17:25:29 +02:00
interactionMenu-framework.md Replace CPP highlighting with SQF highlighting (#8656) 2021-10-31 14:48:47 -05:00
javelin-framework.md Add version information to most wiki feature and framework pages (#4303) 2016-08-30 15:49:04 +02:00
map-framework.md Map wiki fix (#5446) 2017-08-22 20:33:26 +02:00
medical-framework.md Medical - Disable blood spurts for fire, burn and drown damage types (#9001) 2022-08-25 12:05:50 -05:00
medical-treatment-framework.md Medical - Add arsenal category (#9220) 2023-07-07 07:14:44 +03:00
missile-guidance-framework.md Fix typos in missile guidance framework wiki page (#5999) 2018-01-01 10:51:59 -06:00
missionmodules-framework.md Add wiki ACEX sections and merge Mission Makers and Framework sections (#4307) 2016-09-08 21:19:07 +02:00
modules-framework.md Add module documentation (#4297) 2016-11-25 00:11:27 +01:00
nightvision-framework.md Nightvision - Enable setting NVG effects scale mid-mission (#6627) 2019-12-11 10:38:43 -06:00
overheating-framework.md Overheating - Add barrel mass config value (#8906) 2022-05-11 18:21:05 -05:00
overpressure-framework.md Overpressure - Fix backblast originating at projectile (#8985) 2022-08-01 18:32:02 +01:00
parachute-framework.md Parachute - Add failure chance (#8226) 2021-04-30 22:48:02 -05:00
pylons-framework.md Add pylon whitelist option (#6080) 2018-01-28 15:38:48 -06:00
rearm-framework.md Rearm - Improve framework documentation (#9114) 2023-03-05 18:12:58 -06:00
refuel-framework.md Refuel - Improve framework documentation (#9122) 2023-03-05 18:12:38 -06:00
reloadlaunchers-framework.md Fix some event names on wiki (#5254) 2017-06-08 14:31:27 -05:00
repair-framework.md Update repair framework docs (#9123) 2023-03-05 18:12:23 -06:00
respawn-framework.md Replace CPP highlighting with SQF highlighting (#8656) 2021-10-31 14:48:47 -05:00
scopes-framework.md Scopes - wiki/framework update (#5799) 2017-11-22 11:28:54 +01:00
settings-framework.md Convert ACE_settings to CBA_settings (#4895) 2017-11-11 20:21:55 +01:00
sitting-framework.md Documentation - Merge ACEX (#8526) 2021-10-21 11:27:25 -05:00
slideshow-framework.md Slideshow - Add support for texture selections (#8702) 2021-11-28 02:11:46 +01:00
spectator-framework.md Replace CPP highlighting with SQF highlighting (#8656) 2021-10-31 14:48:47 -05:00
switchunits-framework.md Replace CPP highlighting with SQF highlighting (#8656) 2021-10-31 14:48:47 -05:00
tagging-framework.md Tagging - Add support for mission Tags (#7710) 2020-06-19 10:36:47 -05:00
trenches-framework.md Trenches - Add modded Entrenching Tools support (#8999) 2022-09-05 00:21:29 +02:00
ui-framework.md Add version information to most wiki feature and framework pages (#4303) 2016-08-30 15:49:04 +02:00
vehicledamage-framework.md Documentation - Improve documentation for Rearm & Vehicle Damage (#8588) 2021-11-18 20:26:31 +01:00
vehiclelock-framework.md Replace CPP highlighting with SQF highlighting (#8656) 2021-10-31 14:48:47 -05:00
vehicles-framework.md Vehicles - Add configurable engine startup delay (#8327) 2021-07-27 12:47:07 -05:00
viewports-framework.md Documentation - Fix Viewports versions (#8919) 2022-05-22 22:51:36 +02:00
weather-framework.md Documentation - Weather module update (#5748) 2017-12-20 14:20:20 -06:00
winddeflection-framework.md Add wiki ACEX sections and merge Mission Makers and Framework sections (#4307) 2016-09-08 21:19:07 +02:00
wirecutter-framework.md Logistics Wirecutter - Add documentation (#9248) 2023-07-09 21:14:54 +03:00
xm157-framework.md XM157 (NGSW-FC Smart Scope) Framework (#8897) 2022-09-01 13:44:19 -05:00