2017-06-02 21:51:07 +00:00
|
|
|
class CfgVehicles {
|
|
|
|
class ACE_Module;
|
|
|
|
class GVAR(module): ACE_Module {
|
|
|
|
author = ECSTRING(common,ACETeam);
|
|
|
|
category = "ACE";
|
|
|
|
displayName = CSTRING(Category);
|
|
|
|
function = QFUNC(moduleInit);
|
2017-11-11 19:21:55 +00:00
|
|
|
scope = 1;
|
2017-06-02 21:51:07 +00:00
|
|
|
isGlobal = 1;
|
|
|
|
isTriggerActivated = 0;
|
|
|
|
isDisposable = 0;
|
2017-09-21 14:22:28 +00:00
|
|
|
icon = "a3\ui_f\data\IGUI\Cfg\Actions\Obsolete\ui_action_getin_ca.paa";
|
2017-06-02 21:51:07 +00:00
|
|
|
class Arguments {
|
|
|
|
class enabled {
|
|
|
|
displayName = ECSTRING(common,Enabled);
|
|
|
|
description = CSTRING(KeybindDescription);
|
|
|
|
typeName = "BOOL";
|
|
|
|
defaultValue = 1;
|
|
|
|
};
|
|
|
|
class distance {
|
|
|
|
displayName = CSTRING(Distance);
|
|
|
|
description = CSTRING(DistanceDescription);
|
|
|
|
typeName = "NUMBER";
|
|
|
|
defaultValue = DEFAULT_DISTANCE;
|
|
|
|
};
|
|
|
|
class speed {
|
|
|
|
displayName = CSTRING(Speed);
|
|
|
|
description = CSTRING(SpeedDescription);
|
|
|
|
typeName = "NUMBER";
|
|
|
|
defaultValue = DEFAULT_SPEED;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
class ModuleDescription {
|
|
|
|
description = CSTRING(KeybindDescription);
|
|
|
|
};
|
|
|
|
};
|
2018-11-19 04:33:50 +00:00
|
|
|
|
|
|
|
#define GETIN_ACTIONS \
|
|
|
|
class ACE_Actions { \
|
|
|
|
class ACE_MainActions { \
|
|
|
|
class GVAR(GetIn) { \
|
|
|
|
displayName = "$STR_rscMenu.hppRscGroupRootMenu_Items_GetIn1"; \
|
|
|
|
condition = QUOTE(call DFUNC(canShowFreeSeats)); \
|
|
|
|
statement = QUOTE(call DFUNC(getInNearest)); \
|
|
|
|
exceptions[] = {"isNotSwimming"}; \
|
2023-11-05 18:36:00 +00:00
|
|
|
insertChildren = QUOTE((_this select 2) param [ARR_2(0,[])]); \
|
2018-11-19 04:33:50 +00:00
|
|
|
}; \
|
|
|
|
}; \
|
|
|
|
}; \
|
|
|
|
class ACE_SelfActions { \
|
|
|
|
class GVAR(ChangeSeat) { \
|
|
|
|
displayName = CSTRING(ChangeSeat); \
|
2021-02-27 16:36:10 +00:00
|
|
|
icon = QPATHTOF(UI\Seats_ca.paa); \
|
2018-11-19 04:33:50 +00:00
|
|
|
condition = QUOTE(call DFUNC(canShowFreeSeats)); \
|
2021-02-04 17:01:35 +00:00
|
|
|
insertChildren = QUOTE(call DFUNC(addFreeSeatsActions)); \
|
2018-11-19 04:33:50 +00:00
|
|
|
}; \
|
|
|
|
}
|
|
|
|
|
|
|
|
class LandVehicle;
|
|
|
|
class Car: LandVehicle {
|
|
|
|
GETIN_ACTIONS;
|
|
|
|
};
|
|
|
|
class Motorcycle: LandVehicle {
|
|
|
|
GETIN_ACTIONS;
|
|
|
|
};
|
|
|
|
class StaticWeapon: LandVehicle {
|
|
|
|
GETIN_ACTIONS;
|
|
|
|
};
|
|
|
|
class Tank: LandVehicle {
|
|
|
|
GETIN_ACTIONS;
|
|
|
|
};
|
|
|
|
class Air;
|
|
|
|
class Helicopter: Air {
|
|
|
|
GETIN_ACTIONS;
|
|
|
|
};
|
|
|
|
class Plane: Air {
|
|
|
|
GETIN_ACTIONS;
|
|
|
|
};
|
|
|
|
class Ship;
|
|
|
|
class Ship_F: Ship {
|
|
|
|
GETIN_ACTIONS;
|
|
|
|
};
|
|
|
|
|
2017-06-02 21:51:07 +00:00
|
|
|
};
|