-
Notifications
You must be signed in to change notification settings - Fork 739
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
1 parent
ef56a2d
commit 9e3409f
Showing
6 changed files
with
51 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
addons/medical_treatment/functions/fnc_canPlaceInBodyBag.sqf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#include "script_component.hpp" | ||
/* | ||
* Author: SynixeBrett | ||
* Checks if the patient can be placed in a bodybag. | ||
* | ||
* 'vehicle _patient' always returns the body | ||
* '_patient in _patient' always false for body | ||
* | ||
* Arguments: | ||
* 0: Medic (not used) <OBJECT> | ||
* 1: Patient <OBJECT> | ||
* | ||
* Return Value: | ||
* Can Place in Bodybag <BOOL> | ||
* | ||
* Example: | ||
* [player, cursorObject] call ace_medical_treatment_fnc_canPlaceInBodybag | ||
* | ||
* Public: No | ||
*/ | ||
|
||
params ["", "_patient"]; | ||
|
||
(isNull objectParent _patient) && {!(_patient call EFUNC(common,isAwake))} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters