-
Notifications
You must be signed in to change notification settings - Fork 737
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Captives - Module to set handcuffing
also add player check for GVAR(requireSurrender) in canApplyHandcuffes
- Loading branch information
1 parent
ef681e4
commit 1c26f6c
Showing
9 changed files
with
77 additions
and
19 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
Binary file not shown.
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,35 @@ | ||
/* | ||
* Author: PabstMirror | ||
* Module Function to make a unit handcuffed (can be called from editor) | ||
* | ||
* Arguments: | ||
* 0: The Module Logic <OBJECT> | ||
* 1: synced objects <ARRAY> | ||
* 2: Activated <BOOL> | ||
* | ||
* Return Value: | ||
* Nothing | ||
* | ||
* Example: | ||
* Called from module | ||
* | ||
* Public: No | ||
*/ | ||
#include "script_component.hpp" | ||
|
||
params ["_logic", "_units", "_activated"]; | ||
|
||
TRACE_3("params",_logic,_units,_activated); | ||
|
||
if (!_activated) exitWith {}; | ||
if (!isServer) exitWith {}; | ||
|
||
//Modules run before postInit can instal the event handler, so we need to wait a little bit | ||
[{ | ||
params ["_units"]; | ||
{ | ||
["SetHandcuffed", [_x], [_x, true]] call EFUNC(common,targetEvent); | ||
} forEach _units; | ||
}, [_units], 0.05] call EFUNC(common,waitAndExecute); | ||
|
||
deleteVehicle _logic; |
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
Binary file added
BIN
+1.26 KB
extras/assets/icons/Icon_Module_png/Icon_Module_Make_Unit_Handcuffed_ca.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.