2021-10-05 11:28:43 +00:00
|
|
|
class DirectionalBombBase;
|
|
|
|
class vn_mine_m18_ammo: DirectionalBombBase {
|
|
|
|
EGVAR(explosives,defuseObjectPosition)[] = {0, 0, 0.15};
|
|
|
|
EGVAR(explosives,size) = 1;
|
|
|
|
};
|
|
|
|
|
|
|
|
class vn_mine_m18_x3_ammo: vn_mine_m18_ammo {
|
|
|
|
EGVAR(explosives,defuseObjectPosition)[] = {0, 0, 0.1};
|
2023-10-01 18:30:24 +00:00
|
|
|
};
|
|
|
|
|
2022-09-08 12:41:52 +00:00
|
|
|
class vn_mine_m16_base;
|
|
|
|
class vn_mine_tripwire_m16_02_ammo: vn_mine_m16_base {
|
2021-10-05 11:28:43 +00:00
|
|
|
EGVAR(explosives,defuseObjectPosition)[] = {0, -0.01, 0.088};
|
|
|
|
};
|
|
|
|
|
|
|
|
class APERSTripMine_Wire_Ammo;
|
|
|
|
class vn_mine_tripwire_f1_02_ammo: APERSTripMine_Wire_Ammo {
|
|
|
|
EGVAR(explosives,defuseObjectPosition)[] = {0, -0.01, 0.18};
|
|
|
|
};
|
|
|
|
|
|
|
|
class vn_mine_tripwire_arty_ammo: vn_mine_tripwire_f1_02_ammo {
|
|
|
|
EGVAR(explosives,defuseObjectPosition)[] = {0, -0.01, 0.126};
|
|
|
|
};
|
|
|
|
|
|
|
|
class DemoCharge_Remote_Ammo;
|
|
|
|
class vn_mine_m112_remote_ammo: DemoCharge_Remote_Ammo {
|
|
|
|
EGVAR(explosives,defuseObjectPosition)[] = {0, 0.22, 0.75};
|
|
|
|
};
|
|
|
|
|
|
|
|
// Disable engine damage of punji traps, script damage manually
|
|
|
|
// This allows a tighter control of caused wounds and removes ear ringing
|
2022-09-08 12:41:52 +00:00
|
|
|
class APERSBoundingMine_Range_Ammo;
|
2021-10-05 11:28:43 +00:00
|
|
|
class vn_mine_punji_01_ammo: APERSBoundingMine_Range_Ammo {
|
|
|
|
EGVAR(minedetector,detectable) = 0;
|
|
|
|
|
2022-09-08 12:41:52 +00:00
|
|
|
hit = QUOTE(getNumber (configFile >> 'CfgAmmo' >> 'vn_mine_punji_01_ammo' >> 'GVAR(hit)'));
|
2021-10-05 11:28:43 +00:00
|
|
|
GVAR(hit) = QUOTE([ARR_2(0,1)] select isNull (configFile >> 'CfgPatches' >> 'ace_medical'));
|
|
|
|
|
2022-09-08 12:41:52 +00:00
|
|
|
indirectHit = QUOTE(getNumber (configFile >> 'CfgAmmo' >> 'vn_mine_punji_01_ammo' >> 'GVAR(indirectHit)'));
|
2021-10-05 11:28:43 +00:00
|
|
|
GVAR(indirectHit) = QUOTE([ARR_2(0,10)] select isNull (configFile >> 'CfgPatches' >> 'ace_medical'));
|
|
|
|
|
|
|
|
class EventHandlers {
|
|
|
|
class ADDON {
|
2022-03-07 18:25:55 +00:00
|
|
|
AmmoHit = QUOTE(call FUNC(handlePunjiTrapTrigger));
|
2021-10-05 11:28:43 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
class vn_mine_punji_02_ammo: vn_mine_punji_01_ammo {
|
2022-09-08 12:41:52 +00:00
|
|
|
indirectHit = QUOTE(getNumber (configFile >> 'CfgAmmo' >> 'vn_mine_punji_02_ammo' >> 'GVAR(indirectHit)'));
|
2021-10-05 11:28:43 +00:00
|
|
|
GVAR(indirectHit) = QUOTE([ARR_2(0,5)] select isNull (configFile >> 'CfgPatches' >> 'ace_medical'));
|
|
|
|
};
|
|
|
|
|
|
|
|
class vn_mine_punji_03_ammo: vn_mine_punji_01_ammo {
|
|
|
|
EGVAR(explosives,defuseObjectPosition)[] = {0.25, 0.023, 0.035};
|
|
|
|
|
|
|
|
class EventHandlers {
|
|
|
|
class ADDON {
|
2022-03-07 18:25:55 +00:00
|
|
|
AmmoHit = QUOTE(call FUNC(handlePunjiTrapTrigger));
|
2021-10-05 11:28:43 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2022-09-08 12:41:52 +00:00
|
|
|
|
|
|
|
class vn_mine_punji_04_ammo: APERSBoundingMine_Range_Ammo {
|
|
|
|
EGVAR(minedetector,detectable) = 0;
|
|
|
|
|
|
|
|
hit = QUOTE(getNumber (configFile >> 'CfgAmmo' >> 'vn_mine_punji_01_ammo' >> 'GVAR(hit)'));
|
|
|
|
GVAR(hit) = QUOTE([ARR_2(0,1)] select isNull (configFile >> 'CfgPatches' >> 'ace_medical'));
|
|
|
|
|
|
|
|
indirectHit = QUOTE(getNumber (configFile >> 'CfgAmmo' >> 'vn_mine_punji_01_ammo' >> 'GVAR(indirectHit)'));
|
|
|
|
GVAR(indirectHit) = QUOTE([ARR_2(0,10)] select isNull (configFile >> 'CfgPatches' >> 'ace_medical'));
|
|
|
|
|
|
|
|
GVAR(spikesOffset)[] = {0, 0, 1.8};
|
|
|
|
GVAR(spikesCheckSelection) = "head";
|
|
|
|
GVAR(spikesCheckRadius) = 1;
|
|
|
|
|
|
|
|
class EventHandlers {
|
|
|
|
class ADDON {
|
|
|
|
AmmoHit = QUOTE(call FUNC(handlePunjiTrapTrigger));
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
class vn_mine_punji_05_ammo: vn_mine_punji_04_ammo {
|
|
|
|
GVAR(spikesOffset)[] = {0, 0, 0};
|
|
|
|
GVAR(spikesCheckSelection) = "";
|
|
|
|
|
|
|
|
class EventHandlers {
|
|
|
|
class ADDON {
|
|
|
|
AmmoHit = QUOTE(call FUNC(handlePunjiTrapTrigger));
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
class APERSMine_Range_Ammo;
|
|
|
|
class vn_mine_cartridge_ammo: APERSMine_Range_Ammo {
|
|
|
|
// bump range and damage slightly, default values do not work well with ACE Medical
|
|
|
|
indirectHit = QUOTE(getNumber (configFile >> 'CfgAmmo' >> 'vn_mine_cartridge_ammo' >> 'GVAR(indirectHit)'));
|
|
|
|
GVAR(indirectHit) = QUOTE([ARR_2(2,1)] select isNull (configFile >> 'CfgPatches' >> 'ace_medical'));
|
|
|
|
|
|
|
|
indirectHitRange = QUOTE(getNumber (configFile >> 'CfgAmmo' >> 'vn_mine_cartridge_ammo' >> 'GVAR(indirectHitRange)'));
|
|
|
|
GVAR(indirectHitRange) = QUOTE([ARR_2(0.7,0.3)] select isNull (configFile >> 'CfgPatches' >> 'ace_medical'));
|
|
|
|
};
|
|
|
|
|
|
|
|
class vn_mine_lighter_ammo: APERSMine_Range_Ammo {
|
|
|
|
ACE_damageType = QGVAR(explosive_incendiary);
|
|
|
|
};
|
|
|
|
|
|
|
|
class vn_mine_jerrycan_ammo: APERSMine_Range_Ammo {
|
|
|
|
ACE_damageType = QGVAR(explosive_incendiary);
|
|
|
|
};
|