Compat_rhs_afrf3 - Add RHS:AFRF explosives compatibility (#7734)

* initial + tm62m

* more mines and explosives

* more mines

* add defuse positions

* additional dependency

Two of the mines (rhs_mag_mine_pfm1 & rhs_mag_mine_ptm1) are defined in rhs_c_airweapons

* remove redundant attributes
This commit is contained in:
Whigital 2020-06-13 22:57:28 +02:00 committed by GitHub
parent 56b397ffa7
commit 8882434200
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 357 additions and 3 deletions

View File

@ -1,4 +1,3 @@
class CfgAmmo {
class BulletBase;
class B_556x45_Ball;
@ -207,4 +206,52 @@ class CfgAmmo {
ace_frag_force = 0;
};
// ACE Explosives
class MineBase;
class rhs_mine_tm62m_ammo: MineBase {
ace_explosives_defuseObjectPosition[] = {-0.005, 0.025, 0.06};
};
class rhs_mine_pmn2_ammo: MineBase {
ace_explosives_defuseObjectPosition[] = {0, 0, 0.012};
};
class ATMine_Range_Ammo;
class rhs_ammo_ptm1: ATMine_Range_Ammo {
ace_explosives_defuseObjectPosition[] = {0, 0.17, 0.02};
};
class APERSMine_Range_Ammo;
class rhs_ammo_pfm1: APERSMine_Range_Ammo {
ace_explosives_defuseObjectPosition[] = {0.015, -0.018, 0};
};
class PipeBombBase;
class rhs_ec75_ammo: PipeBombBase {
ace_explosives_defuseObjectPosition[] = {0, 0.04, 0.02};
};
class rhs_ec200_ammo: rhs_ec75_ammo {
ace_explosives_defuseObjectPosition[] = {0, 0.05, 0.008};
};
class rhs_ec400_ammo: rhs_ec75_ammo {
ace_explosives_defuseObjectPosition[] = {0, 0.03, 0.02};
};
class rhs_mine_msk40p_white_ammo: APERSMine_Range_Ammo {
ace_explosives_defuseObjectPosition[] = {0.025, 0, 0.4};
};
class rhs_mine_sm320_white_ammo: rhs_mine_msk40p_white_ammo {
ace_explosives_defuseObjectPosition[] = {0.01, 0, 0.25};
};
class rhs_mine_ozm72_a_ammo: APERSMine_Range_Ammo {
ace_explosives_defuseObjectPosition[] = {0, -0.125, 0.11};
};
class rhs_mine_ozm72_c_ammo: rhs_mine_ozm72_a_ammo {
ace_explosives_defuseObjectPosition[] = {0, -0.015, 0.12};
};
};

View File

@ -146,4 +146,149 @@ class cfgMagazines {
picture = QPATHTOEF(csw,UI\ammoBox_50bmg_ca.paa);
};
// ACE Explosives
class ATMine_Range_Mag;
class rhs_mine_tm62m_mag: ATMine_Range_Mag {
ace_explosives_SetupObject = "ACE_Explosives_Place_rhs_mine_tm62m";
class ACE_Triggers {
SupportedTriggers[] = {"PressurePlate"};
class PressurePlate {
digDistance = 0.09;
};
};
};
class rhs_mine_pmn2_mag: ATMine_Range_Mag {
ace_explosives_SetupObject = "ACE_Explosives_Place_rhs_mine_pmn2";
class ACE_Triggers {
SupportedTriggers[] = {"PressurePlate"};
class PressurePlate {
digDistance = 0.02;
};
};
};
class rhs_mag_mine_ptm1: ATMine_Range_Mag {
ace_explosives_SetupObject = "ACE_Explosives_Place_rhs_mine_ptm1";
class ACE_Triggers {
SupportedTriggers[] = {"PressurePlate"};
class PressurePlate {
digDistance = 0.04;
};
};
};
class rhs_mag_mine_pfm1: ATMine_Range_Mag {
ace_explosives_SetupObject = "ACE_Explosives_Place_rhs_mine_pfm1";
class ACE_Triggers {
SupportedTriggers[] = {"PressurePlate"};
class PressurePlate {
digDistance = 0.02;
};
};
};
class rhs_ec75_mag: ATMine_Range_Mag {
ace_explosives_DelayTime = 1;
ace_explosives_SetupObject = "ACE_Explosives_Place_rhs_ec75";
useAction = 0;
class ACE_Triggers {
SupportedTriggers[] = {"Timer", "Command", "MK16_Transmitter", "DeadmanSwitch"};
class Timer {
FuseTime = 0.5;
};
class Command {
FuseTime = 0.5;
};
class MK16_Transmitter: Command {};
class DeadmanSwitch: Command {};
};
};
class rhs_ec75_sand_mag: rhs_ec75_mag {
ace_explosives_SetupObject = "ACE_Explosives_Place_rhs_ec75_sand";
};
class rhs_ec200_mag: rhs_ec75_mag {
ace_explosives_SetupObject = "ACE_Explosives_Place_rhs_ec200";
};
class rhs_ec200_sand_mag: rhs_ec200_mag {
ace_explosives_SetupObject = "ACE_Explosives_Place_rhs_ec200_sand";
};
class rhs_ec400_mag: rhs_ec75_mag {
ace_explosives_SetupObject = "ACE_Explosives_Place_rhs_ec400";
};
class rhs_ec400_sand_mag: rhs_ec400_mag {
ace_explosives_SetupObject = "ACE_Explosives_Place_rhs_ec400_sand";
};
class rhs_mine_msk40p_white_mag: ATMine_Range_Mag {
ace_explosives_SetupObject = "ACE_Explosives_Place_rhs_mine_msk40p_white";
class ACE_Triggers {
SupportedTriggers[] = {"Tripwire"};
class Tripwire {
digDistance = 0.07;
};
};
};
class rhs_mine_msk40p_red_mag: rhs_mine_msk40p_white_mag {
ace_explosives_SetupObject = "ACE_Explosives_Place_rhs_mine_msk40p_red";
};
class rhs_mine_msk40p_green_mag: rhs_mine_msk40p_white_mag {
ace_explosives_SetupObject = "ACE_Explosives_Place_rhs_mine_msk40p_green";
};
class rhs_mine_msk40p_blue_mag: rhs_mine_msk40p_white_mag {
ace_explosives_SetupObject = "ACE_Explosives_Place_rhs_mine_msk40p_blue";
};
class rhs_mine_sm320_white_mag: rhs_mine_msk40p_white_mag {
ace_explosives_SetupObject = "ACE_Explosives_Place_rhs_mine_sm320_white";
class ACE_Triggers {
SupportedTriggers[] = {"Tripwire"};
class Tripwire {
digDistance = 0.05;
};
};
};
class rhs_mine_sm320_red_mag: rhs_mine_sm320_white_mag {
ace_explosives_SetupObject = "ACE_Explosives_Place_rhs_mine_sm320_red";
};
class rhs_mine_sm320_green_mag: rhs_mine_sm320_white_mag {
ace_explosives_SetupObject = "ACE_Explosives_Place_rhs_mine_sm320_green";
};
class rhs_mine_ozm72_a_mag: ATMine_Range_Mag {
ace_explosives_SetupObject = "ACE_Explosives_Place_rhs_mine_ozm72_a";
class ACE_Triggers {
SupportedTriggers[] = {"Tripwire"};
class Tripwire {
digDistance = 0.04;
};
};
};
class rhs_mine_ozm72_b_mag: rhs_mine_ozm72_a_mag {
ace_explosives_SetupObject = "ACE_Explosives_Place_rhs_mine_ozm72_b";
};
class rhs_mine_ozm72_c_mag: rhs_mine_ozm72_a_mag {
ace_explosives_DelayTime = 1;
ace_explosives_SetupObject = "ACE_Explosives_Place_rhs_mine_ozm72_c";
useAction = 0;
class ACE_Triggers {
SupportedTriggers[] = {"Command", "MK16_Transmitter"};
class Command {
FuseTime = 0.5;
};
class MK16_Transmitter: Command {};
};
};
};

View File

@ -357,4 +357,167 @@ class CfgVehicles {
ammoUnloadTime = 5;
};
};
// ACE Explosives
class Items_base_F;
class ACE_Explosives_Place: Items_base_F {
class ACE_Actions {
class ACE_MainActions;
};
};
class ACE_Explosives_Place_rhs_mine_tm62m: ACE_Explosives_Place {
displayName = "$STR_RHS_CFGMAGAZINES_TM62M0";
model = "\rhsafrf\addons\rhs_weapons\mines\rhs_tm62m";
class ACE_Actions: ACE_Actions {
class ACE_MainActions: ACE_MainActions {
position = "[0.005, -0.025, 0.06]";
};
};
};
class ACE_Explosives_Place_rhs_mine_pmn2: ACE_Explosives_Place {
displayName = "$STR_RHS_CFGMAGAZINES_PMN20";
model = "\rhsafrf\addons\rhs_weapons\mines\rhs_pmn2";
class ACE_Actions: ACE_Actions {
class ACE_MainActions: ACE_MainActions {
position = "[0, 0, 0.012]";
};
};
};
class ACE_Explosives_Place_rhs_mine_ptm1: ACE_Explosives_Place {
displayName = "$STR_RHS_PTM1_NAME";
model = "\rhsafrf\addons\rhs_airweapons\rhs_m_ptm1_d";
class ACE_Actions: ACE_Actions {
class ACE_MainActions: ACE_MainActions {
position = "[0, -0.17, 0.02]";
};
};
};
class ACE_Explosives_Place_rhs_mine_pfm1: ACE_Explosives_Place {
displayName = "$STR_RHS_PFM1_NAME";
model = "\rhsafrf\addons\rhs_airweapons\rhs_m_pfm1_d";
class ACE_Actions: ACE_Actions {
class ACE_MainActions: ACE_MainActions {
position = "[-0.015, 0.018, 0]";
};
};
};
class ACE_Explosives_Place_rhs_ec75: ACE_Explosives_Place {
displayName = "$STR_RHS_CFGMAGAZINES_EC75";
model = "\rhsafrf\addons\rhs_weapons2\explosives\rhs_ec75_e";
class ACE_Actions: ACE_Actions {
class ACE_MainActions: ACE_MainActions {
position = "[0, -0.04, 0.02]";
};
};
};
class ACE_Explosives_Place_rhs_ec75_sand: ACE_Explosives_Place_rhs_ec75 {
displayName = "$STR_RHS_CFGMAGAZINES_EC75_SAND";
model = "\rhsafrf\addons\rhs_weapons2\explosives\rhs_ec75_sand_e";
};
class ACE_Explosives_Place_rhs_ec200: ACE_Explosives_Place {
displayName = "$STR_RHS_CFGMAGAZINES_EC200";
model = "\rhsafrf\addons\rhs_weapons2\explosives\rhs_ec200_e";
class ACE_Actions: ACE_Actions {
class ACE_MainActions: ACE_MainActions {
position = "[0, -0.05, 0.008]";
};
};
};
class ACE_Explosives_Place_rhs_ec200_sand: ACE_Explosives_Place_rhs_ec200 {
displayName = "$STR_RHS_CFGMAGAZINES_EC200_SAND";
model = "\rhsafrf\addons\rhs_weapons2\explosives\rhs_ec200_sand_e";
};
class ACE_Explosives_Place_rhs_ec400: ACE_Explosives_Place {
displayName = "$STR_RHS_CFGMAGAZINES_EC400";
model = "\rhsafrf\addons\rhs_weapons2\explosives\rhs_ec400_e";
class ACE_Actions: ACE_Actions {
class ACE_MainActions: ACE_MainActions {
position = "[0, -0.03, 0.02]";
};
};
};
class ACE_Explosives_Place_rhs_ec400_sand: ACE_Explosives_Place_rhs_ec400 {
displayName = "$STR_RHS_CFGMAGAZINES_EC400_SAND";
model = "\rhsafrf\addons\rhs_weapons2\explosives\rhs_ec400_sand_e";
};
class ACE_Explosives_Place_rhs_mine_msk40p_white: ACE_Explosives_Place {
displayName = "$STR_RHS_MINE_MSK40P_W_MAG_DISPLAYNAME";
model = "\rhsafrf\addons\rhs_weapons\mines\rhs_msk40p_white_e";
class ACE_Actions: ACE_Actions {
class ACE_MainActions: ACE_MainActions {
position = "[-0.025, 0, 0.4]";
};
};
};
class ACE_Explosives_Place_rhs_mine_msk40p_red: ACE_Explosives_Place_rhs_mine_msk40p_white {
displayName = "$STR_RHS_MINE_MSK40P_R_MAG_DISPLAYNAME";
model = "\rhsafrf\addons\rhs_weapons\mines\rhs_msk40p_red_e";
};
class ACE_Explosives_Place_rhs_mine_msk40p_green: ACE_Explosives_Place_rhs_mine_msk40p_white {
displayName = "$STR_RHS_MINE_MSK40P_G_MAG_DISPLAYNAME";
model = "\rhsafrf\addons\rhs_weapons\mines\rhs_msk40p_green_e";
};
class ACE_Explosives_Place_rhs_mine_msk40p_blue: ACE_Explosives_Place_rhs_mine_msk40p_white {
displayName = "$STR_RHS_MINE_MSK40P_B_MAG_DISPLAYNAME";
model = "\rhsafrf\addons\rhs_weapons\mines\rhs_msk40p_blue_e";
};
class ACE_Explosives_Place_rhs_mine_sm320_white: ACE_Explosives_Place {
displayName = "$STR_RHS_MINE_SM320_W_MAG_DISPLAYNAME";
model = "\rhsafrf\addons\rhs_weapons\mines\rhs_sm320_white_e";
class ACE_Actions: ACE_Actions {
class ACE_MainActions: ACE_MainActions {
position = "[-0.01, 0, 0.25]";
};
};
};
class ACE_Explosives_Place_rhs_mine_sm320_red: ACE_Explosives_Place_rhs_mine_sm320_white {
displayName = "$STR_RHS_MINE_SM320_R_MAG_DISPLAYNAME";
model = "\rhsafrf\addons\rhs_weapons\mines\rhs_sm320_red_e";
};
class ACE_Explosives_Place_rhs_mine_sm320_green: ACE_Explosives_Place_rhs_mine_sm320_white {
displayName = "$STR_RHS_MINE_SM320_G_MAG_DISPLAYNAME";
model = "\rhsafrf\addons\rhs_weapons\mines\rhs_sm320_green_e";
};
class ACE_Explosives_Place_rhs_mine_ozm72_a: ACE_Explosives_Place {
displayName = "$STR_RHS_CFGMAGAZINES_OZM72A";
model = "\rhsafrf\addons\rhs_weapons\mines\rhs_ozm72_a_e";
class ACE_Actions: ACE_Actions {
class ACE_MainActions: ACE_MainActions {
position = "[0, 0.125, 0.11]";
};
};
};
class ACE_Explosives_Place_rhs_mine_ozm72_b: ACE_Explosives_Place_rhs_mine_ozm72_a {
displayName = "$STR_RHS_CFGMAGAZINES_OZM72B";
model = "\rhsafrf\addons\rhs_weapons\mines\rhs_ozm72_b_e";
};
class ACE_Explosives_Place_rhs_mine_ozm72_c: ACE_Explosives_Place_rhs_mine_ozm72_a {
displayName = "$STR_RHS_CFGMAGAZINES_OZM72C";
model = "\rhsafrf\addons\rhs_weapons\mines\rhs_ozm72_c_e";
class ACE_Actions: ACE_Actions {
class ACE_MainActions: ACE_MainActions {
position = "[0, 0.015, 0.12]";
};
};
};
};

View File

@ -7,7 +7,7 @@ class CfgPatches {
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"ace_csw", "ace_rearm", "ace_refuel", "ace_repair", "rhs_c_weapons", "rhs_c_troops", "rhs_c_bmd", "rhs_c_bmp", "rhs_c_bmp3", "rhs_c_a2port_armor", "rhs_c_btr", "rhs_c_sprut", "rhs_c_t72", "rhs_c_tanks", "rhs_c_a2port_air", "rhs_c_a2port_car", "rhs_c_cars", "rhs_c_trucks", "rhs_c_2s3", "rhs_c_rva", "rhs_c_heavyweapons"};
requiredAddons[] = {"ace_explosives", "ace_csw", "ace_rearm", "ace_refuel", "ace_repair", "rhs_c_weapons", "rhs_c_airweapons", "rhs_c_troops", "rhs_c_bmd", "rhs_c_bmp", "rhs_c_bmp3", "rhs_c_a2port_armor", "rhs_c_btr", "rhs_c_sprut", "rhs_c_t72", "rhs_c_tanks", "rhs_c_a2port_air", "rhs_c_a2port_car", "rhs_c_cars", "rhs_c_trucks", "rhs_c_2s3", "rhs_c_rva", "rhs_c_heavyweapons"};
author = ECSTRING(common,ACETeam);
authors[] = {"Ruthberg", "GitHawk", "BaerMitUmlaut", "commy2", "Skengman2"};
url = ECSTRING(main,URL);
@ -21,4 +21,3 @@ class CfgPatches {
#include "CfgWeapons.hpp"
#include "CfgVehicles.hpp"
#include "CfgMagazineGroups.hpp"