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

OnDropGrenade #986

Open
hiwyn opened this issue Sep 23, 2024 · 3 comments
Open

OnDropGrenade #986

hiwyn opened this issue Sep 23, 2024 · 3 comments
Labels
client enhancement New feature or request

Comments

@hiwyn
Copy link

hiwyn commented Sep 23, 2024

Imagine if we have:

OnPlayerDroppingGrenade(playerid,weaponid,Float:x,Float:y,Float:z)

we could change bombs damage, create flashbangs with textdraws, smoke with effect and much more...

would be amazing to the openmp PVP

@hiwyn hiwyn added the enhancement New feature or request label Sep 23, 2024
@NexiusTailer
Copy link
Contributor

NexiusTailer commented Sep 23, 2024

Not possible to implement from the server-side only, without touching client

@Hual Hual added the client label Sep 24, 2024
@hiwyn
Copy link
Author

hiwyn commented Sep 27, 2024

my bad, i remember a plugin or lib that detects the position that drop a bomb
it had on old forum samp

@NexiusTailer
Copy link
Contributor

The main issue with all such stuff if you do it now on a pure samp client is that there's no sync data which reports any position or even direction of a dropped projectile. All you have is just the fact of a pressed key and nothing more, unfortunately.

This means that every client of all other streamed players will apply its physics locally by their own game, so any things like synced facing angle of that player or his synced position from which the projectile is started may differ and thus impact the final destination where it will land and explode for each player. In other words, this thing is just not really synced by samp so you cannot get any detailed data except the fact it was thrown. The same with guns of vehicles like Hydra, Rhino or Hunter.

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

No branches or pull requests

3 participants