mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
c4156a6888
* Initital port of ACE2 Vehicle Damage * Add fire damage and burning people * Migrate vehicle damge stuff from cookoff. Change cookoff function to enhance effect. * Minor tweaks * Add incendiary values to all applicable ammunition. Add engine fire/smoke if hit enough * Handle car damage more elegantly. * Added ability to create fire sources arbitrarily * tweaks * Add chance to detonate after cookoff * disable compile cache * Move blown-off turret config to vehicle damage. Add settings inititalized EH for initializing off settings * tabs->spaces * Various code improvements * Change to count loop for deleting effects * update addon requirements * remove vanilla config requirements * Add RHS compatability * RHS compat. Various QOL fixes/changes * Various tweaks to compats and code. * High-Explosive damage tweak * Change how penetration is calculated for parts * Fix RHS compat * Create setting for flare effect * increase burning scream sounds * swap out file name for snake_case * move incendiary values out of vehicle damage. remove medical dependency * vehicle_dammage - update all refs to snake * sqf fixes * fix fire string package caps * fix pboprefix * Default setting to on * Add variables to enable/disable ring fire to avoid goofy looking vehicles. Enhance how particles are cleaned up. Remove advanced penetration simulation. Change how fire intensity is calculated. Add setting to "disable" vehicle after cookoff * Fix bug where event handler wasn't giving the damage last. * change to snake * fix build errors * Fix UBC * Fix Order of Operations * avoid O^2 events * Make sure that no damage processing happens on dead units * Change some if statements * Keep track of player's death to stop various things * add quotes to right middle wheen * Add VD documentation * fire docs * Code quality fixes * Clarify documentation * define IDD * switch global -> server * Add newline between header and first code statement * stop the dead from suffering Its hard to tell when a unit is dead or in spectator, so check the config of the unit to determine it. * Add settings to disable cook-off effects * Delete effects if vehicle is deleted before cookoff occurs. Don't cookoff player ammo. Throw weapon better * Move fire into own PR * fix tabs and macro * Shuffle crew indices so that a random person is first on the list to be injured each time * fix effects not clearing Co-authored-by: PabstMirror <pabstmirror@gmail.com>
577 lines
23 KiB
C++
577 lines
23 KiB
C++
#define EQUIP_FRIES_ATTRIBUTE class Attributes { \
|
|
class EGVAR(fastroping,equipFRIES) { \
|
|
property = QEGVAR(fastroping,equipFRIES); \
|
|
control = "Checkbox"; \
|
|
displayName = ECSTRING(fastroping,Eden_equipFRIES); \
|
|
tooltip = ECSTRING(fastroping,Eden_equipFRIES_Tooltip); \
|
|
expression = QUOTE([_this] call EFUNC(fastroping,equipFRIES)); \
|
|
typeName = "BOOL"; \
|
|
condition = "objectVehicle"; \
|
|
defaultValue = false; \
|
|
}; \
|
|
}
|
|
|
|
class CfgVehicles {
|
|
class LandVehicle;
|
|
class Car: LandVehicle {
|
|
class ACE_Actions {
|
|
class ACE_MainActions {};
|
|
};
|
|
};
|
|
class Car_F: Car {};
|
|
class Truck_F: Car_F {};
|
|
class rhs_truck: Truck_F {};
|
|
|
|
class Tank: LandVehicle {
|
|
class NewTurret;
|
|
class ACE_Actions {
|
|
class ACE_MainActions {};
|
|
};
|
|
};
|
|
class Tank_F: Tank {
|
|
class Turrets {
|
|
class MainTurret: NewTurret {
|
|
class Turrets {
|
|
class CommanderOptics;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
class Air;
|
|
class Helicopter: Air {
|
|
class Turrets {
|
|
class MainTurret;
|
|
};
|
|
};
|
|
|
|
class MBT_01_base_F: Tank_F {};
|
|
class Helicopter_Base_F: Helicopter {
|
|
class Eventhandlers;
|
|
};
|
|
class Heli_Light_03_base_F: Helicopter_Base_F {};
|
|
class RHS_UH1_Base: Heli_light_03_base_F {
|
|
EGVAR(refuel,fuelCapacity) = 1447;
|
|
};
|
|
|
|
class RHS_UH1Y_base: RHS_UH1_Base {};
|
|
class RHS_UH1Y_US_base: RHS_UH1Y_base {};
|
|
class RHS_UH1Y: RHS_UH1Y_US_base {
|
|
EGVAR(fastroping,enabled) = 2;
|
|
EGVAR(fastroping,friesType) = "ACE_friesAnchorBar";
|
|
EGVAR(fastroping,friesAttachmentPoint)[] = {0, 2.38, -0.135};
|
|
EGVAR(fastroping,onCut) = QFUNC(onCut);
|
|
EGVAR(fastroping,onPrepare) = QFUNC(onPrepare);
|
|
EGVAR(fastroping,ropeOrigins)[] = {"ropeOriginLeft", "ropeOriginRight"};
|
|
|
|
class UserActions;
|
|
class EventHandlers: EventHandlers {
|
|
class RHSUSF_EventHandlers;
|
|
};
|
|
|
|
EQUIP_FRIES_ATTRIBUTE;
|
|
};
|
|
class RHS_UH1Y_FFAR: RHS_UH1Y {
|
|
class UserActions: UserActions {
|
|
class OpenCargoDoor;
|
|
class CloseCargoDoor: OpenCargoDoor {
|
|
condition = QUOTE([ARR_2(this,'doorRB')] call FUNC(canCloseDoor));
|
|
};
|
|
class CloseCargoLDoor: OpenCargoDoor {
|
|
condition = QUOTE([ARR_2(this,'doorLB')] call FUNC(canCloseDoor));
|
|
};
|
|
};
|
|
};
|
|
|
|
class Helicopter_Base_H: Helicopter_Base_F {
|
|
class Eventhandlers;
|
|
};
|
|
class Heli_Transport_01_base_F: Helicopter_Base_H {};
|
|
|
|
class RHS_MELB_base: Helicopter_Base_H {};
|
|
class RHS_MELB_MH6M: RHS_MELB_base {
|
|
EGVAR(fastroping,enabled) = 1;
|
|
EGVAR(fastroping,ropeOrigins)[] = {{1.166, 0.79, -0.01}, {-1.166, 0.79, -0.01}};
|
|
EGVAR(fastroping,onCut) = QFUNC(onCut);
|
|
EGVAR(fastroping,onPrepare) = QFUNC(onPrepare);
|
|
};
|
|
class RHS_UH60_Base: Heli_Transport_01_base_F {
|
|
EGVAR(refuel,fuelCapacity) = 1360;
|
|
};
|
|
|
|
class RHS_UH60M_base: RHS_UH60_Base {};
|
|
class RHS_UH60M_US_base: RHS_UH60M_base {};
|
|
class RHS_UH60M: RHS_UH60M_US_base {
|
|
EGVAR(fastroping,enabled) = 2;
|
|
EGVAR(fastroping,friesType) = "ACE_friesAnchorBar";
|
|
EGVAR(fastroping,friesAttachmentPoint)[] = {0, 1.25, -0.65};
|
|
EGVAR(fastroping,onCut) = QFUNC(onCut);
|
|
EGVAR(fastroping,onPrepare) = QFUNC(onPrepare);
|
|
EGVAR(fastroping,ropeOrigins)[] = {"ropeOriginLeft", "ropeOriginRight"};
|
|
|
|
class UserActions {
|
|
class OpenCargoDoor;
|
|
class CloseCargoDoor: OpenCargoDoor {
|
|
condition = QUOTE([ARR_2(this,'doorRB')] call FUNC(canCloseDoor));
|
|
};
|
|
class CloseCargoLDoor: OpenCargoDoor {
|
|
condition = QUOTE([ARR_2(this,'doorLB')] call FUNC(canCloseDoor));
|
|
};
|
|
};
|
|
|
|
EQUIP_FRIES_ATTRIBUTE;
|
|
};
|
|
|
|
class RHS_UH60M_MEV: RHS_UH60M {
|
|
EGVAR(fastroping,enabled) = 0;
|
|
class Attributes {
|
|
delete EGVAR(fastroping,equipFRIES);
|
|
};
|
|
};
|
|
|
|
class RHS_UH60M_MEV2: RHS_UH60M_MEV {
|
|
EGVAR(fastroping,enabled) = 2;
|
|
EQUIP_FRIES_ATTRIBUTE;
|
|
};
|
|
|
|
class Heli_Transport_02_base_F;
|
|
class RHS_CH_47F_base: Heli_Transport_02_base_F {
|
|
EGVAR(refuel,fuelCapacity) = 3914;
|
|
EGVAR(fastroping,enabled) = 1;
|
|
EGVAR(fastroping,ropeOrigins)[] = {{0.5, -7.15, -0.95}, {-0.5, -7.15, -0.95}};
|
|
EGVAR(fastroping,onCut) = QFUNC(onCut);
|
|
EGVAR(fastroping,onPrepare) = QFUNC(onPrepare);
|
|
|
|
class UserActions {
|
|
class OpenCargoDoor;
|
|
class CloseCargoDoor: OpenCargoDoor {
|
|
condition = QUOTE([ARR_2(this,'ramp_anim')] call FUNC(canCloseDoor));
|
|
};
|
|
};
|
|
};
|
|
|
|
class rhsusf_CH53E_USMC: Helicopter_Base_H {
|
|
EGVAR(interaction,bodyWidth) = 3.5;
|
|
EGVAR(map,vehicleLightColor)[] = {1,0,0,0.1};
|
|
EGVAR(fastroping,enabled) = 1;
|
|
EGVAR(fastroping,ropeOrigins)[] = {{0,-9.5,2.6}};
|
|
EGVAR(fastroping,onCut) = QFUNC(onCut);
|
|
EGVAR(fastroping,onPrepare) = QFUNC(onPrepare);
|
|
|
|
class UserActions {
|
|
class RampOpen;
|
|
class RampClose: RampOpen {
|
|
condition = QUOTE([ARR_2(this,'ramp_bottom')] call FUNC(canCloseDoor));
|
|
};
|
|
};
|
|
};
|
|
|
|
class Heli_Attack_01_base_F: Helicopter_Base_F {};
|
|
|
|
class RHS_AH1Z_base: Heli_Attack_01_base_F {
|
|
EGVAR(refuel,fuelCapacity) = 1600;
|
|
EGVAR(hellfire,addLaserDesignator) = 1;
|
|
};
|
|
|
|
class RHS_AH64_base: Heli_Attack_01_base_F {
|
|
EGVAR(refuel,fuelCapacity) = 1420;
|
|
EGVAR(hellfire,addLaserDesignator) = 1;
|
|
};
|
|
|
|
class MBT_01_arty_base_F;
|
|
class rhsusf_m109tank_base: MBT_01_arty_base_F {
|
|
EGVAR(refuel,fuelCapacity) = 511;
|
|
};
|
|
|
|
class MRAP_01_base_F;
|
|
class rhsusf_hmmwe_base: MRAP_01_base_F {
|
|
EGVAR(refuel,fuelCapacity) = 95;
|
|
};
|
|
|
|
class rhsusf_rg33_base: MRAP_01_base_F {
|
|
EGVAR(refuel,fuelCapacity) = 302;
|
|
};
|
|
|
|
class Truck_01_base_F: Truck_F {};
|
|
class rhsusf_fmtv_base: Truck_01_base_F {
|
|
EGVAR(refuel,fuelCapacity) = 219;
|
|
};
|
|
class rhsusf_M1078A1P2_B_M2_fmtv_usarmy;
|
|
class rhsusf_M1078A1R_SOV_M2_D_fmtv_socom: rhsusf_M1078A1P2_B_M2_fmtv_usarmy {
|
|
transportAmmo = 0;
|
|
EGVAR(rearm,defaultSupply) = 800;
|
|
transportFuel = 0;
|
|
EGVAR(refuel,hooks)[] = {{1.1,0.9,-1.2}};
|
|
EGVAR(refuel,fuelCargo) = 900; // 45 jerrycans
|
|
transportRepair = 0;
|
|
EGVAR(repair,canRepair) = 1;
|
|
};
|
|
|
|
class rhsusf_HEMTT_A4_base: Truck_01_base_F {};
|
|
class rhsusf_M977A4_usarmy_wd: rhsusf_HEMTT_A4_base {};
|
|
class rhsusf_M977A4_AMMO_usarmy_wd: rhsusf_M977A4_usarmy_wd {
|
|
transportAmmo = 0;
|
|
EGVAR(rearm,defaultSupply) = 1200;
|
|
};
|
|
|
|
class rhsusf_M977A4_BKIT_usarmy_wd: rhsusf_M977A4_usarmy_wd {};
|
|
class rhsusf_M977A4_AMMO_BKIT_usarmy_wd: rhsusf_M977A4_BKIT_usarmy_wd {
|
|
transportAmmo = 0;
|
|
EGVAR(rearm,defaultSupply) = 1200;
|
|
};
|
|
|
|
class rhsusf_M977A4_BKIT_M2_usarmy_wd: rhsusf_M977A4_usarmy_wd {};
|
|
class rhsusf_M977A4_AMMO_BKIT_M2_usarmy_wd: rhsusf_M977A4_BKIT_M2_usarmy_wd {
|
|
transportAmmo = 0;
|
|
EGVAR(rearm,defaultSupply) = 1200;
|
|
};
|
|
|
|
class rhsusf_M978A4_usarmy_wd: rhsusf_M977A4_usarmy_wd {
|
|
transportFuel = 0;
|
|
EGVAR(refuel,hooks)[] = {{-0.44,-4.87,0}, {0.5,-4.87,0}};
|
|
EGVAR(refuel,fuelCargo) = 10000;
|
|
};
|
|
|
|
class rhsusf_M978A4_BKIT_usarmy_wd: rhsusf_M977A4_usarmy_wd {
|
|
transportFuel = 0;
|
|
EGVAR(refuel,hooks)[] = {{-0.44,-4.87,0}, {0.5,-4.87,0}};
|
|
EGVAR(refuel,fuelCargo) = 10000;
|
|
};
|
|
|
|
class rhsusf_M977A4_REPAIR_usarmy_wd: rhsusf_M977A4_usarmy_wd {
|
|
transportRepair = 0;
|
|
EGVAR(repair,canRepair) = 1;
|
|
};
|
|
|
|
class rhsusf_M977A4_REPAIR_BKIT_usarmy_wd: rhsusf_M977A4_BKIT_usarmy_wd {
|
|
transportRepair = 0;
|
|
EGVAR(repair,canRepair) = 1;
|
|
};
|
|
|
|
class rhsusf_M977A4_REPAIR_BKIT_M2_usarmy_wd: rhsusf_M977A4_BKIT_M2_usarmy_wd {
|
|
transportRepair = 0;
|
|
EGVAR(repair,canRepair) = 1;
|
|
};
|
|
|
|
class APC_Tracked_02_base_F: Tank_F {};
|
|
class rhsusf_m113tank_base: APC_Tracked_02_base_F {
|
|
EGVAR(map,vehicleLightColor)[] = {0,1,0,0.1};
|
|
EGVAR(refuel,fuelCapacity) = 360;
|
|
EGVAR(vehicle_damage,hullDetonationProb) = 0.2;
|
|
EGVAR(vehicle_damage,turretDetonationProb) = 0.2;
|
|
EGVAR(vehicle_damage,engineDetonationProb) = 0;
|
|
EGVAR(vehicle_damage,hullFireProb) = 0.7;
|
|
EGVAR(vehicle_damage,turretFireProb) = 0.2;
|
|
EGVAR(vehicle_damage,engineFireProb) = 0.8;
|
|
EGVAR(vehicle_damage,detonationDuringFireProb) = 0.5;
|
|
};
|
|
|
|
class rhsusf_m113_usarmy: rhsusf_m113tank_base {};
|
|
class rhsusf_m113_usarmy_supply: rhsusf_m113_usarmy {
|
|
transportAmmo = 0;
|
|
EGVAR(rearm,defaultSupply) = 1200;
|
|
};
|
|
|
|
class Wheeled_APC_F;
|
|
class APC_Tracked_03_base_F;
|
|
class RHS_M2A2_Base : APC_Tracked_03_base_F {
|
|
EGVAR(refuel,fuelCapacity) = 746;
|
|
EGVAR(vehicle_damage,canHaveFireRing) = 1;
|
|
EGVAR(vehicle_damage,hullDetonationProb) = 0.2;
|
|
EGVAR(vehicle_damage,turretDetonationProb) = 0.2;
|
|
EGVAR(vehicle_damage,engineDetonationProb) = 0;
|
|
EGVAR(vehicle_damage,hullFireProb) = 0.2;
|
|
EGVAR(vehicle_damage,turretFireProb) = 0.2;
|
|
EGVAR(vehicle_damage,engineFireProb) = 0.8;
|
|
EGVAR(vehicle_damage,detonationDuringFireProb) = 0.5;
|
|
};
|
|
class rhsusf_M1117_base : Wheeled_APC_F {
|
|
EGVAR(vehicle_damage,hullDetonationProb) = 0.2;
|
|
EGVAR(vehicle_damage,turretDetonationProb) = 0.2;
|
|
EGVAR(vehicle_damage,engineDetonationProb) = 0;
|
|
EGVAR(vehicle_damage,hullFireProb) = 0.7;
|
|
EGVAR(vehicle_damage,turretFireProb) = 0.2;
|
|
EGVAR(vehicle_damage,engineFireProb) = 0.8;
|
|
EGVAR(vehicle_damage,detonationDuringFireProb) = 0.5;
|
|
};
|
|
class rhsusf_stryker_base: Wheeled_APC_F {
|
|
EGVAR(vehicle_damage,hullDetonationProb) = 0.2;
|
|
EGVAR(vehicle_damage,turretDetonationProb) = 0.2;
|
|
EGVAR(vehicle_damage,engineDetonationProb) = 0;
|
|
EGVAR(vehicle_damage,hullFireProb) = 0.5;
|
|
EGVAR(vehicle_damage,turretFireProb) = 0.2;
|
|
EGVAR(vehicle_damage,engineFireProb) = 0.7;
|
|
EGVAR(vehicle_damage,detonationDuringFireProb) = 0.5;
|
|
};
|
|
class rhsusf_m1a1tank_base : MBT_01_base_F {
|
|
EGVAR(refuel,fuelCapacity) = 1909;
|
|
EGVAR(vehicle_damage,hullDetonationProb) = 0;
|
|
EGVAR(vehicle_damage,turretDetonationProb) = 0;
|
|
EGVAR(vehicle_damage,engineDetonationProb) = 0;
|
|
EGVAR(vehicle_damage,hullFireProb) = 0;
|
|
EGVAR(vehicle_damage,turretFireProb) = 0;
|
|
EGVAR(vehicle_damage,engineFireProb) = 0.5;
|
|
EGVAR(vehicle_damage,detonationDuringFireProb) = 0;
|
|
EGVAR(vehicle_damage,hitpointAlias)[] = { { "hull", { "hitammohull", "hitammo" } } };
|
|
};
|
|
|
|
class RHS_M2A2;
|
|
class RHS_M2A2_BUSKI: RHS_M2A2 {
|
|
EGVAR(vehicle_damage,eraHitpoints)[] = {
|
|
"era_1_hitpoint", "era_2_hitpoint", "era_3_hitpoint", "era_4_hitpoint", "era_5_hitpoint",
|
|
"era_6_hitpoint", "era_7_hitpoint", "era_8_hitpoint", "era_9_hitpoint", "era_10_hitpoint",
|
|
"era_11_hitpoint", "era_12_hitpoint", "era_13_hitpoint", "era_14_hitpoint", "era_15_hitpoint",
|
|
"era_16_hitpoint", "era_17_hitpoint", "era_18_hitpoint", "era_19_hitpoint", "era_20_hitpoint",
|
|
"era_21_hitpoint", "era_22_hitpoint", "era_23_hitpoint", "era_24_hitpoint", "era_25_hitpoint",
|
|
"era_26_hitpoint", "era_27_hitpoint", "era_28_hitpoint", "era_29_hitpoint", "era_30_hitpoint",
|
|
"era_31_hitpoint", "era_32_hitpoint", "era_33_hitpoint", "era_34_hitpoint", "era_35_hitpoint",
|
|
"era_36_hitpoint", "era_37_hitpoint", "era_38_hitpoint", "era_39_hitpoint", "era_40_hitpoint",
|
|
"era_41_hitpoint", "era_42_hitpoint", "era_43_hitpoint", "era_44_hitpoint", "era_45_hitpoint",
|
|
};
|
|
EGVAR(vehicle_damage,canHaveFireRing) = 1;
|
|
};
|
|
class RHS_M2A3;
|
|
class RHS_M2A3_BUSKI: RHS_M2A3 {
|
|
EGVAR(vehicle_damage,eraHitpoints)[] = {
|
|
"era_1_hitpoint", "era_2_hitpoint", "era_3_hitpoint", "era_4_hitpoint", "era_5_hitpoint",
|
|
"era_6_hitpoint", "era_7_hitpoint", "era_8_hitpoint", "era_9_hitpoint", "era_10_hitpoint",
|
|
"era_11_hitpoint", "era_12_hitpoint", "era_13_hitpoint", "era_14_hitpoint", "era_15_hitpoint",
|
|
"era_16_hitpoint", "era_17_hitpoint", "era_18_hitpoint", "era_19_hitpoint", "era_20_hitpoint",
|
|
"era_21_hitpoint", "era_22_hitpoint", "era_23_hitpoint", "era_24_hitpoint", "era_25_hitpoint",
|
|
"era_26_hitpoint", "era_27_hitpoint", "era_28_hitpoint", "era_29_hitpoint", "era_30_hitpoint",
|
|
"era_31_hitpoint", "era_32_hitpoint", "era_33_hitpoint", "era_34_hitpoint", "era_35_hitpoint",
|
|
"era_36_hitpoint", "era_37_hitpoint", "era_38_hitpoint", "era_39_hitpoint", "era_40_hitpoint",
|
|
"era_41_hitpoint", "era_42_hitpoint", "era_43_hitpoint", "era_44_hitpoint", "era_45_hitpoint",
|
|
};
|
|
EGVAR(vehicle_damage,canHaveFireRing) = 1;
|
|
};
|
|
class RHS_M2A3_BUSKIII: RHS_M2A3_BUSKI {
|
|
EGVAR(vehicle_damage,eraHitpoints)[] = {
|
|
"era_1_hitpoint", "era_2_hitpoint", "era_3_hitpoint", "era_4_hitpoint", "era_5_hitpoint",
|
|
"era_6_hitpoint", "era_7_hitpoint", "era_8_hitpoint", "era_9_hitpoint", "era_10_hitpoint",
|
|
"era_11_hitpoint", "era_12_hitpoint", "era_13_hitpoint", "era_14_hitpoint", "era_15_hitpoint",
|
|
"era_16_hitpoint", "era_17_hitpoint", "era_18_hitpoint", "era_19_hitpoint", "era_20_hitpoint",
|
|
"era_21_hitpoint", "era_22_hitpoint", "era_23_hitpoint", "era_24_hitpoint", "era_25_hitpoint",
|
|
"era_26_hitpoint", "era_27_hitpoint", "era_28_hitpoint", "era_29_hitpoint", "era_30_hitpoint",
|
|
"era_31_hitpoint", "era_32_hitpoint", "era_33_hitpoint", "era_34_hitpoint", "era_35_hitpoint",
|
|
"era_36_hitpoint", "era_37_hitpoint", "era_38_hitpoint", "era_39_hitpoint", "era_40_hitpoint",
|
|
"era_41_hitpoint", "era_42_hitpoint", "era_43_hitpoint", "era_44_hitpoint", "era_45_hitpoint",
|
|
"era_46_hitpoint", "era_47_hitpoint", "era_48_hitpoint", "era_49_hitpoint", "era_50_hitpoint",
|
|
"era_51_hitpoint", "era_52_hitpoint", "era_53_hitpoint", "era_54_hitpoint", "era_55_hitpoint",
|
|
"era_56_hitpoint", "era_57_hitpoint", "era_58_hitpoint", "era_59_hitpoint"
|
|
};
|
|
};
|
|
class rhsusf_m1a1aim_tuski_wd: rhsusf_m1a1tank_base {
|
|
EGVAR(vehicle_damage,eraHitpoints)[] = {
|
|
"era_1_hitpoint", "era_2_hitpoint", "era_3_hitpoint", "era_4_hitpoint", "era_5_hitpoint",
|
|
"era_6_hitpoint", "era_7_hitpoint", "era_8_hitpoint", "era_9_hitpoint", "era_10_hitpoint",
|
|
"era_11_hitpoint", "era_12_hitpoint", "era_13_hitpoint", "era_14_hitpoint", "era_15_hitpoint",
|
|
"era_16_hitpoint", "era_17_hitpoint", "era_18_hitpoint", "era_19_hitpoint", "era_20_hitpoint",
|
|
"era_21_hitpoint", "era_22_hitpoint", "era_23_hitpoint", "era_24_hitpoint", "era_25_hitpoint",
|
|
"era_26_hitpoint", "era_27_hitpoint", "era_28_hitpoint", "era_29_hitpoint", "era_30_hitpoint",
|
|
"era_31_hitpoint", "era_32_hitpoint", "era_33_hitpoint", "era_34_hitpoint"
|
|
};
|
|
EGVAR(vehicle_damage,slatHitpoints)[] = { "SLAT_1_hitpoint" };
|
|
};
|
|
class rhsusf_m1a2tank_base;
|
|
class rhsusf_m1a2sep1tuskid_usarmy: rhsusf_m1a2tank_base {
|
|
EGVAR(vehicle_damage,eraHitpoints)[] = {
|
|
"era_1_hitpoint", "era_2_hitpoint", "era_3_hitpoint", "era_4_hitpoint", "era_5_hitpoint",
|
|
"era_6_hitpoint", "era_7_hitpoint", "era_8_hitpoint", "era_9_hitpoint", "era_10_hitpoint",
|
|
"era_11_hitpoint", "era_12_hitpoint", "era_13_hitpoint", "era_14_hitpoint", "era_15_hitpoint",
|
|
"era_16_hitpoint", "era_17_hitpoint", "era_18_hitpoint", "era_19_hitpoint", "era_20_hitpoint",
|
|
"era_21_hitpoint", "era_22_hitpoint", "era_23_hitpoint", "era_24_hitpoint", "era_25_hitpoint",
|
|
"era_26_hitpoint", "era_27_hitpoint", "era_28_hitpoint", "era_29_hitpoint", "era_30_hitpoint",
|
|
"era_31_hitpoint", "era_32_hitpoint", "era_33_hitpoint", "era_34_hitpoint"
|
|
};
|
|
EGVAR(vehicle_damage,slatHitpoints)[] = { "SLAT_1_hitpoint" };
|
|
};
|
|
class rhsusf_m1a2sep1tuskiiwd_usarmy: rhsusf_m1a2sep1tuskid_usarmy {
|
|
EGVAR(vehicle_damage,eraHitpoints)[] = {
|
|
"era_1_hitpoint", "era_2_hitpoint", "era_3_hitpoint", "era_4_hitpoint", "era_5_hitpoint",
|
|
"era_6_hitpoint", "era_7_hitpoint", "era_8_hitpoint", "era_9_hitpoint", "era_10_hitpoint",
|
|
"era_11_hitpoint", "era_12_hitpoint", "era_13_hitpoint", "era_14_hitpoint", "era_15_hitpoint",
|
|
"era_16_hitpoint", "era_17_hitpoint", "era_18_hitpoint", "era_19_hitpoint", "era_20_hitpoint",
|
|
"era_21_hitpoint", "era_22_hitpoint", "era_23_hitpoint", "era_24_hitpoint", "era_25_hitpoint",
|
|
"era_26_hitpoint", "era_27_hitpoint", "era_28_hitpoint", "era_29_hitpoint", "era_30_hitpoint",
|
|
"era_31_hitpoint", "era_32_hitpoint", "era_33_hitpoint", "era_34_hitpoint", "era_35_hitpoint",
|
|
"era_36_hitpoint", "era_37_hitpoint", "era_38_hitpoint", "era_39_hitpoint", "era_40_hitpoint",
|
|
"era_41_hitpoint", "era_42_hitpoint", "era_43_hitpoint", "era_44_hitpoint", "era_45_hitpoint",
|
|
"era_46_hitpoint"
|
|
};
|
|
};
|
|
|
|
class Plane_CAS_01_base_F;
|
|
class RHS_A10: Plane_CAS_01_base_F {
|
|
EGVAR(refuel,fuelCapacity) = 6223;
|
|
};
|
|
|
|
class Plane_Base_F;
|
|
class RHS_C130J_Base: Plane_Base_F {
|
|
EGVAR(refuel,fuelCapacity) = 25704;
|
|
EGVAR(cargo,space) = 4;
|
|
EGVAR(cargo,hasCargo) = 1;
|
|
};
|
|
|
|
class StaticWeapon: LandVehicle {
|
|
class ACE_Actions {
|
|
class ACE_MainActions;
|
|
};
|
|
};
|
|
class StaticMortar: StaticWeapon {};
|
|
class RHS_M252_Base: StaticMortar {
|
|
class ACE_Actions: ACE_Actions {
|
|
class ACE_MainActions: ACE_MainActions {
|
|
position = "";
|
|
selection = "main_gun";
|
|
};
|
|
};
|
|
// ENABLE_CSW_ATTRIBUTE;
|
|
class ACE_CSW {
|
|
enabled = 1;
|
|
magazineLocation = "";
|
|
proxyWeapon = QGVAR(rhs_mortar_81mm);
|
|
disassembleWeapon = QGVAR(m252_carry); // carry weapon [CfgWeapons]
|
|
disassembleTurret = QEGVAR(csw,mortarBaseplate); // turret [CfgVehicles]
|
|
desiredAmmo = 1;
|
|
ammoLoadTime = 3;
|
|
ammoUnloadTime = 3;
|
|
};
|
|
};
|
|
|
|
class StaticMGWeapon: StaticWeapon {};
|
|
|
|
class rhs_m2staticmg_base: StaticMGWeapon {
|
|
// ENABLE_CSW_ATTRIBUTE;
|
|
class ACE_CSW {
|
|
enabled = 1;
|
|
proxyWeapon = QGVAR(rhs_M2);
|
|
magazineLocation = "_target selectionPosition 'magazine'";
|
|
disassembleWeapon = QGVAR(m2_carry);
|
|
disassembleTurret = QEGVAR(csw,m3Tripod);
|
|
desiredAmmo = 100;
|
|
ammoLoadTime = 10;
|
|
ammoUnloadTime = 8;
|
|
};
|
|
};
|
|
|
|
class RHS_M2StaticMG_MiniTripod_base: rhs_m2staticmg_base {
|
|
class ACE_CSW: ACE_CSW {
|
|
enabled = 1;
|
|
disassembleTurret = QEGVAR(csw,m3TripodLow);
|
|
};
|
|
};
|
|
|
|
class StaticGrenadeLauncher: StaticWeapon {};
|
|
class RHS_MK19_TriPod_base: StaticGrenadeLauncher {
|
|
// ENABLE_CSW_ATTRIBUTE;
|
|
class ACE_CSW {
|
|
enabled = 1;
|
|
proxyWeapon = QGVAR(rhs_MK19);
|
|
magazineLocation = "_target selectionPosition 'magazine'";
|
|
disassembleWeapon = QGVAR(mk19_carry);
|
|
disassembleTurret = QEGVAR(csw,m3TripodLow);
|
|
desiredAmmo = 48;
|
|
ammoLoadTime = 10;
|
|
ammoUnloadTime = 8;
|
|
};
|
|
};
|
|
|
|
class StaticATWeapon: StaticWeapon {};
|
|
class RHS_TOW_TriPod_base: StaticATWeapon {
|
|
// ENABLE_CSW_ATTRIBUTE;
|
|
class ACE_CSW {
|
|
enabled = 1;
|
|
proxyWeapon = QGVAR(rhs_weap_TOW_Launcher_static);
|
|
magazineLocation = "_target selectionPosition 'tube'";
|
|
disassembleWeapon = QGVAR(tow_carry);
|
|
disassembleTurret = QEGVAR(csw,m220Tripod);
|
|
desiredAmmo = 1;
|
|
ammoLoadTime = 8;
|
|
ammoUnloadTime = 5;
|
|
};
|
|
};
|
|
|
|
class rhsusf_infantry_usmc_base;
|
|
class rhsusf_usmc_marpat_wd_helipilot: rhsusf_infantry_usmc_base {
|
|
ace_gforcecoef = 0.55;
|
|
};
|
|
|
|
class rhsusf_infantry_army_base;
|
|
class rhsusf_army_ocp_helipilot: rhsusf_infantry_army_base {
|
|
ace_gforcecoef = 0.55;
|
|
};
|
|
|
|
class rhsusf_usmc_marpat_wd_rifleman_m4;
|
|
class rhsusf_airforce_jetpilot: rhsusf_usmc_marpat_wd_rifleman_m4 {
|
|
ace_gforcecoef = 0.55;
|
|
};
|
|
|
|
class Items_base_F;
|
|
class ACE_Explosives_Place: Items_base_F {
|
|
class ACE_Actions {
|
|
class ACE_MainActions;
|
|
};
|
|
};
|
|
|
|
// ACE Explosives
|
|
class ACE_Explosives_Place_rhsusf_explosive_m112: ACE_Explosives_Place {
|
|
displayName = "$STR_RHSUSF_M112_EXPLOSIVE_DISPLAY_NAME";
|
|
model = "\rhsusf\addons\rhsusf_weapons\explosives\rhsusf_m112x1_e";
|
|
class ACE_Actions: ACE_Actions {
|
|
class ACE_MainActions: ACE_MainActions {
|
|
position = "[-0.055, 0, 0.038]";
|
|
};
|
|
};
|
|
};
|
|
|
|
class ACE_Explosives_Place_rhsusf_explosive_m112x4: ACE_Explosives_Place {
|
|
displayName = "$STR_RHSUSF_M112X4_EXPLOSIVE_DISPLAY_NAME";
|
|
model = "\rhsusf\addons\rhsusf_weapons\explosives\rhsusf_m112x4_e";
|
|
class ACE_Actions: ACE_Actions {
|
|
class ACE_MainActions: ACE_MainActions {
|
|
position = "[-0.055, 0.025, 0.102]";
|
|
};
|
|
};
|
|
};
|
|
|
|
class ACE_Explosives_Place_rhsusf_mine_M19: ACE_Explosives_Place {
|
|
displayName = "$STR_RHSUSF_M19_ATMINE_DISPLAY_NAME";
|
|
model = "\rhsusf\addons\rhsusf_weapons\mines\rhsusf_m19_e";
|
|
class ACE_Actions: ACE_Actions {
|
|
class ACE_MainActions: ACE_MainActions {
|
|
position = "[-0.014, -0.002, 0.046]";
|
|
};
|
|
};
|
|
};
|
|
|
|
class ACE_Explosives_Place_rhsusf_mine_m14: ACE_Explosives_Place {
|
|
displayName = "$STR_RHSUSF_M14_APMINE_DISPLAY_NAME";
|
|
model = "\rhsusf\addons\rhsusf_weapons\mines\rhsusf_m14_d";
|
|
class ACE_Actions: ACE_Actions {
|
|
class ACE_MainActions: ACE_MainActions {
|
|
position = "[-0.002, 0.022, 0.02]";
|
|
};
|
|
};
|
|
};
|
|
|
|
class ACE_Explosives_Place_rhsusf_mine_m49a1_3m: ACE_Explosives_Place {
|
|
displayName = "M49A1 (3m)";
|
|
model = "\rhsusf\addons\rhsusf_weapons\mines\rhsusf_m49a1_a_e";
|
|
class ACE_Actions: ACE_Actions {
|
|
class ACE_MainActions: ACE_MainActions {
|
|
position = "[0, -0.016, 0.296]";
|
|
};
|
|
};
|
|
};
|
|
|
|
class ACE_Explosives_Place_rhsusf_mine_m49a1_6m: ACE_Explosives_Place_rhsusf_mine_m49a1_3m {
|
|
displayName = "M49A1 (6m)";
|
|
model = "\rhsusf\addons\rhsusf_weapons\mines\rhsusf_m49a1_b_e";
|
|
};
|
|
|
|
class ACE_Explosives_Place_rhsusf_mine_m49a1_10m: ACE_Explosives_Place_rhsusf_mine_m49a1_3m {
|
|
displayName = "M49A1 (10m)";
|
|
model = "\rhsusf\addons\rhsusf_weapons\mines\rhsusf_m49a1_c_e";
|
|
};
|
|
};
|