-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #823 from AndreasBrostrom/Updated-headers
Updated headers
- Loading branch information
Showing
15 changed files
with
67 additions
and
14 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
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
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
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
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
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,53 @@ | ||
#include "..\script_component.hpp"; | ||
/* | ||
* Author: CPL.Brostrom.A | ||
* This module function spawn a supply crate. | ||
* | ||
* Arguments: | ||
* 0: modulePos <POSITION> | ||
* 1: objectPos <OBJECT> | ||
* | ||
* Example: | ||
* [getPos logic, this] call cScripts_fnc_zenModule_createSupplyCrate | ||
* | ||
* Public: No | ||
*/ | ||
|
||
params ["_modulePos", "_objectPos"]; | ||
|
||
[ | ||
"Unit injuries", | ||
[ | ||
["CHECKBOX", ["Mak unit unconscious", ""], true, false], | ||
["LIST", ["Injurie", "Select type of injurie"], | ||
[ | ||
[ | ||
'Nothing' | ||
'2 bullets in the cheast' | ||
], | ||
[ | ||
'' | ||
'twoBulletInChest' | ||
], | ||
0, | ||
1 | ||
], false], | ||
], | ||
{ | ||
params ["_arg", "_pos"]; | ||
_arg params ["_setUnconscious"]; | ||
_pos params ["_objectPos"]; | ||
|
||
[_objectPos, _setUnconscious] call ace_medical_fnc_setUnconscious; | ||
|
||
switch () do { | ||
case "twoBulletInChest": { | ||
[_objectPos, 0.20, "hitbody", "bullet"] call ace_medical_fnc_addDamageToUnit; | ||
[_objectPos, 0.20, "hitbody", "bullet"] call ace_medical_fnc_addDamageToUnit; | ||
}; | ||
default {}; | ||
}; | ||
}, | ||
{}, | ||
[_objectPos] | ||
] call zen_dialog_fnc_create; |