View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0005453||New issues||Vehicles||public||2010-07-06 08:03||2018-07-21 16:53|
|Platform||Linux Server||OS||Linux||OS Version||Debian Lenny|
|Summary||0005453: Some vehicles without doors return door state 4 while others return nil.|
Basically, using getVehicleDoorState Some vehicles that do not have doors return "4" - Fallen off, while others (all boats and bikes) return "nil" - because there are no doors. I believe they should all return nil.
For example, all boats return "nil" and all bikes return "nil" - and I think all doorless vehicles should return nil, but some return "4" instead.
RCRaider, RCBandit, RCTiger, RCCam, RCGoblin, Vortex, Mower, Bandito, Kart, Baggage, Forklift, Tractor, Caddy, Quadbike, BFInjection, Dozer
|Steps To Reproduce|
get into one of the listed vehicles and use getVehicleDoorState
|Tags||No tags attached.|
Ah, was just experimenting and I believe I have discovered something this bug is related to. Remember the annoying Doors fall of vehicles on change bug?
Well, here's what I have noticed. Vehicles that return "nil" with their door states, (Boats and Bikes) When changing From these to cars, the cars HAVE all their doors.
BUT, when going from a vehicle that has no doors that returns "4" (Tractor) instead of "nil" The doors of the car you change to Will fall off.
I don't believe this is a coincidence.
To Reproduce, go from a Boat or Bike in Race, to a banshee. - Doors will stay on car.
The Boat, Bike, Tractor and BF Injection all have one thing in common, No Doors.
I believe doors falling off while changing between vehicles, and this to be related.
I checked out this thing and it seems bikes and other doorless vehicles return a 0 state, not a nil, and it never should return a nil anyway.
So I believe this issue is sort of fixed. Even after you set the model, the state is the same... which brings us to the comment above:
If you set the model from a "doorless" vehicle to a "doorful" vehicle, it will automatically eject the doors off of the vehicle.
It makes sense why it does that at the moment, since it kind of has no clue of what the actual set state is, and just assumes that the previous state is correct. I think this needs some feedback from other devs on what should be done.
It has been returning 0 for a while, I'm unable to find any commits related to this for now...