Skip to content

Commit 2373980

Browse files
authored
Merge pull request #20 from johnb432/dev
1.3.9.0
2 parents 09316f8 + 39e64f9 commit 2373980

File tree

5 files changed

+35
-1
lines changed

5 files changed

+35
-1
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# Changelog for AIMEE 27.9.2025
2+
3+
1.3.9.0
4+
- Added search light interactions.
5+
16
# Changelog for AIMEE 29.6.2025
27

38
1.3.8.0

addons/main/script_version.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#define MAJOR 1
22
#define MINOR 3
3-
#define PATCHLVL 8
3+
#define PATCHLVL 9
44
#define BUILD 0

addons/vehicle_controls/CfgVehicles.hpp

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,20 @@
7171
statement = QUOTE(_target setCollisionLight false);\
7272
}
7373

74+
#define SEARCH_LIGHT_ACTION \
75+
class GVAR(searchLightOnAction) {\
76+
condition = QUOTE(GVAR(settingSearchAction) && {(_target unitTurret _player) isEqualTo [0]} && {!isLightOn [ARR_2(_target,[0])]});\
77+
displayName = CQSTRING(STR_action_searchlights_on);\
78+
icon = ICON_LIGHTS_ON;\
79+
statement = QPACTION('SearchLightOn',_target);\
80+
};\
81+
class GVAR(searchLightOffAction) {\
82+
condition = QUOTE(GVAR(settingSearchAction) && {(_target unitTurret _player) isEqualTo [0]} && {isLightOn [ARR_2(_target,[0])]});\
83+
displayName = CQSTRING(STR_action_searchlights_off);\
84+
icon = ICON_LIGHTS_OFF;\
85+
statement = QPACTION('SearchLightOff',_target);\
86+
}
87+
7488
#define HOVER_ACTION \
7589
class GVAR(hoverAction) {\
7690
condition = QUOTE(GVAR(settingHoverAction) && {'AutoHover' call EFUNC(main,ignoreKeybind)} && {!isAutoHoverOn _target} && {[ARR_2(_player,_target)] call FUNC(isDriver)});\
@@ -136,6 +150,12 @@ class CfgVehicles {
136150
HOVER_ACTION;
137151
};
138152
};
153+
class Helicopter_Base_F: Helicopter {};
154+
class Heli_light_03_base_F: Helicopter_Base_F {
155+
class ACE_SelfActions: ACE_SelfActions {
156+
SEARCH_LIGHT_ACTION;
157+
};
158+
};
139159

140160
class Plane: Air {
141161
class ACE_SelfActions {

addons/vehicle_controls/XEH_preInit.sqf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ ADDON = false;
77
// CBA Settings
88
SETTING(settingGearAction,"CHECKBOX",true);
99
SETTING(settingCollisionAction,"CHECKBOX",true);
10+
SETTING(settingSearchAction,"CHECKBOX",true);
1011
SETTING(settingLightsAction,"CHECKBOX",true);
1112
SETTING(settingHoverAction,"CHECKBOX",true);
1213
SETTING(settingManualAction,"CHECKBOX",true);

addons/vehicle_controls/stringtable.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,14 @@
7979
<Original>Allows the player to toggle manual fire using the ACE interaction menu.</Original>
8080
<English>Allows the player to toggle manual fire using the ACE interaction menu.</English>
8181
</Key>
82+
<Key ID="STR_AIMEE_vehicle_controls_settingSearchAction">
83+
<Original>Enable search light toggle</Original>
84+
<English>Enable search light toggle</English>
85+
</Key>
86+
<Key ID="STR_AIMEE_vehicle_controls_settingSearchAction_ToolTip">
87+
<Original>Allows the player to toggle search lights using the ACE interaction menu.</Original>
88+
<English>Allows the player to toggle search lights using the ACE interaction menu.</English>
89+
</Key>
8290
<Key ID="STR_AIMEE_vehicle_controls_settingTakeControlsAction">
8391
<Original>Enable taking controls for helicopters</Original>
8492
<English>Enable taking controls for helicopters</English>

0 commit comments

Comments
 (0)