Animate preplaced bottom attack SLAMs

This commit is contained in:
VKing 2016-01-15 10:49:22 +01:00
parent 248eb2143b
commit cfea80bec8
2 changed files with 11 additions and 3 deletions

View File

@ -52,15 +52,15 @@ class CfgAmmo {
};
class ACE_SLAMDirectionalMine_Timer_Ammo: SLAMDirectionalMine_Wire_Ammo {
mineTrigger = "TimeTrigger";
};
class ACE_SLAMDirectionalMine_Magnetic_Ammo: SLAMDirectionalMine_Wire_Ammo {
mineTrigger = "ACE_MagneticTrigger";
GVAR(explodeOnDefuseChance) = 0;
explosionAngle = 360;
indirectHitRange = 1;
mineInconspicuousness = 25;
icon = "iconExplosiveGP";
};
class ACE_SLAMDirectionalMine_Magnetic_Ammo: SLAMDirectionalMine_Wire_Ammo {
mineTrigger = "ACE_MagneticTrigger";
};
class PipeBombBase;
class DemoCharge_Remote_Ammo: PipeBombBase {

View File

@ -36,6 +36,14 @@ GVAR(Setup) = objNull;
GVAR(pfeh_running) = false;
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", {
//Cancel placement if interact menu opened