open.mp icon indicating copy to clipboard operation
open.mp copied to clipboard

OnDropGrenade

Open hiwyn opened this issue 1 year ago • 3 comments
trafficstars

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 avatar Sep 23 '24 12:09 hiwyn

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

NexiusTailer avatar Sep 23 '24 13:09 NexiusTailer

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

hiwyn avatar Sep 27 '24 17:09 hiwyn

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.

NexiusTailer avatar Sep 27 '24 20:09 NexiusTailer