Add headBugFix button to ACE Options Dialog #1738

This commit is contained in:
ViperMaul 2015-07-27 21:11:29 -07:00 committed by SilentSpike
parent a31e5795be
commit c9d9f78e5b
5 changed files with 66 additions and 0 deletions

View File

@ -116,4 +116,28 @@ class CfgVehicles {
MACRO_ADDITEM(ACE_banana,1);
};
};
class Land_HelipadEmpty_F;
class ACE_LogicDummy: Land_HelipadEmpty_F {
scope = 1;
SLX_XEH_DISABLED = 1;
author = CSTRING(ACETeam);
class EventHandlers {
init = "(_this select 0) enableSimulation false";
};
};
class Bicycle;
class ACE_Headbug_Fix: Bicycle {
scope = 1;
side = 3;
model = PATHTOF(data\ACE_HeadBanger.p3d);
//model = QPATHTO_M(ACE_HeadBanger.p3d);
author = CSTRING(ACETeam);
displayName = " ";
soundEngine[] = {"", 20, 0.875};
soundEnviron[] = {"", 25, 0.925};
isBicycle = 1;
XEH_DISABLED;
};
};

View File

@ -106,6 +106,7 @@ PREP(goKneeling);
PREP(hadamardProduct);
PREP(hasItem);
PREP(hasMagazine);
PREP(headBugFix);
PREP(hideUnit);
PREP(inheritsFrom);
PREP(insertionSort);

Binary file not shown.

View File

@ -0,0 +1,25 @@
/**
* fnc_headbugfix.sqf
* @Descr: Fixes animation issues that may get you stuck
* @Author: rocko
*
* @Arguments:
* @Return: nil
* @PublicAPI: true
*/
#include "script_component.hpp"
if (player != vehicle player) exitWith {};
titleCut ["", "BLACK"];
_pos = getposATL player;
// create invisible headbug fix vehicle
_ACE_HeadbugFix = createVehicle ["ACE_Headbug_Fix", getposATL player, [], 0, "NONE"];
player moveinDriver _ACE_HeadbugFix;
sleep 1.0;
unassignVehicle player;
player action ["Eject", vehicle player];
sleep 1.0;
deleteVehicle _ACE_HeadbugFix;
player setposATL _pos;
titleCut ["", "PLAIN"];

View File

@ -344,6 +344,22 @@
<Czech>Pošle debug informace do RPT a schránky.</Czech>
<German>Protokolliert Debug-Informationen im RPT und speichert sie in der Zwischenablage.</German>
<Portuguese>Envia informação de depuração para RPT e área de transferência.</Portuguese>
</Key>
<Key ID="STR_ACE_OptionsMenu_headBugFix">
<English>Headbug Fix</English>
<Polish>Headbug Fix</Polish>
<Spanish>Headbug Fix</Spanish>
<Czech>Headbug Fix</Czech>
<German>Headbug Fix</German>
<Portuguese>Headbug Fix</Portuguese>
</Key>
<Key ID="STR_ACE_OptionsMenu_headBugFixTooltip">
<English>Resets your animation state.</English>
<Polish>Resets your animation state.</Polish>
<Spanish>Resets your animation state.</Spanish>
<Czech>Resets your animation state.</Czech>
<German>Resets your animation state.</German>
<Portuguese>Resets your animation state.</Portuguese>
</Key>
<Key ID="STR_ACE_OptionsMenu_aceNews">
<English>ACE News</English>