133 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
435f434581 General - Replace CBA_fnc_canAddItem with canAdd (#10787)
Replace `CBA_fnc_canAddItem` with `canAdd`
2025-03-09 19:07:03 -05: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
9010fe5d67 Hearing - Tweak EHP effects, add 🦆ing setting (#10686)
Tweak EHP effects, add setting
2025-01-28 10:21:58 -06:00
e493eb374f Hearing - Add hearing damage factor attribute to CfgAmmo (#10617) 2025-01-04 16:00:28 -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
e9417802dd Hearing - Fix typo (#10439)
* Update fnc_hasEarPlugsIn.sqf

* Fix more typos
2024-10-20 16:37:18 -05:00
3f4a1d4f23 Hearing - Use SlotItemChanged event (#10040)
* Use `SlotItemChanged`

* Update script_component.hpp

* Use `addPlayerEH`

* Use `LINKFUNC`

* switch to `CBA_fnc_addBISPlayerEventHandler`
2024-10-15 10:56:43 -05:00
ee2d6bd7b9 Hearing - Tone down strength of explosion hearing damage (#10409)
* use sqrt of _maxDistance

* divide maxDistance by 2 instead
2024-10-14 16:45:44 -05:00
d9d3e95a17 Hearing - Add deafness coefficient for explosions (#10408)
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
2024-10-13 14:07:28 +00:00
fbcfc24e2a Hearing - Ignore explosions with no hit (#10369) 2024-10-07 14:55:40 -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
72f230a3a2 Hearing - Fix explosions not affecting hearing (#10002)
* Have explosions affect hearing

* Update fnc_explosion.sqf

* Update XEH_postInit.sqf

* Update addons/hearing/functions/fnc_explosion.sqf

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

* Update fnc_explosion.sqf

* Make EH local

* Use sound entry instead

---------

Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2024-08-12 06:45:03 -07:00
d30c01aee9 Hearing - prevent audio from stacking when tabbed out (#10048) 2024-05-30 01:34:19 -07:00
98f4b51c52 Hearing - Fix deafness reducing when game is paused (#10039)
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
2024-05-29 18:55:17 +00:00
e535988479 Hearing - Code cleanup (#10041)
* Hearing cleanup

* Update fnc_updateHearingProtection.sqf

* Fixes + tweaks

* Update initSettings.inc.sqf

* Update fnc_removeEarplugs.sqf
2024-05-29 10:01:39 -07:00
dc3753893f Hearing - Improve and cleanup code (#9933)
Co-authored-by: Jouni Järvinen <rautamiekka@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
2024-05-24 20:05:19 -03:00
6e32fc1144 Hearing - Add earplugs only if not present (#9987)
Only add earplugs if not present
2024-04-28 09:04:56 -07:00
5130a22008 Hearing - Add setting to add earplugs to all units (#9935)
Add option to add earplugs to all units
2024-04-10 08:23:50 -03:00
8f46ffd8d5 General - Change count to forEach where appropriate (#9890)
count -> forEach

Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
2024-04-04 08:15:26 -03:00
50978efa46 Hearing - Removed remoteExec & added microoptimisations (#9853)
* Removed remoteExec. added microoptimisations

* Update addons/hearing/XEH_preInit.sqf

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

* move EH to after !hasInterface

---------

Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2024-03-21 20:26:46 +01:00
1e404cf85b General - SQF Improvements (#9698)
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
2024-02-04 14:50:24 -03:00
742626ff1a General - Relative script_component.hpp includes (#9378)
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-09-12 20:58:10 +02:00
eb53e7a2fe Tools - document_functions.py: handle header sub indexs for arguments (#9303)
* tools - handle header sub indexs for arguements

* convert remaining

* Update coding-guidelines.md
2023-08-08 22:51:20 -05:00
7bc6fdfa66 Cleanup - Trim all trailing whitespace (#8651) 2021-10-30 16:42:03 -05:00
69c3d2bb65 Add Weapon Attachments interaction (#7706)
* Add Weapon Attachments interaction

* Apply recommended changes

* Format addPEH

Co-authored-by: mharis001 <34453221+mharis001@users.noreply.github.com>

* Remove toLower

* Update required CBA version

* Rename category to Accessories

* Change setting var name

* Add setting description

* Fix notification size

* Optimize with new commands

Co-authored-by: mharis001 <34453221+mharis001@users.noreply.github.com>
2021-03-04 11:43:11 -06:00
75f7ed7532 Utilize isNotEqualTo (#7929)
* Utilize isNotEqualTo

* undo changes to some files

* redo some changes, fix based on @Vdauphin 's comment

* fix validator issues

Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2021-02-27 11:05:05 -06:00
b151148542 Replace canAdd with CBA_fnc_canAddItem (#8012) 2021-02-27 10:26:12 -06:00
e8693c8db9 Various - Use configOf command for faster lookup (#8100)
* configOf

* replace some use of CBA_fnc_getObjectConfig
2021-02-18 12:58:08 -06:00
e2157ac4c2 Hearing - Fix for "MrapAttenuation" (#7664)
* Hearing: MRAP Attenuation Fix

Hearing: MRAP Attenuation Fix

* Update addons/hearing/functions/fnc_updatePlayerVehAttenuation.sqf

Co-Authored-By: PabstMirror <pabstmirror@gmail.com>

Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2020-04-30 20:01:34 -05:00
028a0cb3f0 Changed: Scripted calls to putInEarPlugs/joinTeam won't show hint (#7400)
* Added ability to suppress hint message

* Adjustments based on request
2020-01-09 14:40:34 -06:00
00a91610ea Only play repatitive sounds when game is focused (#7265) 2019-11-16 12:42:15 -06:00
564fc8aa99 Trivial code fixes (#6858) 2019-03-10 21:42:08 -05:00
e2ac18a05d [WIP] Fix script errors reporting wrong line numbers (#6407)
* advanced_ballistics

* advanced_fatigue

* advanced_throwing

* ai

* aircraft

* arsenal

* atragmx

* attach

* backpacks

* ballistics

* captives

* cargo

* chemlights

* common

* concertina_wire

* cookoff

* dagr

* disarming

* disposable

* dogtags

* dragging

* explosives

* fastroping

* fcs

* finger

* frag

* gestures

* gforces

* goggles

* grenades

* gunbag

* hearing

* hitreactions

* huntir

* interact_menu

* interaction

* inventory

* kestrel4500

* laser

* laserpointer

* logistics_uavbattery

* logistics_wirecutter

* magazinerepack

* map

* map_gestures

* maptools

* markers

* medical

* medical_ai

* medical_blood

* medical_menu

* microdagr

* minedetector

* missileguidance

* missionmodules

* mk6mortar

* modules

* movement

* nametags

* nightvision

* nlaw

* optics

* optionsmenu

* overheating

* overpressure

* parachute

* pylons

* quickmount

* rangecard

* rearm

* recoil

* refuel

* reload

* reloadlaunchers

* repair

* respawn

* safemode

* sandbag

* scopes

* slideshow

* spectator

* spottingscope

* switchunits

* tacticalladder

* tagging

* trenches

* tripod

* ui

* vector

* vehiclelock

* vehicles

* viewdistance

* weaponselect

* weather

* winddeflection

* yardage450

* zeus

* arsenal defines.hpp

* optionals

* DEBUG_MODE_FULL 1

* DEBUG_MODE_FULL 2

* Manual fixes

* Add SQF Validator check for #include after block comment

* explosives fnc_openTimerUI

* fix uniqueItems
2018-09-17 14:19:29 -05:00
81e02a7336 Refactor private ARRAY to private keyword (#5598)
* Everything

* Fixed missing ;

* Fix missing ; and double private

* Fixed cannot isNull on number

* Turn _temparture back to isNil

* Fix error from merge
2017-10-10 09:39:59 -05:00
eb6e8c0b56 Cleanup optional argument headers (#5543) 2017-09-22 17:33:08 +02:00
ffaa195fe5 Conform function headers to coding guidelines (#5255)
* Fixed headers to work with silentspike python script

* Fixed rest of the files

* Fixed ace-team
2017-06-08 15:31:51 +02:00
bfd3695868 SQF Lint Cleanup Pass (#5157)
* SQF Lint Cleanup Pass

* Fix var in TRACE

* Add basic python tool

* Simplify

* Hit space key 6 times

* Fix error in dropNozzle

* handle error message exceptions

* Fix py
2017-05-14 14:48:05 -05:00
9d128152a3 Hide earplug actions if setting disabled (#4913)
* Hide earplug actions if setting disabled

* Add lines that are new
2017-02-16 10:16:46 -06:00
8752b03c12 Hearing - player only event handlers (#4727) 2017-01-09 12:10:52 -06:00
05d30c5573 convert log macros to cba versions (#4282)
* convert log macros to cba versions

* Add changes to AB

* remove obsolete macro
2016-10-02 12:55:31 +02:00
6ad15e02c7 Fix spotting rifle loudness (#4488) 2016-09-30 15:10:20 -05:00
755f6bcc6b Make hearing component compatible with glasses 2016-07-26 16:14:16 +02:00
7512c4e52e manual merge 2016-05-30 21:14:34 +02:00
f69142dd45 Hearing - New XEH, Fix dead effects, Medical var (#3802)
* Hearing - New XEH, Fix dead effects, Medical var

* Use setHearingCapability

* Cleanup dead player vol update

* Don't change global hearing in medical

* Fix exitWith
2016-05-20 11:23:14 -05:00
467075ad67 replace timePFH with CBA_missionTime 2016-03-02 11:01:39 +01:00
0236c16e8f Cache volume attenuation due to earplugs and headgear 2016-02-18 13:48:40 -03:00
649b0c28e2 Calculate hearing protection coefficient on events 2016-02-16 18:17:42 -06:00
749425dfb7 Settings Category, Minor Cleanup 2016-02-16 12:58:42 -06:00
354ed0cab2 Trace instead of sideChat 2016-02-06 14:11:18 -03:00