Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FCNPC_GoByMovePath Bug #115

Open
AbyssMorgan opened this issue Nov 30, 2017 · 2 comments
Open

FCNPC_GoByMovePath Bug #115

AbyssMorgan opened this issue Nov 30, 2017 · 2 comments

Comments

@AbyssMorgan
Copy link

Train not moving correctly with FCNPC
https://www.youtube.com/watch?v=SE3OA8u2QZA

@ziggi ziggi added the bug label Nov 30, 2017
@ziggi
Copy link
Owner

ziggi commented Jan 4, 2018

We should set right CVehicleSyncData->fTrainSpeed value to fix this. For now I don't know how to calculate it.

@NegativeIQ
Copy link

I think MTA or RNPC can help. MTA with source code and RNPC with .rec file structure.
From what i have seen in MTA source code, they apply train speed directly as float passed from lua.

And lua docs tell us two things:

  1. Setting float speed to 1.0 makes train go 100mph/160kmh
  2. Setting negative value will make train go in opposite direction (counter clockwise)

I dont have time to code, compile and test but i guess there is no harm if someone just add's Get/SetTrainSpeed functions (c++ and export natives) that would allow range from -2.0 to 2.0 (that is 200mph and should be almost as fast as Bullet vehicle in SA if im not mistaken)

@ziggi ziggi closed this as completed in ebe280d Jul 19, 2019
@ziggi ziggi mentioned this issue Jul 19, 2019
@ziggi ziggi reopened this Jul 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants