-
Notifications
You must be signed in to change notification settings - Fork 738
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Explosives - Add AP mine with scripted medical damage (#10609)
Co-authored-by: johnb432 <[email protected]>
- Loading branch information
1 parent
c671bb6
commit 5183677
Showing
11 changed files
with
70 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
class ACE_Medical_Injuries { | ||
class damageTypes { | ||
class woundHandlers; | ||
class explosive { | ||
class woundHandlers: woundHandlers {}; | ||
}; | ||
class GVAR(toePopper): explosive { | ||
class woundHandlers: woundHandlers { | ||
ADDON = QFUNC(woundsHandlerToePopper); | ||
}; | ||
}; | ||
}; | ||
}; |
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
30 changes: 30 additions & 0 deletions
30
addons/explosives/functions/fnc_woundsHandlerToePopper.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,30 @@ | ||
#include "..\script_component.hpp" | ||
/* | ||
* Author: PabstMirror | ||
* Wound handler for the toe-popper ammo; only does damage to legs | ||
* | ||
* Arguments: | ||
* 0: Unit <OBJECT> | ||
* 1: Damage <ARRAY> | ||
* | ||
* Return Value: | ||
* <ARRAY> | ||
* | ||
* Example: | ||
* [player, []] call ace_explosives_fnc_woundsHandlerToePopper | ||
* | ||
* Public: No | ||
*/ | ||
|
||
params ["", "_array"]; | ||
TRACE_1("woundsHandlerToePopper",_this); | ||
|
||
_array = _array select { | ||
_x params ["", "_part"]; | ||
_part in ["LeftLeg", "RightLeg"] | ||
}; | ||
|
||
_this set [1, _array]; | ||
|
||
_this | ||
|
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