Isolate Compat RHS_AFRF Overpressure

This commit is contained in:
mrschick 2024-08-28 15:07:41 +02:00
parent b26e097711
commit f58d514be4
4 changed files with 62 additions and 32 deletions

View File

@ -85,27 +85,6 @@ class CfgWeapons {
class Launcher_Base_F;
class rhs_weap_rpg7: Launcher_Base_F {
EGVAR(reloadlaunchers,enabled) = 1;
EGVAR(overpressure,angle) = 40;
EGVAR(overpressure,offset) = 0.9;
};
class rhs_weap_rpg26: Launcher_Base_F {
EGVAR(overpressure,range) = 10;
EGVAR(overpressure,angle) = 50;
EGVAR(overpressure,offset) = 0.65;
};
class rhs_weap_rpg18: rhs_weap_rpg26 {
EGVAR(overpressure,angle) = 45;
EGVAR(overpressure,offset) = 1;
};
class rhs_weap_strela;
class rhs_weap_igla: rhs_weap_strela {
EGVAR(overpressure,range) = 6;
EGVAR(overpressure,angle) = 40;
EGVAR(overpressure,damage) = 0.6;
EGVAR(overpressure,offset) = 1.65;
};
class rhs_zsh7a;
@ -121,17 +100,6 @@ class CfgWeapons {
ACE_Protection = 1;
};
class rhs_weap_d81;
class rhs_weap_2a70: rhs_weap_d81 { // "Low pressure" 100mm cannon
EGVAR(overpressure,range) = 15;
EGVAR(overpressure,damage) = 0.5;
};
class cannon_120mm;
class rhs_weap_2a28_base: cannon_120mm { // "Low pressure"
EGVAR(overpressure,range) = 15;
EGVAR(overpressure,damage) = 0.5;
};
class rhs_uniform_flora;
class rhs_uniform_df15: rhs_uniform_flora {
ACE_GForceCoef = 0.8;

View File

@ -0,0 +1,41 @@
class CfgWeapons {
// Man-Portable launchers, rear-facing overpressure
class Launcher_Base_F;
class rhs_weap_rpg7: Launcher_Base_F {
EGVAR(overpressure,angle) = 40;
EGVAR(overpressure,offset) = 0.9;
};
class rhs_weap_rpg26: Launcher_Base_F {
EGVAR(overpressure,range) = 10;
EGVAR(overpressure,angle) = 50;
EGVAR(overpressure,offset) = 0.65;
};
class rhs_weap_rpg18: rhs_weap_rpg26 {
EGVAR(overpressure,angle) = 45;
EGVAR(overpressure,offset) = 1;
};
class rhs_weap_strela;
class rhs_weap_igla: rhs_weap_strela {
EGVAR(overpressure,range) = 6;
EGVAR(overpressure,angle) = 40;
EGVAR(overpressure,damage) = 0.6;
EGVAR(overpressure,offset) = 1.65;
};
// Vehicle cannons, forward-facing overpressure
class rhs_weap_d81;
class rhs_weap_2a70: rhs_weap_d81 { // "Low pressure" 100mm cannon
EGVAR(overpressure,range) = 15;
EGVAR(overpressure,damage) = 0.5;
};
class cannon_120mm;
class rhs_weap_2a28_base: cannon_120mm { // "Low pressure"
EGVAR(overpressure,range) = 15;
EGVAR(overpressure,damage) = 0.5;
};
};

View File

@ -0,0 +1,18 @@
#include "script_component.hpp"
class CfgPatches {
class SUBADDON {
addonRootClass = QUOTE(COMPONENT);
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {
"rhs_main_loadorder",
"ace_overpressure"
};
skipWhenMissingDependencies = 1;
VERSION_CONFIG;
};
};
#include "CfgWeapons.hpp"

View File

@ -0,0 +1,3 @@
#define SUBCOMPONENT overpressure
#define SUBCOMPONENT_BEAUTIFIED Overpressure
#include "..\script_component.hpp"