You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is about detecting which cam the user has active, currently, and to see if you have any suggestions/feedback atm. The method has some limitations (such as not detecting custom cameras in in-game mediatracker tracks), but otherwise seems to be reliable and can detect a wide variety of cams.
It's run on each frame in the RenderEarly call, so if it ever crashes the game I should know about it.
It sets a global variable of the ActiveCam type (see below).
It works by getting a pointer near GameScene to some kind of outer camera manager nod. This nod has pointers to 2 objects that are important: camera models, and camera controls.
The first are of types: CPlugVehicleCameraRace2Model, CPlugVehicleCameraRace3Model, CPlugVehicleCameraInternalModel and I have a seemly-reliable way to tell if they're alt cams or not (so this branch covers cams 1 through 6).
The second are types like CGameControlCameraFree and CGameControlCameraEditorOrbital. If the first nod is null, then I check this. (We could check for CGameControlCameraTrackManiaRace2 etc here too, but IDK if we can tell if it's the alt cam or not from those nods).
This is about detecting which cam the user has active, currently, and to see if you have any suggestions/feedback atm. The method has some limitations (such as not detecting custom cameras in in-game mediatracker tracks), but otherwise seems to be reliable and can detect a wide variety of cams.
It's run on each frame in the
RenderEarly
call, so if it ever crashes the game I should know about it.It sets a global variable of the
ActiveCam
type (see below).It works by getting a pointer near GameScene to some kind of outer camera manager nod. This nod has pointers to 2 objects that are important: camera models, and camera controls.
Right now, I've added support for:
None is used in menus and when there is no camera manager object thing.
Loading is for when all the pointers are null (often when loading a map or the editor).
Cam0 is the
Race1
camera type, but I've never seen it.The text was updated successfully, but these errors were encountered: