forked from acemod/ACE3
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Compat RHS/Hellfire - Use RHS models when loaded (acemod#10076)
Co-authored-by: PabstMirror <[email protected]>
- Loading branch information
1 parent
aed2222
commit bdb6c7c
Showing
9 changed files
with
86 additions
and
31 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,8 @@ | ||
class CfgAmmo { | ||
// Use RHS Hellfire 3D Model on ACE Hellfires | ||
class M_Scalpel_AT; | ||
class ACE_Hellfire_AGM114K: M_Scalpel_AT { | ||
model = "\rhsusf\addons\rhsusf_airweapons\proxyammo\rhsusf_m_AGM114K_fly"; | ||
proxyShape = "\rhsusf\addons\rhsusf_airweapons\proxyammo\rhsusf_m_AGM114K"; | ||
}; | ||
}; |
11 changes: 11 additions & 0 deletions
11
addons/compat_rhs_usf3/compat_rhs_usf3_hellfire/CfgMagazineWells.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,11 @@ | ||
class CfgMagazineWells { | ||
class ace_hellfire_K { | ||
ADDON[] = {QGVAR(pylon_mag_2rnd_hellfire_k), QGVAR(pylon_mag_4rnd_hellfire_k)}; | ||
}; | ||
class ace_hellfire_N { | ||
ADDON[] = {QGVAR(pylon_mag_2rnd_hellfire_n), QGVAR(pylon_mag_4rnd_hellfire_n)}; | ||
}; | ||
class ace_hellfire_L { | ||
ADDON[] = {QGVAR(pylon_mag_2rnd_hellfire_l), QGVAR(pylon_mag_4rnd_hellfire_l)}; | ||
}; | ||
}; |
37 changes: 37 additions & 0 deletions
37
addons/compat_rhs_usf3/compat_rhs_usf3_hellfire/CfgMagazines.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,37 @@ | ||
class CfgMagazines { | ||
// 2x ACE Hellfire racks | ||
class rhs_mag_AGM114K_2; | ||
class GVAR(pylon_mag_2rnd_hellfire_k): rhs_mag_AGM114K_2 { | ||
displayName = "2x AGM-114K [ACE]"; | ||
pylonWeapon = "ace_hellfire_launcher"; | ||
ammo = "ACE_Hellfire_AGM114K"; | ||
}; | ||
class GVAR(pylon_mag_2rnd_hellfire_n): rhs_mag_AGM114K_2 { | ||
displayName = "2x AGM-114N [ACE]"; | ||
pylonWeapon = "ace_hellfire_launcher_N"; | ||
ammo = "ACE_Hellfire_AGM114N"; | ||
}; | ||
class GVAR(pylon_mag_2rnd_hellfire_l): rhs_mag_AGM114K_2 { | ||
displayName = "2x AGM-114L [ACE]"; | ||
pylonWeapon = "ace_hellfire_launcher_L"; | ||
ammo = "ACE_Hellfire_AGM114L"; | ||
}; | ||
|
||
// 4x ACE Hellfire racks that align better on RHS Apaches and Blackhawks than the standard ACE 4x racks | ||
class rhs_mag_AGM114K_4; | ||
class GVAR(pylon_mag_4rnd_hellfire_k): rhs_mag_AGM114K_4 { | ||
displayName = "4x AGM-114K [ACE]"; | ||
pylonWeapon = "ace_hellfire_launcher"; | ||
ammo = "ACE_Hellfire_AGM114K"; | ||
}; | ||
class GVAR(pylon_mag_4rnd_hellfire_n): rhs_mag_AGM114K_4 { | ||
displayName = "4x AGM-114N [ACE]"; | ||
pylonWeapon = "ace_hellfire_launcher_N"; | ||
ammo = "ACE_Hellfire_AGM114N"; | ||
}; | ||
class GVAR(pylon_mag_4rnd_hellfire_l): rhs_mag_AGM114K_4 { | ||
displayName = "4x AGM-114L [ACE]"; | ||
pylonWeapon = "ace_hellfire_launcher_L"; | ||
ammo = "ACE_Hellfire_AGM114L"; | ||
}; | ||
}; |
25 changes: 25 additions & 0 deletions
25
addons/compat_rhs_usf3/compat_rhs_usf3_hellfire/config.cpp
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,25 @@ | ||
#include "script_component.hpp" | ||
|
||
class CfgPatches { | ||
class SUBADDON { | ||
name = COMPONENT_NAME; | ||
units[] = {}; | ||
weapons[] = {}; | ||
requiredVersion = REQUIRED_VERSION; | ||
requiredAddons[] = { | ||
"rhsusf_main_loadorder", | ||
"ace_hellfire" | ||
}; | ||
skipWhenMissingDependencies = 1; | ||
author = ECSTRING(common,ACETeam); | ||
authors[] = {}; | ||
url = ECSTRING(main,URL); | ||
VERSION_CONFIG; | ||
|
||
addonRootClass = QUOTE(ADDON); | ||
}; | ||
}; | ||
|
||
#include "CfgAmmo.hpp" | ||
#include "CfgMagazines.hpp" | ||
#include "CfgMagazineWells.hpp" |
3 changes: 3 additions & 0 deletions
3
addons/compat_rhs_usf3/compat_rhs_usf3_hellfire/script_component.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,3 @@ | ||
#define SUBCOMPONENT hellfire | ||
#define SUBCOMPONENT_BEAUTIFIED Hellfire | ||
#include "..\script_component.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
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