Project: RSS

Viewing Issue Advanced Details Jump to Notes ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0006750 [New issues] Client minor sometimes 2011-12-24 01:42 2012-01-03 18:55
Reporter John_Michael View Status public  
Assigned To
Priority normal Resolution open Platform
Status feedback   OS
Projection none   OS Version
ETA none Product Build v1.2-release-3584
Summary 0006750: isPedInVehicle(localPlayer) returns true, but getPedOccupiedVehicle(localPlayer) returns false.
Description Sometimes, when isPedInVehicle() reports that the local player is in a vehicle, getPedOccupiedVehicle() will return false.
Steps To Reproduce Enter any vehicle while the following code snippet is running:

local function bugTest()
    if isPedInVehicle(localPlayer) then
        if not getPedOccupiedVehicle(localPlayer) then
            outputDebugString("Bug reproduced!")
        end
    end
end
addEventHandler("onClientRender", root, bugTest)
Additional Information
Tags No tags attached.
Attached Files

- Relationships

-  Notes
(0015492)
ccw (administrator)
2011-12-24 02:01

Looking at the code isPedInVehicle() uses GTA to check the state, while getPedOccupiedVehicle() returns the vehicle according to MTA.

I have a feeling that isPedInVehicle() was written the check the 'real' state for a reason. Maybe.
(0015493)
John_Michael (viewer)
2011-12-24 02:08

Well, after doing some more testing, the mismatch only occurs for about 3-5 frames on average.
(0015529)
Dragon (reporter)
2011-12-27 03:53

might be interesting to check this while also having a look at the various vehicle/player events for entering and exiting.
(0015592)
bug_Spanish4Life (viewer)
2012-01-03 18:55

I can confirm this.

- Issue History
Date Modified Username Field Change
2011-12-24 01:42 John_Michael New Issue
2011-12-24 02:01 ccw Note Added: 0015492
2011-12-24 02:08 John_Michael Note Added: 0015493
2011-12-26 11:27 x86 Status new => feedback
2011-12-27 03:53 Dragon Note Added: 0015529
2012-01-03 18:55 bug_Spanish4Life Note Added: 0015592


Mantis 1.1.8[^]
Copyright © 2000 - 2009 Mantis Group
Powered by Mantis Bugtracker