1048 Commits

Author SHA1 Message Date
32c7181766 General - Make type syntax in header more consistent (#10681)
* Fix spelling and casing of types

* Fix spelling and casing

* Fix syntax of multi-types and plural of types

* POSITION -> ARRAY

* Remove implicit nil

* Fix type

* Remove optional type

* Rename BOOLEAN to BOOL

* Add helper script

* Add docs

* Remove optional

* Unify optional argument syntax

* Fix spelling of public functions

* Fix for multiple types

* Update fnc_getDelayItem.sqf

* Apply review findings

* Fix more findings

* Fix type

* Move default value after TYPE

* Do not allow for | in types and allow nested types using < >

* Fix spelling

* Improve validation of argument type for documentation

* Apply suggestions from code review

Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>

* Standardize header syntax

---------

Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
2025-06-14 04:59:19 -07:00
0e9e201f9e Common - Fix FUNC(addActionEventHandler) (#10895)
Fix addActionEventHandler

It wouldn't intercept mouse button inputs when in FFV seats
2025-05-03 17:57:54 -05:00
bb6f885eae Repair - Patch to detect GM Wheel position and selection (#10871)
* initial take at fixing GM wheel detection

* fix spelling misakes in comments
2025-04-24 21:01:02 -05:00
f4f17670e2 General - Use isNotEqualTo for array comparisions (#10857) 2025-04-17 21:03:51 -05:00
f24d1450a4 Common - Add localized texts in check PBOs (#10827)
* Localize warn and error message

* Localize systemChat message

* Sort stringtable
2025-03-31 09:46:01 -05:00
72159ce659 Common - Remove ACEX addons from PBO version check (#10823)
Ignore ACEX addons in version check
2025-03-28 12:42:49 -05:00
d132ef4ec6 Common - Add Regex patterns in PBO check whitelist (#10778)
* Allow Regex patterns in PBO check whitelist

* Add documentation

* Update addons/common/functions/fnc_checkVersionNumber.sqf

Co-authored-by: Jouni Järvinen <rautamiekka@users.noreply.github.com>

* Revert filtering addons inside forEach

* Fix filtering

* Fix spelling

---------

Co-authored-by: Jouni Järvinen <rautamiekka@users.noreply.github.com>
Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
2025-03-22 12:05:22 -05:00
829a0c0212 Various - Fix position types (#10741) 2025-02-11 16:43:30 -06:00
d06d71ee22 Common/Hearing - Small cleanup / sort (#10733)
* Common/Hearing - Small cleanup / sort

* stop the bleeeeding

* actually stop the bleeeding

---------

Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
2025-02-08 16:59:46 -06:00
628683af70 Common - Improve addon mismatch fix message for server admins (#10732) 2025-02-08 19:33:25 -03:00
8eb3312c19 Overpressure - Add to vehicle/static Missile Launchers and Recoilless Guns (#10270)
Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2025-02-08 18:22:12 -03:00
b7d4383826 Update hemtt lints.toml for stringtables (#10725)
* Update hemtt lints.toml for stringtables

* ban debug macros from release
2025-02-06 17:29:53 -06:00
755dad8390 Cleanup all Unnecessary _this in call (#10726) 2025-02-06 17:29:41 -06:00
2bfb226b86 Common - Check extensions hash (#10144)
Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
2025-01-13 17:01:44 -03:00
71125564db Overheating - Fix script error when checking spare barrel temp (#10624) 2025-01-05 01:03:51 -03:00
e6a46ccef1 Common - getDLC should return a number (#10621) 2025-01-04 22:52:59 -03:00
5f34ae8e0a Common - Add getters for object being carried/dragged (#10570) 2024-12-19 17:43:49 -03:00
fe545d452d Hearing - Add Electronic Hearing Protection (#10476)
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
2024-12-18 14:21:08 -03:00
472f9198bf Common - Add setting for compass magnetic declination (#9761)
* Common - Add setting for compass magnetic declination

* cleanup

* Update initSettings.inc.sqf

* Update addons/common/initSettings.inc.sqf

Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>

* Update stringtable.xml

* Slight formatting changes

---------

Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
2024-12-15 14:07:29 -06:00
c698d28c75 Arsenal - Show DLC Requirement Image (#10506)
* arsenal dlc requirement

* fix merge, add file

* Update addons/common/functions/fnc_getDLC.sqf

Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>

* Update addons/common/functions/fnc_getDLC.sqf

Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>

* Update addons/common/functions/fnc_getDLC.sqf

Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>

* sort and fix duplicate

* use getAssetDLCInfo

* Update addons/common/functions/fnc_getDLC.sqf

* params, header

* Update addons/common/functions/fnc_getDLC.sqf

Co-authored-by: Dart <59131299+DartRuffian@users.noreply.github.com>

* Update addons/arsenal/initSettings.inc.sqf

Co-authored-by: Dart <59131299+DartRuffian@users.noreply.github.com>

* Update addons/common/functions/fnc_getDLC.sqf

Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>

* Update addons/common/functions/fnc_getDLC.sqf

Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>

---------

Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: Dart <59131299+DartRuffian@users.noreply.github.com>
2024-11-25 22:42:33 -06:00
f9ac825228 Field Rations - Add setting to disable in Zeus (#10462)
Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
2024-11-21 00:46:30 -03:00
9bca2a799a Common - Allow custom event name for status effects (#10473)
* Common - Allow custom event name for status effects

* Apply suggestions from code review

Co-authored-by: Dart <59131299+DartRuffian@users.noreply.github.com>

---------

Co-authored-by: Dart <59131299+DartRuffian@users.noreply.github.com>
2024-11-16 02:17:32 -08:00
2c9849af7e Common - Add lint suppress to checkFiles (#10510) 2024-11-14 20:46:18 -06:00
539ffb5830 Common - Add ability to check for skill levels for isMedic and isEngineer (#10500)
* Allow checking specific medic/engineer levels

* Fix isEngineer value of true being considered 2

* Update function header
2024-11-14 23:07:37 -03:00
d8b3cda6b3 Common - Improve file checking error messages (#10448)
* Common - Improve file checking error messages

* refactor the damn thing

* same thing for install messages

* missing private

* better compat handling

* Update fnc_checkFiles.sqf

---------

Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
2024-11-14 23:02:45 -03:00
56eaac96ec Common - Fix retrieving the version of an addon when searching for mismatches (#10377)
* Fix version retrieval

* Correct spelling

* Correct spelling 2

* Optimize

---------

Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
2024-10-25 00:35:59 -07:00
d7c84607d9 General - Add private and remove some unused vars (#10371)
* General - Add private and remove some unused vars

* Update fnc_onFired.sqf

* move debug vars inside ifdef

* Update fnc_calculateMuzzleVelocity.sqf

* Update fnc_navigation.sqf

* remove airDensity from calculateMuzzleVelocity

---------

Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
2024-10-21 12:49:33 -05:00
8e794eb970 Common - Add FUNC(getItemReplacements) (#10413)
* Common - Add FUNC(getItemReplacements)

* whoosp

* Update addons/common/functions/fnc_getItemReplacements.sqf

Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>

* return nil if no replacements

---------

Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
2024-10-15 14:57:37 -05:00
3504835c87 General - Use objectParent for vehicle detection (#10397)
* General - Use objectParent for vehicle detection (HEMTT L-S18)

* var_all_caps cleanup
2024-10-15 14:56:52 -05:00
07263046bc Common - Revert #9980 (addToInventory/throwables) (#10018)
Revert #9980
2024-10-15 11:16:13 -05:00
5792eb2ee5 General - Update miscellaneous to use 2.18 commands (#10404)
* Update misc to use 2.18 commands

* Update addons/common/functions/fnc_adjustMagazineAmmo.sqf
2024-10-15 11:12:51 -05:00
a9d4bc3eb7 Common - Switch to CBA_fnc_addBISPlayerEventHandler (#10183)
* Common - Switch to `CBA_fnc_addBISPlayerEventHandler`

* Update XEH_postInit.sqf

---------

Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
2024-10-15 16:11:06 +00:00
fa647c8de3 Common - Use canAdd for FUNC(addToInventory) (#9830)
* Common - Use canAdd for FUNC(addToInventory)

* Use 2.18 syntax and remove useless comment

---------

Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
2024-10-15 11:05:21 -05:00
3e9f6e77eb General - Replaced ace_settingsInitialized wherever possible (#10402)
Replaced ace_settingsInitialized wherever possible
2024-10-15 11:00:18 -05:00
631db9d603 Add some lint annotations (#10372) 2024-10-12 18:53:11 -05:00
1efe823fc2 General - Fix some undefined variables (#10335)
* General - Fix some undefined variables

* cleanup reminders

* Fix arg to addPublicVariableEventHandler
2024-09-27 19:02:56 -05:00
5d4f1cd1c7 General - Optimize some if statements (#10302) 2024-09-11 18:43:31 -03:00
d4ffdd7d89 Common - Add ace_common_fnc_addExplosionEventHandler (#10243)
* Common - Add `ace_common_fnc_addExplosionEventHandler`

* Update addons/hearing/XEH_postInit.sqf

Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>

* make non-public, use netID directly

* Update addons/common/functions/fnc_addExplosionEventHandler.sqf

Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>

* Update fnc_addExplosionEventHandler.sqf

* Update addons/hearing/XEH_postInit.sqf

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

---------

Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
2024-09-07 18:04:37 -05:00
f090c71126 General - Fix Command Case (#10286)
* run 'hemtt utils sqf case'

* fix config as well

* fix event casing

* Update addons/towing/functions/fnc_attachRopePFH.sqf

Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>

* Update addons/refuel/functions/fnc_startNozzleInHandsPFH.sqf

Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>

* Update addons/rearm/functions/fnc_takeSuccess.sqf

Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>

* Update addons/rearm/functions/fnc_grabAmmo.sqf

Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>

* Update addons/medical_treatment/initSettings.inc.sqf

Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>

* Update addons/captives/functions/fnc_setSurrendered.sqf

Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>

* Update addons/captives/functions/fnc_handleZeusDisplayChanged.sqf

Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>

* Update addons/captives/functions/fnc_handlePlayerChanged.sqf

Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>

* Update addons/captives/functions/fnc_handlePlayerChanged.sqf

Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>

* Update addons/arsenal/functions/fnc_onArsenalOpen.sqf

Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>

* Update addons/arsenal/functions/fnc_onArsenalClose.sqf

Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>

* Update addons/spectator/functions/fnc_ui.sqf

* Update addons/ui/XEH_clientInit.sqf

* Update addons/ui/functions/fnc_setElements.sqf

* Update addons/fcs/functions/fnc_getAngle.sqf

* Update addons/fcs/functions/fnc_getAngle.sqf

* Update addons/fcs/functions/fnc_getAngle.sqf

* Update addons/captives/functions/fnc_handleZeusDisplayChanged.sqf

Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>

* Update addons/captives/functions/fnc_setHandcuffed.sqf

Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>

* Update addons/captives/functions/fnc_setHandcuffed.sqf

Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>

* Update addons/captives/functions/fnc_setSurrendered.sqf

Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>

* Update addons/common/functions/fnc_displayTextStructured.sqf

Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>

* Update addons/medical_treatment/initSettings.inc.sqf

Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>

* Update addons/medical_treatment/initSettings.inc.sqf

Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>

* Update addons/medical_treatment/initSettings.inc.sqf

Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>

---------

Co-authored-by: PabstMirror <pabstmirror@gmail.com>
Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
2024-09-03 11:52:33 -05:00
da73cf979d Common - Make FUNC(getVehicleIcon) check for strings without the .paa extension (#10257)
* added fallback for icons without .paa post-fix

* Make sure it's at least a valid path before we spend time searching

* Revert "Make sure it's at least a valid path before we spend time searching"

This reverts commit 2d7a9454e3.

* Added checking for empty `_vehicleValue` strings

Update addons/common/functions/fnc_getVehicleIcon.sqf

Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>

---------

Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
2024-08-26 11:31:25 -05:00
17f2de4ec1 General - Fix some format args/strings (#10251) 2024-08-24 14:55:45 -03:00
afde7264ba UI - Add keybind to hide all hud elements (#10227)
* UI - Add keybind to hide all hud elements

* Handle advFatigue stamina bar

* Update stringtable.xml

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

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

---------

Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
2024-08-22 12:13:54 -05:00
fcfb2121be Common - Use lifeState check in FUNC(isAwake) (#9646)
Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
2024-08-17 12:59:26 -03:00
043b3907fe Extensions - Rust (#9015)
Co-authored-by: Pepijn Holster <pgaholster@gmail.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
Co-authored-by: LorenLuke <LukeLLL@aol.com>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
2024-08-17 12:50:38 -03:00
3ff635f82d Common - Use hashmap for canInteractWith check (#10189) 2024-08-11 20:29:33 -03:00
b7f48a912f IR Light - Fix bad item replacements and switching to primary weapons (#10119)
* 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
2024-08-11 08:08:50 -07:00
4db0f7de24 Interaction - Improve FUNC(switchWeaponAttachment) (#10145)
* 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>
2024-08-09 14:08:07 -07:00
7838dea543 Common - Improve persistent lights/lasers (#10118)
* Improve persistent lasers

* Update addons/common/functions/fnc_switchPersistentLaser.sqf

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

* Fix inventory changes toggling laser, removed alignment code

* Update addons/common/functions/fnc_switchPersistentLaser.sqf

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

* Added API for setting weapon lights/lasers

* Fix undefined variables

---------

Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2024-08-08 01:01:39 -07:00
6a25e9365a Safemode - Refactor (#10111)
* Refactor safemode

* Further improvements and fixes

* Update XEH_postInit.sqf

* Don't allow binoculars to be set to safe

* Add API for getting weapon safety status

* Update fnc_jamWeapon.sqf

* Added doc

* Update fnc_playChangeFiremodeSound.sqf

* Update addons/overheating/functions/fnc_jamWeapon.sqf

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

* Update addons/weaponselect/functions/fnc_selectWeaponMode.sqf

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

---------

Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2024-08-02 13:59:18 +02:00
ba22c407e3 Common - Add ace_common_fnc_switchAttachmentMode (#10135)
* Common - Add `ace_common_fnc_switchAttachmentMode`

* Update addons/common/functions/fnc_switchAttachmentMode.sqf

* Update addons/common/functions/fnc_switchAttachmentMode.sqf

* playSound only for ACE_player

Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>

---------

Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
2024-07-27 19:15:28 +02:00