-
Notifications
You must be signed in to change notification settings - Fork 735
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
47 changed files
with
1,104 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
z\ace\addons\missile_sdb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
class EGVAR(missileguidance,type_Jdam); | ||
class CfgAmmo { | ||
class ammo_Bomb_SDB; | ||
class GVAR(sdb): ammo_Bomb_SDB { | ||
author = "Dani (TCVM)"; | ||
maneuvrability = 0; // no maneuvrability so that default guidance doesnt work | ||
class ace_missileguidance: EGVAR(missileguidance,type_Jdam) { | ||
enabled = 1; | ||
}; | ||
}; | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
class CfgMagazines { | ||
class magazine_Bomb_SDB_x1; | ||
class PylonRack_Bomb_SDB_x4; | ||
class GVAR(magazine_bomb_SDB_x1): magazine_Bomb_SDB_x1 { | ||
displayName = CSTRING(39_1x); | ||
author = "Dani (TCVM)"; | ||
ammo = QGVAR(sdb); | ||
}; | ||
|
||
class GVAR(PylonRack_bomb_SDB_x4): PylonRack_Bomb_SDB_x4 { | ||
displayName = CSTRING(39_4x); | ||
author = "Dani (TCVM)"; | ||
ammo = QGVAR(sdb); | ||
pylonWeapon = QGVAR(sdb); | ||
}; | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
class CfgWeapons { | ||
class weapon_SDBLauncher; | ||
class GVAR(sdb): weapon_SDBLauncher { | ||
author = "Dani (TCVM)"; | ||
displayName = CSTRING(39); | ||
magazines[] = { | ||
QGVAR(magazine_bomb_SDB_x1), | ||
QGVAR(PylonRack_bomb_SDB_x4) | ||
}; | ||
}; | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
ace_missile_sdb | ||
=================== | ||
|
||
Adds GBU-39 SDB |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#include "script_component.hpp" | ||
|
||
class CfgPatches { | ||
class ADDON { | ||
name = COMPONENT_NAME; | ||
units[] = {}; | ||
weapons[] = {}; | ||
requiredVersion = REQUIRED_VERSION; | ||
requiredAddons[] = {"ace_common","ace_missileguidance"}; | ||
author = ECSTRING(common,ACETeam); | ||
authors[] = {"tcvm"}; | ||
url = ECSTRING(main,URL); | ||
VERSION_CONFIG; | ||
}; | ||
}; | ||
|
||
#include "CfgAmmo.hpp" | ||
#include "CfgMagazines.hpp" | ||
#include "CfgWeapons.hpp" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#define COMPONENT missile_sdb | ||
#define COMPONENT_BEAUTIFIED Small Diameter Bomb | ||
#include "\z\ace\addons\main\script_mod.hpp" | ||
|
||
// #define DEBUG_MODE_FULL | ||
// #define DISABLE_COMPILE_CACHE | ||
// #define ENABLE_PERFORMANCE_COUNTERS | ||
|
||
#ifdef DEBUG_ENABLED_MISSILE_SDB | ||
#define DEBUG_MODE_FULL | ||
#endif | ||
|
||
#ifdef DEBUG_SETTINGS_MISSILE_SDB | ||
#define DEBUG_SETTINGS DEBUG_SETTINGS_MISSILE_SDB | ||
#endif | ||
|
||
#include "\z\ace\addons\main\script_macros.hpp" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project name="ACE"> | ||
<Package name="MISSILE_SDB"> | ||
<Key ID="STR_ACE_MISSILE_SDB_39"> | ||
<English>GBU-39 [ACE]</English> | ||
</Key> | ||
<Key ID="STR_ACE_MISSILE_SDB_39_1x"> | ||
<English>1x GBU-39 [ACE]</English> | ||
</Key> | ||
<Key ID="STR_ACE_MISSILE_SDB_39_4x"> | ||
<English>4x GBU-39 [ACE]</English> | ||
</Key> | ||
</Package> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,247 @@ | ||
#include "\a3\ui_f\hpp\defineCommonGrids.inc" | ||
#include "\a3\ui_f\hpp\defineCommonColors.inc" | ||
#include "idc_defines.hpp" | ||
|
||
class RscText; | ||
class RscEdit; | ||
class RscPicture; | ||
class RscButton; | ||
class ctrlXSliderH; | ||
|
||
class GVAR(gpsAttackOptionsUI) { | ||
idd = -1; | ||
movingEnable = 1; | ||
enableSimulation = 1; | ||
onLoad = QUOTE(_this call FUNC(gps_onLoad)); | ||
onUnload = QUOTE(call FUNC(gps_onUnload)); | ||
class controlsBackground { | ||
class Header: RscText { | ||
idc = -1; | ||
text = CSTRING(GPS_ui_header); | ||
x = QUOTE(13.5 * GUI_GRID_W + GUI_GRID_CENTER_X); | ||
y = QUOTE(5 * GUI_GRID_H + GUI_GRID_CENTER_Y); | ||
w = QUOTE(18 * GUI_GRID_W); | ||
h = QUOTE(GUI_GRID_H); | ||
colorBackground[] = GUI_BCG_COLOR; | ||
moving = 1; | ||
}; | ||
class Background: RscText { | ||
idd = -1; | ||
x = QUOTE(13.5 * GUI_GRID_W + GUI_GRID_CENTER_X); | ||
y = QUOTE(6.1 * GUI_GRID_H + GUI_GRID_CENTER_Y); | ||
w = QUOTE(18 * GUI_GRID_W); | ||
h = QUOTE(8.0 * GUI_GRID_H); | ||
colorBackground[] = {0, 0, 0, 0.8}; | ||
}; | ||
}; | ||
class controls { | ||
class TOOButton: RscButton { | ||
idc = GPS_UI_TOO; | ||
text = CSTRING(GPS_ui_too); | ||
onButtonClick = QUOTE([GPS_UI_TOO] call FUNC(gps_modeSelect)); | ||
x = QUOTE(14 * GUI_GRID_W + GUI_GRID_CENTER_X); | ||
y = QUOTE(6.3 * GUI_GRID_H + GUI_GRID_CENTER_Y); | ||
w = QUOTE(10 * GUI_GRID_W); | ||
h = QUOTE(GUI_GRID_H); | ||
colorActive[] = {0, 0, 0, 1}; | ||
colorBackground[] = GUI_BCG_COLOR; | ||
colorFocused[] = {0, 0, 0, 0.8}; | ||
}; | ||
|
||
class PPButton: RscButton { | ||
idc = GPS_UI_PB; | ||
text = CSTRING(GPS_ui_pp); | ||
onButtonClick = QUOTE([GPS_UI_PB] call FUNC(gps_modeSelect)); | ||
x = QUOTE(26 * GUI_GRID_W + GUI_GRID_CENTER_X); | ||
y = QUOTE(6.3 * GUI_GRID_H + GUI_GRID_CENTER_Y); | ||
w = QUOTE(5 * GUI_GRID_W); | ||
h = QUOTE(GUI_GRID_H); | ||
colorActive[] = {0, 0, 0, 1}; | ||
colorBackground[] = GUI_BCG_COLOR; | ||
colorFocused[] = {0, 0, 0, 0.8}; | ||
}; | ||
|
||
class PPMission: RscText { | ||
idc = GPS_UI_PB_MISSION; | ||
text = CSTRING(GPS_ui_pp_short); | ||
onButtonClick = ""; | ||
x = QUOTE(27.5 * GUI_GRID_W + GUI_GRID_CENTER_X); | ||
y = QUOTE(7.5 * GUI_GRID_H + GUI_GRID_CENTER_Y); | ||
w = QUOTE(2 * GUI_GRID_W); | ||
h = QUOTE(GUI_GRID_H); | ||
colorActive[] = {0, 0, 0, 1}; | ||
colorBackground[] = {0, 0, 0, 1}; | ||
colorFocused[] = {0, 0, 0, 0.8}; | ||
align = QUOTE(CENTER); | ||
style = 2; | ||
}; | ||
|
||
class PPMissionBackward: RscButton { | ||
idc = GPS_UI_PB_MISSION_BACKWARD; | ||
text = "<<"; | ||
onButtonClick = QUOTE([-1] call FUNC(gps_pbModeCycle)); | ||
x = QUOTE(26 * GUI_GRID_W + GUI_GRID_CENTER_X); | ||
y = QUOTE(7.5 * GUI_GRID_H + GUI_GRID_CENTER_Y); | ||
w = QUOTE(1 * GUI_GRID_W); | ||
h = QUOTE(GUI_GRID_H); | ||
colorActive[] = {0, 0, 0, 1}; | ||
colorBackground[] = {0, 0, 0, 0.8}; | ||
colorFocused[] = {0, 0, 0, 0.8}; | ||
}; | ||
|
||
class PPMissionForward: RscButton { | ||
idc = GPS_UI_PB_MISSION_FORWARD; | ||
text = ">>"; | ||
onButtonClick = QUOTE([1] call FUNC(gps_pbModeCycle)); | ||
x = QUOTE(30 * GUI_GRID_W + GUI_GRID_CENTER_X); | ||
y = QUOTE(7.5 * GUI_GRID_H + GUI_GRID_CENTER_Y); | ||
w = QUOTE(1 * GUI_GRID_W); | ||
h = QUOTE(GUI_GRID_H); | ||
colorActive[] = {0, 0, 0, 1}; | ||
colorBackground[] = {0, 0, 0, 0.8}; | ||
colorFocused[] = {0, 0, 0, 0.8}; | ||
}; | ||
|
||
class TargetPosXText: RscText { | ||
idc = -1; | ||
text = CSTRING(GPS_ui_easting); | ||
x = QUOTE(14 * GUI_GRID_W + GUI_GRID_CENTER_X); | ||
y = QUOTE(8.5 * GUI_GRID_H + GUI_GRID_CENTER_Y); | ||
w = QUOTE(3 * GUI_GRID_W); | ||
h = QUOTE(GUI_GRID_H); | ||
colorActive[] = {0, 0, 0, 1}; | ||
colorBackground[] = {0, 0, 0, 0}; | ||
colorFocused[] = {0, 0, 0, 0.8}; | ||
maxChars = 10; | ||
}; | ||
class TargetPosX: RscEdit { | ||
idc = GPS_UI_EASTING; | ||
text = ""; | ||
x = QUOTE(17.3 * GUI_GRID_W + GUI_GRID_CENTER_X); | ||
y = QUOTE(8.5 * GUI_GRID_H + GUI_GRID_CENTER_Y); | ||
w = QUOTE(2.5 * GUI_GRID_W); | ||
h = QUOTE(GUI_GRID_H); | ||
colorActive[] = {0, 0, 0, 1}; | ||
colorBackground[] = {0, 0, 0, 0.8}; | ||
colorFocused[] = {0, 0, 0, 0.8}; | ||
maxChars = 5; | ||
}; | ||
|
||
class TargetPosYText: RscText { | ||
idc = -1; | ||
text = CSTRING(GPS_ui_northing); | ||
x = QUOTE(14 * GUI_GRID_W + GUI_GRID_CENTER_X); | ||
y = QUOTE(9.7 * GUI_GRID_H + GUI_GRID_CENTER_Y); | ||
w = QUOTE(3 * GUI_GRID_W); | ||
h = QUOTE(GUI_GRID_H); | ||
colorActive[] = {0, 0, 0, 1}; | ||
colorBackground[] = {0, 0, 0, 0}; | ||
colorFocused[] = {0, 0, 0, 0.8}; | ||
maxChars = 5; | ||
}; | ||
class TargetPosY: TargetPosX { | ||
idc = GPS_UI_NORTHING; | ||
x = QUOTE(17.3 * GUI_GRID_W + GUI_GRID_CENTER_X); | ||
y = QUOTE(9.7 * GUI_GRID_H + GUI_GRID_CENTER_Y); | ||
}; | ||
|
||
class TargetPosHeightText: RscText { | ||
idc = -1; | ||
text = CSTRING(GPS_ui_altitude); | ||
x = QUOTE(14 * GUI_GRID_W + GUI_GRID_CENTER_X); | ||
y = QUOTE(11.7 * GUI_GRID_H + GUI_GRID_CENTER_Y); | ||
w = QUOTE(3 * GUI_GRID_W); | ||
h = QUOTE(GUI_GRID_H); | ||
colorActive[] = {0, 0, 0, 1}; | ||
colorBackground[] = {0, 0, 0, 0}; | ||
colorFocused[] = {0, 0, 0, 0.8}; | ||
maxChars = 5; | ||
}; | ||
class TargetPosHeight: TargetPosX { | ||
idc = GPS_UI_HEIGHT; | ||
x = QUOTE(17.3 * GUI_GRID_W + GUI_GRID_CENTER_X); | ||
y = QUOTE(11.7 * GUI_GRID_H + GUI_GRID_CENTER_Y); | ||
}; | ||
class TargetPosHeightUnits: RscText { | ||
idc = -1; | ||
text = "m"; | ||
x = QUOTE(19.6 * GUI_GRID_W + GUI_GRID_CENTER_X); | ||
y = QUOTE(11.7 * GUI_GRID_H + GUI_GRID_CENTER_Y); | ||
w = QUOTE(1 * GUI_GRID_W); | ||
h = QUOTE(GUI_GRID_H); | ||
colorActive[] = {0, 0, 0, 1}; | ||
colorBackground[] = {0, 0, 0, 0}; | ||
colorFocused[] = {0, 0, 0, 0.8}; | ||
maxChars = 5; | ||
}; | ||
|
||
class ImpactAngleText: RscText { | ||
idc = -1; | ||
text = CSTRING(GPS_ui_impact_angle); | ||
x = QUOTE(21 * GUI_GRID_W + GUI_GRID_CENTER_X); | ||
y = QUOTE(9.7 * GUI_GRID_H + GUI_GRID_CENTER_Y); | ||
w = QUOTE(4 * GUI_GRID_W); | ||
h = QUOTE(GUI_GRID_H); | ||
colorActive[] = {0, 0, 0, 1}; | ||
colorBackground[] = {0, 0, 0, 0}; | ||
colorFocused[] = {0, 0, 0, 0.8}; | ||
maxChars = 5; | ||
}; | ||
class ImpactAngle: RscEdit { | ||
idc = GPS_UI_ANGLE; | ||
x = QUOTE(26.3 * GUI_GRID_W + GUI_GRID_CENTER_X); | ||
y = QUOTE(9.7 * GUI_GRID_H + GUI_GRID_CENTER_Y); | ||
w = QUOTE(2 * GUI_GRID_W); | ||
h = QUOTE(GUI_GRID_H); | ||
text = ""; | ||
colorActive[] = {0, 0, 0, 1}; | ||
colorBackground[] = {0, 0, 0, 0.8}; | ||
colorFocused[] = {0, 0, 0, 0.8}; | ||
maxChars = 2; | ||
}; | ||
|
||
class AttackHeadingText: RscText { | ||
idc = -1; | ||
text = CSTRING(GPS_ui_attack_heading); | ||
x = QUOTE(21 * GUI_GRID_W + GUI_GRID_CENTER_X); | ||
y = QUOTE(11 * GUI_GRID_H + GUI_GRID_CENTER_Y); | ||
w = QUOTE(5 * GUI_GRID_W); | ||
h = QUOTE(GUI_GRID_H); | ||
colorActive[] = {0, 0, 0, 1}; | ||
colorBackground[] = {0, 0, 0, 0}; | ||
colorFocused[] = {0, 0, 0, 0.8}; | ||
maxChars = 5; | ||
}; | ||
class AttackHeading: RscEdit { | ||
idc = GPS_UI_HEADING; | ||
x = QUOTE(26.3 * GUI_GRID_W + GUI_GRID_CENTER_X); | ||
y = QUOTE(11 * GUI_GRID_H + GUI_GRID_CENTER_Y); | ||
w = QUOTE(2 * GUI_GRID_W); | ||
h = QUOTE(GUI_GRID_H); | ||
text = ""; | ||
colorActive[] = {0, 0, 0, 1}; | ||
colorBackground[] = {0, 0, 0, 0.8}; | ||
colorFocused[] = {0, 0, 0, 0.8}; | ||
maxChars = 3; | ||
}; | ||
|
||
class CancelButton: RscButton { | ||
idc = -1; | ||
text = ECSTRING(common,cancel); | ||
onButtonClick = QUOTE(closeDialog 0); | ||
x = QUOTE(13.5 * GUI_GRID_W + GUI_GRID_CENTER_X); | ||
y = QUOTE(14.2 * GUI_GRID_H + GUI_GRID_CENTER_Y); | ||
w = QUOTE(5 * GUI_GRID_W); | ||
h = QUOTE(GUI_GRID_H); | ||
colorActive[] = {0, 0, 0, 1}; | ||
colorBackground[] = {0, 0, 0, 0.8}; | ||
colorFocused[] = {0, 0, 0, 0.8}; | ||
}; | ||
class ConfirmButton: CancelButton { | ||
idc = IDC_TIMER_CONFIRM; | ||
text = ECSTRING(common,confirm); | ||
onButtonClick = QUOTE([] call FUNC(gps_confirm)); | ||
x = QUOTE(27.5 * GUI_GRID_W + GUI_GRID_CENTER_X); | ||
}; | ||
}; | ||
}; |
Oops, something went wrong.