Skip to content

Commit

Permalink
Add skis to in-game customisation options (#469)
Browse files Browse the repository at this point in the history
* Revert "Feature/ace skis (#168)"

This reverts commit 9b9075a.

* obsolete file

* add ski interactions
  • Loading branch information
BroBeansCPG authored Dec 11, 2024
1 parent 982af3a commit 2470d23
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 59 deletions.
22 changes: 4 additions & 18 deletions addons/uh60_misc/XEH_postInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -168,21 +168,7 @@ private _customizationOptions = [
["vtx_h60_base",0,[],(_removeOption call ace_interact_menu_fnc_createAction), true] call ace_interact_menu_fnc_addActionToClass;
} forEach _customizationOptions;

params ["_heli"];
private _displayName = "Skis";
private _condition = {true};
private _statement = {};
private _action = ["vtx_skis",_displayName, "", _statement, _condition] call ace_interact_menu_fnc_createAction;
["vtx_H60_base", 0, ["ACE_MainActions"], _action, true] call ace_interact_menu_fnc_addActionToClass;

_displayName = "Install Skis";
_condition = {((_this select 0) animationPhase "skis") == 0};
_statement = {(_this select 0) animate ["skis", 1];};
_action = ["vtx_skis",_displayName, "", _statement, _condition] call ace_interact_menu_fnc_createAction;
["vtx_H60_base", 0, ["ACE_MainActions","vtx_skis"], _action, true] call ace_interact_menu_fnc_addActionToClass;

_displayName = "Uninstall Skis";
_condition = {((_this select 0) animationPhase "skis") == 1};
_statement = {(_this select 0) animate ["skis", 0];};
_action = ["vtx_skis",_displayName, "", _statement, _condition] call ace_interact_menu_fnc_createAction;
["vtx_H60_base", 0, ["ACE_MainActions","vtx_skis"], _action, true] call ace_interact_menu_fnc_addActionToClass;
_action = ["vtx_skis_add","Install Skis", "", {(_target) animateSource ["skis_show", 1];}, {((_target) animationSourcePhase "skis_show") < 0.1}, nil, [parameters], [1.33319,2.8541,-1.6735]] call ace_interact_menu_fnc_createAction;
["vtx_H60_base", 0, [], _action, true] call ace_interact_menu_fnc_addActionToClass;
_action = ["vtx_skis_remove","Uninstall Skis", "", {(_target) animateSource ["skis_show", 0];}, {((_target) animationSourcePhase "skis_show") > 0.9}, nil, [parameters], [1.33319,2.8541,-1.6735]] call ace_interact_menu_fnc_createAction;
["vtx_H60_base", 0, [], _action, true] call ace_interact_menu_fnc_addActionToClass;
41 changes: 0 additions & 41 deletions addons/uh60_misc/config/cfgAceInteract.hpp

This file was deleted.

0 comments on commit 2470d23

Please sign in to comment.