This repository has been archived by the owner on May 20, 2024. It is now read-only.
[BUG] Check for open doors when doors are broke off.. Returns closed. #55
Labels
bug
Something isn't working
Describe the bug
A player was working this job in the pounder truck and broke off the two swinging back doors. since they are gone they are not going to read how far open they are nor register as opened when you do F1 and open them. Obviously the solution is to fix them, but some players can run into them while open and they just fall of.
To Reproduce
Steps to reproduce the behavior:
Screenshots
https://gyazo.com/09749ffb4497640edec3125db1c1fb30
Additional context
I did modify the following code to first check if the doors were damaged and return the correct value for OPENED if so. Looks like this..
/qb-truckerjob/client/main.lua Line 314 or so..
Tried to replicate error with new code and no problems. If the intent was to make the player repair the truck before continuing job then this is not an issue, however game mechanics be damned as it is possible for a player to knock them off accidentally.. so if this is not a bug and more of a feature.. added code changes for those who can't deal with it.
The text was updated successfully, but these errors were encountered: