mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Animate preplaced bottom attack SLAMs
This commit is contained in:
@ -52,15 +52,15 @@ class CfgAmmo {
|
|||||||
};
|
};
|
||||||
class ACE_SLAMDirectionalMine_Timer_Ammo: SLAMDirectionalMine_Wire_Ammo {
|
class ACE_SLAMDirectionalMine_Timer_Ammo: SLAMDirectionalMine_Wire_Ammo {
|
||||||
mineTrigger = "TimeTrigger";
|
mineTrigger = "TimeTrigger";
|
||||||
|
};
|
||||||
|
class ACE_SLAMDirectionalMine_Magnetic_Ammo: SLAMDirectionalMine_Wire_Ammo {
|
||||||
|
mineTrigger = "ACE_MagneticTrigger";
|
||||||
GVAR(explodeOnDefuseChance) = 0;
|
GVAR(explodeOnDefuseChance) = 0;
|
||||||
explosionAngle = 360;
|
explosionAngle = 360;
|
||||||
indirectHitRange = 1;
|
indirectHitRange = 1;
|
||||||
mineInconspicuousness = 25;
|
mineInconspicuousness = 25;
|
||||||
icon = "iconExplosiveGP";
|
icon = "iconExplosiveGP";
|
||||||
};
|
};
|
||||||
class ACE_SLAMDirectionalMine_Magnetic_Ammo: SLAMDirectionalMine_Wire_Ammo {
|
|
||||||
mineTrigger = "ACE_MagneticTrigger";
|
|
||||||
};
|
|
||||||
|
|
||||||
class PipeBombBase;
|
class PipeBombBase;
|
||||||
class DemoCharge_Remote_Ammo: PipeBombBase {
|
class DemoCharge_Remote_Ammo: PipeBombBase {
|
||||||
|
@ -36,6 +36,14 @@ GVAR(Setup) = objNull;
|
|||||||
GVAR(pfeh_running) = false;
|
GVAR(pfeh_running) = false;
|
||||||
GVAR(CurrentSpeedDial) = 0;
|
GVAR(CurrentSpeedDial) = 0;
|
||||||
|
|
||||||
|
// Properly angle preplaced bottom-attack SLAMs
|
||||||
|
{
|
||||||
|
switch (typeOf _x) do {
|
||||||
|
case ("ACE_SLAMDirectionalMine_Magnetic_Ammo"): {
|
||||||
|
[_x, getDir _x, 90] call FUNC(setPosition);
|
||||||
|
};
|
||||||
|
};
|
||||||
|
} forEach allMines;
|
||||||
|
|
||||||
["interactMenuOpened", {
|
["interactMenuOpened", {
|
||||||
//Cancel placement if interact menu opened
|
//Cancel placement if interact menu opened
|
||||||
|
Reference in New Issue
Block a user