Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .hemtt/missions/Wardrobe.VR/mission.sqm
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ class EditorData
class Camera
{
pos[]={27.77986,9.3148928,-11.992753};
dir[]={-0.82791728,-0.44389084,-0.34282935};
up[]={-0.41012207,0.89607823,-0.16982619};
aside[]={-0.38258561,-4.6566129e-09,0.92392808};
dir[]={-0.69794518,-0.36113313,-0.61844516};
up[]={-0.27029148,0.93251151,-0.23950377};
aside[]={-0.66319907,-8.5798092e-08,0.7484532};
};
};
binarizationWanted=0;
Expand Down Expand Up @@ -134,7 +134,7 @@ class Mission
class PositionInfo
{
position[]={16,5.2840548,-14};
angles[]={0,4.7497735,-0};
angles[]={0,4.7497735,0};
};
side="Empty";
flags=4;
Expand Down Expand Up @@ -271,7 +271,7 @@ class Mission
class PositionInfo
{
position[]={18,5,-14};
angles[]={-0,1.0776811,0};
angles[]={0,1.0776811,0};
};
side="Empty";
flags=4;
Expand Down
2 changes: 1 addition & 1 deletion addons/wardrobe/XEH_preInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ PREP_RECOMPILE_END;

#include "initSettings.inc.sqf"

missionNamespace setVariable [QGVAR(inProgress), false];
GVAR(inProgress) = false;

// Cache Wardrobe Replace Exceptions
private _map = createHashMap;
Expand Down
1 change: 1 addition & 0 deletions addons/wardrobe/functions/fnc_replace.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ private _replaceCode = switch (_typeNumber) do {
case TYPE_UNIFORM: { _equipmentType = "UNIFORM"; LINKFUNC(replaceContainer) };
case TYPE_VEST: { _equipmentType = "VEST"; LINKFUNC(replaceContainer) };
case TYPE_BACKPACK: { _equipmentType = "BACKPACK"; LINKFUNC(replaceContainer) };
case TYPE_HMD: { _equipmentType = "NVG"; LINKFUNC(replaceOther) };
default {
// CfgGlasses items do not have a ItemInfo subclass and therefore, not typeNumber
switch (true) do {
Expand Down
3 changes: 3 additions & 0 deletions addons/wardrobe/functions/fnc_replaceOther.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ switch (_equipmentType) do {
removeGoggles _player;
_player addGoggles _classTarget;
};
case "NVG": {
_player linkItem _classTarget;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need anything to remove nvgs?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

link removes existing hmd

};
};

GVAR(inProgress) = false; // re-enable action
Expand Down