jonpas
742626ff1a
General - Relative script_component.hpp
includes ( #9378 )
...
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-09-12 20:58:10 +02:00
Grim
de8940af9b
Medical Treatment - Add setting to rollover bandage effectiveness ( #8426 )
...
* use leftover bandage effectiveness on other wounds in same limb
variable naming
* Comments
Co-authored-by: Kyle Mckay <5459452+kymckay@users.noreply.github.com>
* variable naming, fix part index check in findMostEffectiveWound
trace 4
* fix function header
* Account for multiple wounds in time calculation
* fix trace, remove systemChat
* update for hashmaps
* compile cache
* Update addons/medical_treatment/functions/fnc_findMostEffectiveWounds.sqf
Co-authored-by: Jouni Järvinen <rautamiekka@users.noreply.github.com>
* add bandage effectiveness setting
* stupid
* remove limit on bandageRemaining
* Update addons/medical_treatment/functions/fnc_bandageLocal.sqf
Co-authored-by: BrettMayson <brett@mayson.io>
* Update fnc_getBandageTime.sqf
* Update fnc_bandageLocal.sqf
* fix header / debug
---------
Co-authored-by: Salluci <69561145+Salluci@users.noreply.github.com>
Co-authored-by: Kyle Mckay <5459452+kymckay@users.noreply.github.com>
Co-authored-by: Jouni Järvinen <rautamiekka@users.noreply.github.com>
Co-authored-by: BrettMayson <brett@mayson.io>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-09-10 02:06:15 -04:00
Grim
aa107ed517
Medical - Add treating with items from vehicle inventory ( #9286 )
...
* allow pulling items from vehicle inventory
* use vehicle items first
2023-09-05 11:20:56 -03:00
johnb432
6bc1ae453b
Update fnc_loadUnit.sqf ( #9300 )
2023-08-01 11:35:55 -05:00
Grim
39e4f9340b
Common/Medical - Change vehicle
checks to objectParent
( #9281 )
...
* switch to objectParent
* use objectParent in unloadUnit
* fix derp
* allow unload patient on dead units
2023-07-22 09:11:58 +03:00
Grim
31e1ad0cff
Arsenal - Add Tools category and moveOnOverwrite
parameter to FUNC(addCustomRightPanelButton)
( #9247 )
...
* add tools tab and setting
* move to preinit
* fix icon, add restart warning
* derp
Co-authored-by: Dystopian <sddex@ya.ru>
* Update addons/arsenal/stringtable.xml
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* remove setting
* add keepIfOverriden parameter
* docs again
* documentation whitespace
* docs grammar, change parameter name
* fix docs
* more docs fixes
* magazine support
* deprecate spare barrel item
* more docs, improve condition
---------
Co-authored-by: Dystopian <sddex@ya.ru>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-21 22:39:48 +03:00
Grim
45af0cdca0
Medical Treatment - Remove early exit when stitching with sutures ( #9243 )
2023-07-07 08:19:45 +03:00
Grim
0e26755b88
Medical - Add arsenal category ( #9220 )
...
* add medical category to arsenal
* function header
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* move to preinit, protect list
* improve macro
* documentation
* add config property
* add CfgMagazines
* Revert "add CfgMagazines"
Arsenal doesn't support magazines in custom categories
---------
Co-authored-by: GhostIsSpooky <69561145+Salluci@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-07-07 07:14:44 +03:00
pterolatypus
f434549faf
Medical Treatment - Change stitching action to be per-body-part ( #9005 )
...
* Make stitching action per-body-part
* Apply suggestions from code review
Co-authored-by: mharis001 <34453221+mharis001@users.noreply.github.com>
---------
Co-authored-by: mharis001 <34453221+mharis001@users.noreply.github.com>
Co-authored-by: Salluci <salluci.lovi@gmail.com>
2023-06-28 01:43:45 +03:00
Kyle Mckay
02365609b5
Medical - Change medical to use hashmaps for wound storage ( #8926 )
...
* Refactor medical to use hashmaps for wound storage
- We most frequently want to access wounds by body part, so this makes
that a constant time lookup.
- The body part index is no longer stored in every wound since it's
inherent in the wound storage.
- Using body part names as the keys of the hashmap to improve code
clarity (no more magic numbers).
closes #6468
* Add deserilization migration from old wound arrays
Will migrate from old form array wound storage to the new hashmap
strucutre during deserlization. This is relevant for communities piping
medical state out to a database or similar between sessions.
* fix issue with suture stitching
* change version number in comment
---------
Co-authored-by: Salluci <salluci.lovi@gmail.com>
2023-06-24 08:11:56 +03:00
Kam
1e6073c467
give tourniquet to patient or medic depending on setting ( #9206 )
2023-06-22 04:26:28 -03:00
KJW
fd3c9c967d
Medical Treatment - Improve Medical Actions underwater ( #9096 )
2023-05-15 23:47:00 -06:00
BrettMayson
e252ef67d6
Medical Treatment - Suture ( #9020 )
...
Co-authored-by: Walthzer <19926813+Walthzer@users.noreply.github.com>
2023-03-06 14:17:01 -06:00
Brett
90d63475d5
Medical Treatment - Add preferred seats for loading patients ( #8789 )
...
* Medical Treatment - Add preferred seats for loading patients
* load patients in reverse order
* add option for reverse fill
* Update addons/medical_treatment/functions/fnc_loadUnit.sqf
Co-authored-by: Filip Maciejewski <veteran29@users.noreply.github.com>
* Update docs/wiki/framework/medical-treatment-framework.md
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
Co-authored-by: Filip Maciejewski <veteran29@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2022-02-17 11:14:39 -06:00
GhostIsSpooky
a9296f66d5
Medical - Update setDead
to use setHitpointDamage
instigator param ( #8397 )
...
* Redoing this
* Revert "Redoing this"
This reverts commit 80ff709676
.
* Do this properly
* Update fnc_handleKilled.sqf
* use setDead function directly
* Handle scripted camera
* redo #8387
I'm dumb.
* try this
* if construct outside of ctrlSetEventHandler
Co-authored-by: Filip Maciejewski <veteran29@users.noreply.github.com>
* tweak disableUserInput / handleKilled
Co-authored-by: Filip Maciejewski <veteran29@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2021-11-15 09:31:56 -06:00
Crowdedlight
5bf4167d3e
Medical - Add check to FullHealLocal in case unit is burning then extinguish before healing ( #8622 )
...
* added check if burning in fullheal and then extinguish
* Add check if fire module is loaded as PabstMirror showed
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2021-11-04 16:36:53 -05:00
PabstMirror
7bc6fdfa66
Cleanup - Trim all trailing whitespace ( #8651 )
2021-10-30 16:42:03 -05:00
GhostIsSpooky
374a5b632f
Medical - Refactor Clear Trauma Setting ( #8345 )
...
* Refactor Clear Trauma
Add in setting for clearing trauma after stitching a wound, make clearing trauma after bandage clear trauma of individual wounds as they're bandaged instead of all at once when fully bandaged.
* Make git diff slightly prettier.
* Update fnc_bandageLocal.sqf
* Style pass
* once more for the diff
* fix stupid
* Ddd trauma/visuals on bandage reopening
2021-10-12 10:08:10 +02:00
GhostIsSpooky
e92ea53385
Medical - Return tourniquets after PAK ( #8419 )
2021-10-11 00:34:28 +02:00
PabstMirror
cdd7b6d81b
Medical Treatment - Allow diagnosing death/CA (invalidates old setting) ( #8162 )
...
* Medical Treatment - Allow diagnosing death/CA
* Update addons/medical_treatment/stringtable.xml
Co-authored-by: mharis001 <34453221+mharis001@users.noreply.github.com>
* Update addons/medical_treatment/stringtable.xml
Co-authored-by: mharis001 <34453221+mharis001@users.noreply.github.com>
2021-09-03 14:50:54 -05:00
∂ω∂
f7126383fe
Medical - Add treatment status events ( #8385 )
...
* Medical: Add item params to ace_treatmentSucceded
* Medical: Add treatment[Started,Failed] events
2021-09-03 14:37:48 -05:00
pterolatypus
c81f371f5d
Medical Treatment - Allow variable CPR chance based on blood volume (invalidates old setting) ( #7983 )
2021-07-23 15:59:32 +02:00
Brett
d5bc7f10f5
fix my name, add it to contributers ( #8295 )
2021-06-27 07:01:12 +02:00
Neviothr
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
PabstMirror
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
PabstMirror
5ffcac9c88
Misc - Fix minor macro usage ( #8091 )
2021-02-03 17:56:18 -06:00
Dystopian
9dc82ee187
Fix fnc_common_addToInventory using ( #8013 )
2020-11-25 13:22:25 -06:00
mharis001
171fbf1e9e
Medical Treatment - Settings cleanup ( #7973 )
2020-10-30 23:40:10 -05:00
diwako
2b0db19807
Medical - Adjustable times for many treatment actions ( #7951 )
...
* adjustable times for most constant treatment times
* add new line, formatting
* cleanup merge
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2020-10-29 11:37:44 -05:00
Brett
9e3409fc6e
Medical - Allow placing unconscious in a body bag ( #7941 )
...
* medical: allow placing unconscious in a bodybag
* Always show body bag action on non-awake units
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2020-10-29 11:37:36 -05:00
Daniel Gibson
185c15de0e
Medical - Add Global Wound Reopen Chance Modifer ( #7747 )
...
* Added Bandage Reopening Chance Modifier
* Added Wound Reopen Chance Addon Setting
* Fixed dumb error in localization setup
* Credit!
* Resolved issue with Addon Settings definition & removed testing values.
* PR Feedback #1
- Removed unnecessary whitespace on LN 46
- Call global var directly at LN 87
- Updated Wound Reopen Chance localized name & description
* PR Feedback #2
- Increased reopen coefficient upper limit from 2 to 5.
* Changed author credit to reflect GitHub email.
2020-06-13 15:52:30 -05:00
PabstMirror
a9a69ac4ff
Headers - Fix function names in examples ( #7663 )
2020-04-25 08:41:45 +02:00
jonpas
c42a004ab3
General - Fix preprocessor issues ( #7563 )
...
* Fix preprocessor issues
* Fix more preprocessor issues
2020-02-29 16:09:31 -06:00
commy2
754a9e09af
values, simplify
2020-02-23 14:25:11 +01:00
commy2
27ecfc6a5b
prevent extremely slow or fast animations
2020-02-23 14:14:11 +01:00
mharis001
2d1f166f5a
Medical - Combine advancedBandages and woundReopening settings
2020-01-04 15:43:51 -05:00
mharis001
b874a1f618
Medical Treatment - Fix bodyCleanupLoop typo ( #7308 )
2019-12-17 09:50:59 -06:00
PabstMirror
9b8cfc27af
Medical Treatment - Reset canTreatCached on treatment ( #7253 )
...
* Medical Treatment - Reset canTreatCached on treatment
* Reset conditionCaches of nearby units
* CAManBase
2019-12-12 10:25:21 -06:00
BaerMitUmlaut
bb0461be16
Fast medical item replacement ( #7224 )
...
* Add item replacement framework
* Correctance of English
Co-Authored-By: Dedmen Miller <dedmen@users.noreply.github.com>
* Remove unecessary code
* Use new item replacement framework for medical items
* minor fixes, support GVAR(convertItems) setting
* use forEach, convert atropine to epi
* replace with adenosine
2019-10-11 15:00:25 -05:00
PabstMirror
4eeac9f649
Medical - Death from sum of trauma ( #7195 )
...
* Medical - Death from sum of trauma
* fixes
* Update fnc_determineIfFatal.sqf
2019-10-08 10:45:09 -05:00
Daniel Lee
f4dbe5229e
Medical - Option for treatment to require holstering/lowering weapon. ( #7063 )
...
* Option for medical treatment to require holstering/lowering weapon, with an option for examine category items to still be available.
* Vehicles cause holster settings to be ignored.
Unsure whether to expand this into it's own setting (disallow all medical in vehicles? only allow if both medic and patient are in the same vehicle? what about people in the back of transports healing those in the cab?), but just going to leave it as is for now.
* Replace !isEqualTo with != in for performance reasons.
Resolves line 33 PR review.
* Merge settings, short circuit
* move logic to new file
2019-10-08 10:44:36 -05:00
mharis001
35a4ffbad6
Expand advanced diagnose setting tooltip ( #7197 )
2019-09-28 16:25:29 -05:00
PabstMirror
d6507cf119
Medical - epiBoostsSpontaneousWakeUp ( #7076 )
...
* Medical - epiBoostsSpontaneousWakeUp
* Update initSettings.sqf
* Move setting, add strings
* Update initSettings.sqf
* Update addons/medical/stringtable.xml
Co-Authored-By: mharis001 <34453221+mharis001@users.noreply.github.com>
2019-09-28 16:11:32 -05:00
mharis001
ec9e6c088b
Medical - Only stitch wounds on not bleeding body parts ( #7044 )
...
* Only stitch wounds on not bleeding body parts
2019-09-28 21:48:19 +01:00
LachlanSneddon
b4c1d0cb57
Minor logic fixes ( #7174 )
2019-09-07 12:18:12 -05:00
PabstMirror
0880ea25a3
Medical Treatment - Add logging for splints ( #7170 )
...
* Medical Treatment - Add logging for splints
* addToTriageCard
2019-09-06 21:47:20 -05:00
PabstMirror
edd5c44853
Medical - Improve loading/unloading of unconc patients ( #7109 )
...
* Medical - Improve loading/unloading of unconc patients
* Update fnc_loadPersonLocal.sqf
* Multi-line
* Formating
* Update fnc_loadUnit.sqf
2019-09-05 15:56:53 -05:00
PabstMirror
f5782fd1ff
Medical - Various debugging and fix cpr anim speed ( #7122 )
...
* Medical - Various debugging and fix cpr anim speed
* Update fnc_setCardiacArrest.sqf
2019-08-06 08:10:33 -05:00
PabstMirror
fa910a7fd8
Small med stuff ( #7084 )
...
* Small med stuff
* update adv fatigue comment
* disable medical debug by default
* Fix tourniquet call to addToTriageCard
2019-07-03 10:40:42 -05:00
PabstMirror
de13ab0f47
Medical - Rework CPR and Bleeding in cardiac arrest ( #7060 )
...
* Medical - Rework CPR and Bleeding in cardiac arrest
* remove cprCreatesPulse, add cprSuccessChance
* hide cpr for basic diagnose
* Update addons/medical_statemachine/functions/fnc_enteredStateCardiacArrest.sqf
Co-Authored-By: SilentSpike <silentspike100+Github@gmail.com>
2019-06-27 19:01:20 -05:00