mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Cleanup privates and function params
This commit is contained in:
parent
e5c0b5afd3
commit
b2fd7f93b5
@ -60,7 +60,7 @@ class CfgVehicles {
|
||||
class ACE_SelfActions {
|
||||
class ACE_prepareFRIES {
|
||||
displayName = CSTRING(Interaction_prepareFRIES);
|
||||
condition = [_player, vehicle _player] call FUNC(canPrepareFRIES);
|
||||
condition = [vehicle _player] call FUNC(canPrepareFRIES);
|
||||
statement = [_player, vehicle _player] call FUNC(prepareFRIES);
|
||||
showDisabled = 0;
|
||||
priority = 1;
|
||||
@ -68,13 +68,13 @@ class CfgVehicles {
|
||||
class ACE_deployRopes {
|
||||
displayName = CSTRING(Interaction_deployRopes);
|
||||
condition = [_player, vehicle _player] call FUNC(canDeployRopes);
|
||||
statement = [_player, vehicle _player] call FUNC(deployRopes);
|
||||
statement = [vehicle _player] call FUNC(deployRopes);
|
||||
showDisabled = 0;
|
||||
priority = 1;
|
||||
};
|
||||
class ACE_cutRopes {
|
||||
displayName = CSTRING(Interaction_cutRopes);
|
||||
condition = [_player, vehicle _player] call FUNC(canCutRopes);
|
||||
condition = [vehicle _player] call FUNC(canCutRopes);
|
||||
statement = [vehicle _player] call FUNC(cutRopes);
|
||||
showDisabled = 0;
|
||||
priority = 1;
|
||||
|
@ -3,22 +3,20 @@
|
||||
* Checks if the unit can cut deployed ropes.
|
||||
*
|
||||
* Arguments:
|
||||
* 0: Unit occupying the helicopter <OBJECT>
|
||||
* 1: The helicopter itself <OBJECT>
|
||||
* 0: The helicopter itself <OBJECT>
|
||||
*
|
||||
* Return Value:
|
||||
* Able to cut ropes <BOOL>
|
||||
*
|
||||
* Example:
|
||||
* [_player, _vehicle] call ace_fastroping_canCutRopes
|
||||
* [_vehicle] call ace_fastroping_canCutRopes
|
||||
*
|
||||
* Public: No
|
||||
*/
|
||||
|
||||
#include "script_component.hpp"
|
||||
params ["_unit", "_vehicle"];
|
||||
private ["_deployedRopes"];
|
||||
params ["_vehicle"];
|
||||
|
||||
_deployedRopes = _vehicle getVariable [QGVAR(deployedRopes), []];
|
||||
private _deployedRopes = _vehicle getVariable [QGVAR(deployedRopes), []];
|
||||
|
||||
!(_deployedRopes isEqualTo [])
|
||||
|
@ -17,10 +17,8 @@
|
||||
|
||||
#include "script_component.hpp"
|
||||
params ["_unit", "_vehicle"];
|
||||
private ["_deployedRopes", "_config"];
|
||||
|
||||
_deployedRopes = _vehicle getVariable [QGVAR(deployedRopes), []];
|
||||
_config = configFile >> "CfgVehicles" >> typeOf _vehicle;
|
||||
private _deployedRopes = _vehicle getVariable [QGVAR(deployedRopes), []];
|
||||
|
||||
((driver _vehicle != _unit) &&
|
||||
{(_vehicle getVariable [QGVAR(deploymentStage), 0]) == 2} &&
|
||||
|
@ -17,9 +17,8 @@
|
||||
|
||||
#include "script_component.hpp"
|
||||
params ["_unit", "_vehicle"];
|
||||
private ["_deployedRopes"];
|
||||
|
||||
_deployedRopes = _vehicle getVariable [QGVAR(deployedRopes), []];
|
||||
private _deployedRopes = _vehicle getVariable [QGVAR(deployedRopes), []];
|
||||
|
||||
((driver _vehicle != _unit) &&
|
||||
{!(_deployedRopes isEqualTo [])} &&
|
||||
|
@ -3,20 +3,19 @@
|
||||
* Checks if the unit can prepare the helicopters FRIES.
|
||||
*
|
||||
* Arguments:
|
||||
* 0: Unit occupying the helicopter <OBJECT>
|
||||
* 1: The helicopter itself <OBJECT>
|
||||
* 0: The helicopter itself <OBJECT>
|
||||
*
|
||||
* Return Value:
|
||||
* Able to prepare FRIES <BOOL>
|
||||
*
|
||||
* Example:
|
||||
* [_player, _vehicle] call ace_fastroping_canPrepareFRIES
|
||||
* [_vehicle] call ace_fastroping_canPrepareFRIES
|
||||
*
|
||||
* Public: No
|
||||
*/
|
||||
|
||||
#include "script_component.hpp"
|
||||
params ["_unit", "_vehicle"];
|
||||
params ["_vehicle"];
|
||||
private ["_deployedRopes", "_config"];
|
||||
|
||||
_deployedRopes = _vehicle getVariable [QGVAR(deployedRopes), []];
|
||||
|
@ -3,20 +3,19 @@
|
||||
* Deploy ropes from the helicopter.
|
||||
*
|
||||
* Arguments:
|
||||
* 0: Unit occupying the helicopter <OBJECT>
|
||||
* 1: The helicopter itself <OBJECT>
|
||||
* 0: The helicopter itself <OBJECT>
|
||||
*
|
||||
* Return Value:
|
||||
* None
|
||||
*
|
||||
* Example:
|
||||
* [_player, _vehicle] call ace_fastroping_deployRopes
|
||||
* [_vehicle] call ace_fastroping_deployRopes
|
||||
*
|
||||
* Public: No
|
||||
*/
|
||||
|
||||
#include "script_component.hpp"
|
||||
params ["_unit", "_vehicle"];
|
||||
params ["_vehicle"];
|
||||
private ["_config", "_ropeOrigins", "_ropeOrigin", "_deployedRopes", "_hookAttachment", "_origin", "_dummy", "_anchor", "_hook", "_ropeTop", "_ropeBottom"];
|
||||
|
||||
_config = configFile >> "CfgVehicles" >> typeOf _vehicle;
|
||||
|
@ -16,9 +16,8 @@
|
||||
|
||||
#include "script_component.hpp"
|
||||
params ["_vehicle"];
|
||||
private ["_fries"];
|
||||
|
||||
_fries = _vehicle getVariable [QGVAR(FRIES), objNull];
|
||||
private _fries = _vehicle getVariable [QGVAR(FRIES), objNull];
|
||||
if !(isNull _fries) then {
|
||||
_fries animate ["extendHookRight", 0];
|
||||
_fries animate ["extendHookLeft", 0];
|
||||
|
@ -15,7 +15,7 @@
|
||||
#include "script_component.hpp"
|
||||
params ["_ehArgs", "_part"];
|
||||
_ehArgs params ["_rope", "_helper1", "_helper2"];
|
||||
private ["_vehicle", "_deployedRopes", "_unit"];
|
||||
private ["_vehicle", "_deployedRopes", "_brokenRope", "_unit"];
|
||||
|
||||
if (_part == "bottom") then {
|
||||
_helper2 = (ropeAttachedObjects _helper1) select 0;
|
||||
|
@ -16,7 +16,7 @@
|
||||
|
||||
#include "script_component.hpp"
|
||||
params ["_unit", "_vehicle"];
|
||||
private ["_deployedRopes"];
|
||||
private ["_config", "_waitTime"];
|
||||
|
||||
//Stage indicator: 0 - travel mode; 1 - preparing FRIES; 2 - FRIES ready; 3 - ropes deployed
|
||||
_vehicle setVariable [QGVAR(deploymentStage), 1, true];
|
||||
|
Loading…
x
Reference in New Issue
Block a user