mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
4014cd5539
Remove replacement explosives
112 lines
4.0 KiB
C++
112 lines
4.0 KiB
C++
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};
|
|
};
|
|
|
|
class vn_mine_m16_base;
|
|
class vn_mine_tripwire_m16_02_ammo: vn_mine_m16_base {
|
|
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
|
|
class APERSBoundingMine_Range_Ammo;
|
|
class vn_mine_punji_01_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'));
|
|
|
|
class EventHandlers {
|
|
class ADDON {
|
|
AmmoHit = QUOTE(call FUNC(handlePunjiTrapTrigger));
|
|
};
|
|
};
|
|
};
|
|
|
|
class vn_mine_punji_02_ammo: vn_mine_punji_01_ammo {
|
|
indirectHit = QUOTE(getNumber (configFile >> 'CfgAmmo' >> 'vn_mine_punji_02_ammo' >> 'GVAR(indirectHit)'));
|
|
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 {
|
|
AmmoHit = QUOTE(call FUNC(handlePunjiTrapTrigger));
|
|
};
|
|
};
|
|
};
|
|
|
|
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);
|
|
};
|