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

onPlayerTeleport won't work if you are in a vehicle or on top of an object that's moving too fast #4024

Open
1 task done
PlatinMTA opened this issue Feb 14, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@PlatinMTA
Copy link
Contributor

PlatinMTA commented Feb 14, 2025

Is your feature request related to a problem? Please describe.

onPlayerTeleport right now is really bare bones. Don't get me wrong, I do think it's useful, and I'm going to use it for some really bare bones detection, but a custom system is better in ever conceivable way except performance.

A lot of things need to be accounted for, like vehicle velocity, if the object you are standing on was moved by the server, if the vehicle was moved by the server, if the game speed has been changed, heck even if the player is falling because if you set it to the lowest value (5) it will get triggered just from that (underworldwarp too). I already did this with my own AC so it's possible to integrate, but really right now this function only works to detect far away teleports.

Describe the solution you'd like

Enhance onPlayerTeleport, taking into account the edge cases mentioned.

Describe alternatives you've considered

No response

Additional context

No response

Security Policy

  • I have read and understood the Security Policy and this issue is not about a cheat or security vulnerability.
@PlatinMTA PlatinMTA added the enhancement New feature or request label Feb 14, 2025
@Dutchman101
Copy link
Member

Feedback for @nweb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants