mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
7009404d39
* GM Compat add GM Compat addon - it's #7835 without fastroping & refuel changes * plus compat_gm moved into optionals * plus a few whitespace fixes Co-authored-by: jonpas <jonpas33@gmail.com> Co-authored-by: Fusselwurm <fusselwurm@gmail.com> * add ACE CSW dep (see script_component.hpp) * warn about missiong compat_gm if GM is loaded * move medic tents to EGVAR(medical,facilities) array thing * add pDumbs Co-authored-by: jonpas <jonpas33@gmail.com> Co-authored-by: Fusselwurm <fusselwurm@gmail.com> Co-authored-by: PabstMirror <pabstmirror@gmail.com>
39 lines
1.1 KiB
Plaintext
39 lines
1.1 KiB
Plaintext
#include "script_component.hpp"
|
|
/*
|
|
* Author: nomisum
|
|
* Function for opening doors for most GM helos.
|
|
*
|
|
* Arguments:
|
|
* 0: Helicopter <OBJECT>
|
|
*
|
|
* Return Value:
|
|
* Amount of time to wait before deploying ropes <NUMBER>
|
|
*
|
|
* Example:
|
|
* [_vehicle] call ace_compat_gm_fnc_onPrepare
|
|
*
|
|
* Public: No
|
|
*/
|
|
params ["_vehicle"];
|
|
|
|
switch (true) do {
|
|
case (_vehicle isKindOf "gm_ge_army_bo105p1m_vbh_swooper"): {
|
|
_vehicle setVariable [QEGVAR(fastroping,doorsLocked), true, true];
|
|
_vehicle animateDoor ["door_2_1_source", 1];
|
|
_vehicle animateDoor ["door_2_2_source", 1];
|
|
};
|
|
case (_vehicle isKindOf "gm_ch53_base"): {
|
|
_vehicle setVariable [QEGVAR(fastroping,doorsLocked), true, true];
|
|
_vehicle animateDoor ["cargoramp_source", 1];
|
|
_vehicle animateSource ["slingloadlights_source", 1];
|
|
};
|
|
case (_vehicle isKindOf "gm_mi2_base"): {
|
|
_vehicle setVariable [QEGVAR(fastroping,doorsLocked), true, true];
|
|
_vehicle animate ["door_2_1_anim", 1]; // animateSource/animateDoor didnt work
|
|
_vehicle animateSource ["winch_unhide", 1]; // just in case this wasnt already set
|
|
};
|
|
default {};
|
|
};
|
|
|
|
2
|