* Fix bad item replacements and switching to primary weapons
* Update addons/irlight/functions/fnc_initItemContextMenu.sqf
* Update fnc_initItemContextMenu.sqf
* Remove unused funtions
* Various fixes/tweaks
- Added a weapon parameter to `switchAttachmentMode`
- Made `switchPersistentLaser` take pointer switching into account
- Fixed IR light attachments being added to the wrong weapon
* Add tourniquet support for Medical AI
* Stop blocking start
* Renamed states, condensed `canHeal`
* Renamed `tooManyMeds` state
* Update addons/medical_ai/functions/fnc_healUnit.sqf
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* Change states to use singular, add states for autoinjectors & splint
---------
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* Medical AI - AI will remove tourniquets
* Medical AI - Improve tourniquet removal (for #10166) (#10178)
* Fixes & tweaks
- Have AI remove tourniquets ASAP
- Fixed bug where AI would not remove tourniquet, because it didn't have any bandages
- Allowed for more multitasking
* Allow healer to administer morphine if out of bandages
* Remove TODO comment
* Allow AI to remove tourniquets from limbs with no open wounds
* Update addons/medical_ai/functions/fnc_healingLogic.sqf
---------
Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
* Add actions based on animations
* Add setting
* Add ability to set items for users
* Add actions for 1.82 changes
Add actions for backpacks, canisters, entrench tool.
Move items and backpack to WeaponHolder.
* Add RHS 0.4.6 ZIL spare
* Update to new standards
* Handle RHS BTR retread system
* Make init faster: move condition to configClasses
* Fix CUP fake anims
* Refactor
* Rework
* Rename init function
* Decrease number of classes to init
* Fix merge mistake
* Apply suggestions from code review
* Updated code for current mod structure
* Multiple fixes & tweaks
- Made anim setting require a mission restart
- Handle more types of items that can be spawned
- Prioritise adding items to inventory and only drop on ground if no inventory space
- Add more position checks to make certain no valid position are present before stopping
- If 1 item was spawned in, it's considered as success
- Disable RHS' wheel replacement only if ace_repair is loaded
* Update CfgVehicles.hpp
* cache config lookup at preStart
* Fix error
* Add text config entry for progress bar title
* Restructure interactions, improved some locations & added interaction to some missing vehicles
* Reverted preInit change
---------
Co-authored-by: jonpas <jonpas33@gmail.com>
Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* Added fnc_saveLoadout
* Changed to toLower for other languages
* GitHub didn't like editing the file in the browser
* Fix case-sensitive _loadoutIndex
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* Unicode support
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
* setVariable in case no loadouts are saved
* Fix return not happening properly
* Added scripting example
* Update docs/wiki/framework/arsenal-framework.md
---------
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
* Additional parameters
- added parameters to allow changing distances for sounds for each severity.
- added parameter to allow unconscious units to do sounds.
* fix conditio
* Updated header formatting + minor tweaks
---------
Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
* Improve swtichWeaponAttachment
* change interact_SWA to use common_SAM (#10176)
* change interact_SWA to use common_SAM
* Directly call
* exit on bad arg
* Update fnc_switchAttachmentMode.sqf
* Minor optimisations
* Cleanup leftover code, use unit instead of target
---------
Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
* Update addons/interaction/functions/fnc_switchWeaponAttachment.sqf
* Revert some unnecessary changes
* Remove sound, as it was part of the CBA attachment switching & pass missing parameter
* Add sound back, to indicate new attachment
---------
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* Add inheritance & exclusion support
* Update documentation in wiki
* additional check for parent class in findIf
* forEach instead of count
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* condition for children of excluded classes
* touch everything but the params check
* apply configName in same line
* fix param data type for _excludedClasses
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* Update addons/interact_menu/functions/fnc_removeActionFromClass.sqf
Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
* Fix & formatting
* Fix missing _x & headers, remove invalid classes
---------
Co-authored-by: Salluci <69561145+Salluci@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
* First pass at RPG recoil tweaks
* Crank up camera shake when using launcher
---------
Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
* Interaction - Show all possible modes for an attachement
* Move attach & detach actions under item action
* Remove switching from PIP to regular 2D
* Remove attachment name from attach/detach actions
* Fixed typo in variable name
---------
Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
* fix unloading to units with full inventory
* fix belt linking issues
* Enhance workaround
* Use unit instead if magSource is null
---------
Co-authored-by: Salluci <salluci.lovi@gmail.com>
* Recoil code cleanup
* Store recoil values as numbers in config, only `compile` if needed
* Updated header
---------
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
Several medical AI fixes
- Not applying splints if too many medications were taken
- Potential nil for _target
- Setting could add multiple EH, require mission restart