diff --git a/addons/explosives/CfgAmmo.hpp b/addons/explosives/CfgAmmo.hpp index fc9e4712dc..79bfeda6ed 100644 --- a/addons/explosives/CfgAmmo.hpp +++ b/addons/explosives/CfgAmmo.hpp @@ -66,21 +66,28 @@ class CfgAmmo { soundActivation[] = {"",0,0,0}; soundDeactivation[] = {"",0,0,0}; }; - /* - class DemoCharge_Remote_Ammo_Scripted:DemoCharge_Remote_Ammo; - class SatchelCharge_Remote_Ammo_Scripted:SatchelCharge_Remote_Ammo; + + /*class DemoCharge_Remote_Ammo_Scripted:DemoCharge_Remote_Ammo; + class SatchelCharge_Remote_Ammo_Scripted:SatchelCharge_Remote_Ammo;*/ -TODO: Configure IEDs to use the system. - class IEDLandBig_Remote_Ammo:PipeBombBase{ - triggerWhenDestroyed = 1; -}; -class IEDLandSmall_Remote_Ammo:PipeBombBase{ -triggerWhenDestroyed = 1; -}; -class IEDUrbanBig_Remote_Ammo:PipeBombBase{ -triggerWhenDestroyed = 1; -}; -class IEDUrbanSmall_Remote_Ammo:PipeBombBase{ -triggerWhenDestroyed = 1; -};*/ + class IEDUrbanBig_Remote_Ammo: PipeBombBase { + mineTrigger = "RangeTrigger"; + triggerWhenDestroyed = 1; + soundTrigger[] = {"A3\Sounds_F\weapons\mines\mech_trigger_1", 0.562341, 1, 40}; + }; + class IEDLandBig_Remote_Ammo: IEDUrbanBig_Remote_Ammo { + mineTrigger = "RangeTrigger"; + triggerWhenDestroyed = 1; + soundTrigger[] = {"A3\Sounds_F\weapons\mines\mech_trigger_1", 0.562341, 1, 40}; + }; + class IEDUrbanSmall_Remote_Ammo: PipeBombBase { + mineTrigger = "RangeTrigger"; + triggerWhenDestroyed = 1; + soundTrigger[] = {"A3\Sounds_F\weapons\mines\mech_trigger_1", 0.562341, 1, 40}; + }; + class IEDLandSmall_Remote_Ammo: IEDUrbanSmall_Remote_Ammo { + mineTrigger = "RangeTrigger"; + triggerWhenDestroyed = 1; + soundTrigger[] = {"A3\Sounds_F\weapons\mines\mech_trigger_1", 0.562341, 1, 40}; + }; }; diff --git a/addons/explosives/CfgMagazines.hpp b/addons/explosives/CfgMagazines.hpp index b89a207992..1a398f54fb 100644 --- a/addons/explosives/CfgMagazines.hpp +++ b/addons/explosives/CfgMagazines.hpp @@ -99,29 +99,51 @@ class CfgMagazines { class IEDUrbanBig_Remote_Mag: DemoCharge_Remote_Mag { ACE_SetupObject = "ACE_Explosives_Place_IEDUrbanBig"; class ACE_Triggers { - SupportedTriggers[] = {"Command","DeadmanSwitch", "Cellphone"}; + SupportedTriggers[] = {"Command","DeadmanSwitch", "Cellphone", "PressurePlate"}; class Command { FuseTime = 0.5; }; class DeadmanSwitch:Command{}; class Cellphone:Command{}; + class PressurePlate { + displayName = $STR_ACE_Explosives_SLAME_Magnetic; + digDistance = 0; + ammo = "IEDUrbanBig_Remote_Ammo"; + pitch = 0; + }; }; }; class IEDLandBig_Remote_Mag: IEDUrbanBig_Remote_Mag{ ACE_SetupObject = "ACE_Explosives_Place_IEDLandBig"; + class ACE_Triggers: ACE_Triggers { + class PressurePlate: PressurePlate { + ammo = "IEDLandBig_Remote_Ammo"; + }; + }; }; class IEDUrbanSmall_Remote_Mag: DemoCharge_Remote_Mag { ACE_SetupObject = "ACE_Explosives_Place_IEDUrbanSmall"; class ACE_Triggers { - SupportedTriggers[] = {"Command","DeadmanSwitch", "Cellphone"}; + SupportedTriggers[] = {"Command","DeadmanSwitch", "Cellphone", "PressurePlate"}; class Command { FuseTime = 0.5; }; class DeadmanSwitch:Command{}; class Cellphone:Command{}; + class PressurePlate { + displayName = $STR_ACE_Explosives_SLAME_Magnetic; + digDistance = 0; + ammo = "IEDUrbanSmall_Remote_Ammo"; + pitch = 0; + }; }; }; class IEDLandSmall_Remote_Mag: IEDUrbanSmall_Remote_Mag { ACE_SetupObject = "ACE_Explosives_Place_IEDLandSmall"; + class ACE_Triggers: ACE_Triggers { + class PressurePlate: PressurePlate { + ammo = "IEDLandSmall_Remote_Ammo"; + }; + }; }; };