Header Examples

This commit is contained in:
PabstMirror 2015-02-06 17:03:56 -06:00
parent 98564fae68
commit c117e9bf16
24 changed files with 42 additions and 36 deletions

View File

@ -10,7 +10,7 @@
* The return value <BOOL>
*
* Example:
* -
* [player, bob] call ACE_captives_fnc_canApplyHandcuffs
*
* Public: No
*/

View File

@ -4,13 +4,13 @@
*
* Arguments:
* 0: caller (player) <OBJECT>
* 1: target <OBJECT><OPTIONAL>
* 1: target <OBJECT>
*
* Return Value:
* The return value <BOOL>
*
* Example:
* -
* [player, bob] call ACE_captives_fnc_canEscortCaptive
*
* Public: No
*/

View File

@ -10,7 +10,7 @@
* The return value <BOOL>
*
* Example:
* -
* [player, bob] call ACE_captives_fnc_canFriskPerson
*
* Public: No
*/

View File

@ -11,7 +11,7 @@
* The return value <BOOL>
*
* Example:
* -
* [player, bob] call ACE_captives_fnc_canLoadCaptive
*
* Public: No
*/

View File

@ -10,7 +10,7 @@
* The return value <BOOL>
*
* Example:
* -
* [player, bob] call ACE_captives_fnc_canRemoveHandcuffs
*
* Public: No
*/

View File

@ -10,7 +10,7 @@
* The return value <BOOL>
*
* Example:
* -
* [player, bob] call ACE_captives_fnc_canStopEscorting
*
* Public: No
*/
@ -21,7 +21,6 @@ DEFAULT_PARAM(1,_target,objNull);
private ["_isAttached"];
if (isNull _target) then {
_target = _unit getVariable [QGVAR(escortedUnit), objNull];
};

View File

@ -10,7 +10,7 @@
* The return value <BOOL>
*
* Example:
* [player, true] call ACE_captives_fnc_canSurrender;
* [Jean, true] call ACE_captives_fnc_canSurrender;
*
* Public: No
*/

View File

@ -11,7 +11,7 @@
* The return value <BOOL>
*
* Example:
* -
* [player, bob, car1] call ACE_captives_fnc_canUnloadCaptive;
*
* Public: No
*/

View File

@ -10,7 +10,7 @@
* The return value <BOOL>
*
* Example:
* -
* [player, bob] call ACE_captives_fnc_doApplyHandcuffs;
*
* Public: No
*/

View File

@ -11,7 +11,7 @@
* The return value <BOOL>
*
* Example:
* -
* [player, bob, true] call ACE_captives_fnc_doEscorteCaptive;
*
* Public: No
*/

View File

@ -10,7 +10,7 @@
* Nothing
*
* Example:
* TODO
* [player, bob] call ACE_captives_fnc_doFristPerson;
*
* Public: No
*/

View File

@ -11,7 +11,7 @@
* Nothing
*
* Example:
* TODO
* [bob, tom, car] call ACE_captives_fnc_doLoadCaptive
*
* Public: No
*/

View File

@ -1,16 +1,15 @@
/*
* Author: PabstMirror
* Release a captive
* Remove handcuffs from a target
*
* Arguments:
* 0: caller (player) <OBJECT>
* 1: target <OBJECT>
* 0: target <OBJECT>
*
* Return Value:
* The return value <BOOL>
*
* Example:
* -
* [bob, false] call ACE_captives_fnc_doRemoveHandcuffs
*
* Public: No
*/

View File

@ -10,7 +10,7 @@
* Nothing
*
* Example:
* TODO
* [bob, car] call ACE_captives_fnc_doUnloadCaptive
*
* Public: No
*/

View File

@ -11,7 +11,7 @@
* The return value <BOOL>
*
* Example:
* -
* [car2, x, player] call ACE_captives_fnc_handleGetIn
*
* Public: No
*/

View File

@ -11,7 +11,7 @@
* The return value <BOOL>
*
* Example:
* -
* [car2, x, player] call ACE_captives_fnc_handleGetOut
*
* Public: No
*/
@ -30,4 +30,4 @@ if ((local _unit) && {_unit getVariable [QGVAR(isHandcuffed), false]}) then {
};
[_unit, "ACE_AmovPercMstpScapWnonDnon", 2] call EFUNC(common,doAnimation);
};
};

View File

@ -9,7 +9,7 @@
* None
*
* Example:
* -
* [bob1] call ACE_captives_fnc_handleKilled
*
* Public: No
*/
@ -24,3 +24,7 @@ if (_oldUnit getVariable [QGVAR(isHandcuffed), false]) then {
if (_oldUnit getVariable [QGVAR(isEscorting), false]) then {
_oldUnit setVariable [QGVAR(isEscorting), false, true];
};
if (_oldUnit getVariable [QGVAR(isSurrendering), false]) then {
_oldUnit setVariable [QGVAR(isSurrendering), false, true];
};

View File

@ -10,7 +10,7 @@
* The return value <BOOL>
*
* Example:
* TODO
* [bob1, bob2] call ACE_captives_fnc_handlePlayerChange
*
* Public: No
*/
@ -18,7 +18,7 @@
PARAMS_2(_newUnit,_oldUnit);
if (_newUnit getVariable [QGVAR(isHandcuffed), false]) then {
if ((_newUnit getVariable [QGVAR(isHandcuffed), false]) || {_unit getVariable [QGVAR(isSurrendering), false]}) then {
showHUD false;
} else {
showHUD true;

View File

@ -9,7 +9,7 @@
* The return value <BOOL>
*
* Example:
* TODO
* [bob] call ACE_captives_fnc_handleUnitInitPost
*
* Public: No
*/

View File

@ -9,7 +9,7 @@
* The return value <BOOL>
*
* Example:
* TODO
* [bob] call ACE_captives_fnc_handleWokeUp
*
* Public: No
*/

View File

@ -10,7 +10,7 @@
* Nothing
*
* Example:
* TODO
* [bob, true] call ACE_captives_fnc_setHandcuffed;
*
* Public: No
*/

View File

@ -10,7 +10,7 @@
* Nothing
*
* Example:
* TODO
* [Pierre, true] call ACE_captives_fnc_surrender;
*
* Public: No
*/
@ -19,12 +19,18 @@
PARAMS_2(_unit,_state);
if (_state) then {
if (_unit getVariable [QGVAR(isSurrendering), false]) exitWith {};
if (_unit getVariable [QGVAR(isSurrendering), false]) exitWith {
ERROR("Already Surrendering");
};
_unit setVariable [QGVAR(isSurrendering), true, true];
[_unit, QGVAR(Surrendered), true] call EFUNC(common,setCaptivityStatus);
[_unit, "ACE_AmovPercMstpSsurWnonDnon", 1] call EFUNC(common,doAnimation);
if (_unit == ACE_player) then {
showHUD false;
};
private "_surrenderFnc";
_surrenderFnc = {
EXPLODE_1_PVT((_this select 0),_unit);
@ -49,7 +55,7 @@ if (_state) then {
};
[_unit, QGVAR(Surrendered), false] call EFUNC(common,setCaptivityStatus);
if (_unit == ACE_player) then {
//only enable if not handcuffed
if (!(_unit getVariable [QGVAR(isHandcuffed), false])) then {

View File

@ -10,7 +10,7 @@
* Nothing
*
* Example:
* TODO
* [bob, car1] call ACE_captives_fnc_vehicleCaptiveMoveIn;
*
* Public: No
*/
@ -24,5 +24,3 @@ _target moveInCargo _vehicle;
_target assignAsCargo _vehicle;
_cargoIndex = _vehicle getCargoIndex _target;
_target setVariable [QGVAR(CargoIndex), _cargoIndex, true];
TRACE_3("moveinEH",_target,_vehicle,_cargoIndex);

View File

@ -9,7 +9,7 @@
* Nothing
*
* Example:
* TODO
* [bob] call ACE_captives_fnc_vehicleCaptiveMoveOut;
*
* Public: No
*/
@ -21,4 +21,4 @@ _unit setVariable [QGVAR(CargoIndex), -1, true];
moveOut _unit;
[_unit, "ACE_AmovPercMstpScapWnonDnon", 2] call EFUNC(common,doAnimation);
unassignVehicle _unit;
unassignVehicle _unit;