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

Key press delay for toggling the sirens depends on FPS limit #505

Open
Timic3 opened this issue Sep 19, 2018 · 2 comments
Open

Key press delay for toggling the sirens depends on FPS limit #505

Timic3 opened this issue Sep 19, 2018 · 2 comments
Labels
bug Something isn't working
Milestone

Comments

@Timic3
Copy link
Contributor

Timic3 commented Sep 19, 2018

Describe the bug
To toggle sirens for a specific vehicle, you need to press horn key in a quick order. How quick depends on the FPS limit, which isn't really ideal.

To Reproduce

  1. Set FPS limit to 100
  2. Toggle sirens using horn key - it's very unlikely that you will succeed
  3. Try with 25 - it will be easier

Expected behavior
The delay between key presses should be same as on 25 FPS limit (I believe the game is supposed to run on 25 FPS).

Screenshots
N/A

MTA Client (please complete the following information):
Latest (1.5.6).

MTA Server (please complete the following information):
Latest (1.5.6).

Additional context
N/A

@ArranTuna ArranTuna added the bug Something isn't working label Sep 19, 2018
@PlatinMTA
Copy link
Contributor

I think this is obvious but I will say it anyway, this probably happens because the game checks how many frames did you keep pressed the horn button, if it's more than X ammount then the sirens turn on, else you just press the horn.

This can be work arround if you use setVehicleSirensOn.

@botder botder added this to the Backlog milestone Mar 3, 2019
@patrikjuvonen patrikjuvonen added this to TODO - gameplay things in Framerate Fixes Apr 11, 2023
@patrikjuvonen
Copy link
Contributor

0x5002C0 would seem to be responsible for this.

Needs a frame rate fix (https://github.com/multitheftauto/mtasa-blue/blob/master/Client/multiplayer_sa/CMultiplayerSA_FrameRateFixes.cpp).

Added to framerate fixes project.

@lopezloo lopezloo removed this from TODO - gameplay things in Framerate Fixes Apr 14, 2023
@lopezloo lopezloo added this to TODO - gameplay things in Framerate Fixes Apr 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Framerate Fixes
  
TODO - gameplay things
Development

No branches or pull requests

5 participants