mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
e5a49f3acf
* autoload RHS USAF compat * whoops * fix filepatching builds * pboProject pls * add ONE semicolon. * remove meta.cpp * add AFRF, move stringtables * add addon.toml * stringtable validation * change subconfig folder names for stringtables * macros * sigh * macros Co-authored-by: Jouni Järvinen <rautamiekka@users.noreply.github.com> * add SAF compat * missing file * config brackets * Update addons/compat_rhs_afrf3/compat_rhs_afrf3_explosives/config.cpp Co-authored-by: PabstMirror <pabstmirror@gmail.com> * Update addons/compat_rhs_usf3/compat_rhs_usf3_csw/CfgVehicles.hpp Co-authored-by: PabstMirror <pabstmirror@gmail.com> * capitalization Co-authored-by: Jouni Järvinen <rautamiekka@users.noreply.github.com> * fix double class * gref and fastroping * fix functions * Update CfgVehicles.hpp --------- Co-authored-by: Jouni Järvinen <rautamiekka@users.noreply.github.com> Co-authored-by: PabstMirror <pabstmirror@gmail.com>
41 lines
1001 B
Plaintext
41 lines
1001 B
Plaintext
#include "script_component.hpp"
|
|
/*
|
|
* Author: BaerMitUmlaut
|
|
* Function for opening doors and extending the hook for most vanilla helos.
|
|
*
|
|
* Arguments:
|
|
* 0: Helicopter <OBJECT>
|
|
*
|
|
* Return Value:
|
|
* Amount of time to wait before deploying ropes <NUMBER>
|
|
*
|
|
* Example:
|
|
* [_vehicle] call ace_compat_rhs_usf3_fnc_onPrepare
|
|
*
|
|
* Public: No
|
|
*/
|
|
params ["_vehicle"];
|
|
|
|
_vehicle setVariable [QEGVAR(fastroping,doorsLocked), true, true];
|
|
|
|
private _waitTime = 2;
|
|
|
|
_vehicle animateDoor ["doorRB", 1];
|
|
_vehicle animateDoor ["doorLB", 1];
|
|
_vehicle animate ["doorHandler_R",1];
|
|
_vehicle animate ["doorHandler_L",1];
|
|
_vehicle animateDoor ["ramp_anim", 1];
|
|
_vehicle animate ["ramp_bottom",0.56];
|
|
_vehicle animate ["ramp_top",1];
|
|
|
|
private _fries = _vehicle getVariable [QEGVAR(fastroping,FRIES), objNull];
|
|
if !(isNull _fries) then {
|
|
[{
|
|
_this animate ["extendHookRight", 1];
|
|
_this animate ["extendHookLeft", 1];
|
|
}, _fries, 2] call CBA_fnc_waitAndExecute;
|
|
_waitTime = 4;
|
|
};
|
|
|
|
_waitTime
|