Isolate Compat RHS_USAF Overpressure

This commit is contained in:
mrschick 2024-08-28 15:14:51 +02:00
parent b75a3daf70
commit 318c5c14d8
4 changed files with 53 additions and 21 deletions

View File

@ -175,35 +175,14 @@ class CfgWeapons {
};
// RHS launchers
class launch_O_Titan_F;
class rhs_weap_fim92: launch_O_Titan_F {
EGVAR(overpressure,range) = 6;
EGVAR(overpressure,angle) = 40;
EGVAR(overpressure,damage) = 0.6;
EGVAR(overpressure,offset) = 1.45;
};
class Launcher_Base_F;
class rhs_weap_smaw: Launcher_Base_F {
EGVAR(reloadlaunchers,enabled) = 1;
EGVAR(overpressure,angle) = 45;
EGVAR(overpressure,offset) = 1.3;
};
class rhs_weap_maaws: Launcher_Base_F {
EGVAR(reloadlaunchers,enabled) = 1;
EGVAR(overpressure,range) = 15;
EGVAR(overpressure,angle) = 70;
EGVAR(overpressure,damage) = 0.75;
EGVAR(overpressure,offset) = 0.95;
};
class rhs_weap_M136: Launcher_Base_F {
EGVAR(overpressure,range) = 10;
EGVAR(overpressure,angle) = 50;
EGVAR(overpressure,offset) = 0.9;
};
class rhsusf_hgu56p;

View File

@ -0,0 +1,32 @@
class CfgWeapons {
// Man-Portable launchers, rear-facing overpressure
class launch_O_Titan_F;
class rhs_weap_fim92: launch_O_Titan_F {
EGVAR(overpressure,range) = 6;
EGVAR(overpressure,angle) = 40;
EGVAR(overpressure,damage) = 0.6;
EGVAR(overpressure,offset) = 1.45;
};
class Launcher_Base_F;
class rhs_weap_smaw: Launcher_Base_F {
EGVAR(overpressure,angle) = 45;
EGVAR(overpressure,offset) = 1.3;
};
class rhs_weap_maaws: Launcher_Base_F {
EGVAR(overpressure,range) = 15;
EGVAR(overpressure,angle) = 70;
EGVAR(overpressure,damage) = 0.75;
EGVAR(overpressure,offset) = 0.95;
};
class rhs_weap_M136: Launcher_Base_F {
EGVAR(overpressure,range) = 10;
EGVAR(overpressure,angle) = 50;
EGVAR(overpressure,offset) = 0.9;
};
};

View File

@ -0,0 +1,18 @@
#include "script_component.hpp"
class CfgPatches {
class SUBADDON {
addonRootClass = QUOTE(COMPONENT);
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {
"rhsusf_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"