AsYetUntitled / Framework

Altis Life RPG mission framework for Arma 3 originally made by @TAWTonic.
Other
245 stars 308 forks source link

Diving goggles not showing up in clothing menu #226

Closed Blauschimmel closed 7 years ago

Blauschimmel commented 7 years ago

Expected behaviour

If you go to the clothing shop menu, you should be able to see diving googgles.

Actual behaviour

You don't see them, because the player is not underwater.

Steps to reproduce the behaviour

Open any shop wich sells diving goggles and find out by yourself!

RPT and/or extDB2 logs (if applicable)

NO RPT (not an actual error)


Mission version: ALL

Launcher version: ALL

Game version: ALL

Branch: What's a branch?

Blauschimmel commented 7 years ago

I fixed this by dipping the player into water for 0.0005 seconds;

Add this

player setPosATL [-1000, -1000, 10]; sleep 0.0005;

to core/shops/fn_clothingMenu.sqf between line 135 and 136 just above

player attachTo [_testLogic,[0,0,0]];

If there's any other way to simulate that the player is underwater, that would probably be better, but this doesn't affect the player in any way.

WolfSkin1337 commented 7 years ago

you mean to core/shops/fn_clothingMenu.sqf https://github.com/AsYetUntitled/Framework/blob/2747463eb362b4d1173ddd842db68f50ecfd7c93/Altis_Life.Altis/core/shops/fn_clothingMenu.sqf#L136

Blauschimmel commented 7 years ago

Exactly!! I'll edit my comment!

Blauschimmel commented 7 years ago

Wait a second, I just realized that he removes all goggles but the diving goggles while being underwater... You might want to add a restriction only for the diving shop...

Blauschimmel commented 7 years ago

So it could look like if(SEL(_this,3) in ["dive"]) then { player setPosATL [-1000, -1000, 10]; sleep 0.0005; };

Jawshy commented 7 years ago

@Blauschimmel, thanks for the report and for providing a solution. If you like feel free to submit a pull request (For PR guidelines see Contributing: Pull Requests).

Branch: What's a branch?

The Arma 3 Steam Branches article on the Bohemia Interactive Community Wiki explains them.