mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Add headBugFix button to ACE Options Dialog #1738
This commit is contained in:
parent
a31e5795be
commit
c9d9f78e5b
@ -116,4 +116,28 @@ class CfgVehicles {
|
|||||||
MACRO_ADDITEM(ACE_banana,1);
|
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;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
@ -106,6 +106,7 @@ PREP(goKneeling);
|
|||||||
PREP(hadamardProduct);
|
PREP(hadamardProduct);
|
||||||
PREP(hasItem);
|
PREP(hasItem);
|
||||||
PREP(hasMagazine);
|
PREP(hasMagazine);
|
||||||
|
PREP(headBugFix);
|
||||||
PREP(hideUnit);
|
PREP(hideUnit);
|
||||||
PREP(inheritsFrom);
|
PREP(inheritsFrom);
|
||||||
PREP(insertionSort);
|
PREP(insertionSort);
|
||||||
|
BIN
addons/common/data/ace_headbanger.p3d
Normal file
BIN
addons/common/data/ace_headbanger.p3d
Normal file
Binary file not shown.
25
addons/common/functions/fnc_headBugFix.sqf
Normal file
25
addons/common/functions/fnc_headBugFix.sqf
Normal 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"];
|
||||||
|
|
@ -344,6 +344,22 @@
|
|||||||
<Czech>Pošle debug informace do RPT a schránky.</Czech>
|
<Czech>Pošle debug informace do RPT a schránky.</Czech>
|
||||||
<German>Protokolliert Debug-Informationen im RPT und speichert sie in der Zwischenablage.</German>
|
<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>
|
<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>
|
||||||
<Key ID="STR_ACE_OptionsMenu_aceNews">
|
<Key ID="STR_ACE_OptionsMenu_aceNews">
|
||||||
<English>ACE News</English>
|
<English>ACE News</English>
|
||||||
|
Loading…
Reference in New Issue
Block a user