SA-MP Forums Archive
[Bugzilla] OnPlayerWeaponShot not being called properly with sniper - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [Bugzilla] OnPlayerWeaponShot not being called properly with sniper (/showthread.php?tid=574812)



[Bugzilla] OnPlayerWeaponShot not being called properly with sniper - n0minal - 20.05.2015

The title is self-explanatory, OnPlayerWeaponShot is not being called properly with sniper (most part of shoots), here goes the video:

[ame]http://www.youtube.com/watch?v=lViL44EV6Bs[/ame]

Debug code:

Код:
public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
{
	new string[128];
	format(string, 128, "Ammo from %s sucefully updated!", GetWeaponName(weaponid));
	SendClientMessage(playerid, -1, string);
	return 1;
}
Additional info:

- I don't use filterscripts or other files which contains OnPlayerWeaponShot callback.
- Still work fine for deagle and maybe other weapons, only sniper seems bugged.
- Most part of sniper bullets aren't detected.
- Sorry for the random music in video, I listen to Jack Johnson everydays.


Re: [Bugzilla] OnPlayerWeaponShot not being called properly with sniper - vyper - 20.05.2015

The same issue while you're not c-bugging ?


Re: [Bugzilla] OnPlayerWeaponShot not being called properly with sniper - n0minal - 20.05.2015

Quote:
Originally Posted by vyper
Посмотреть сообщение
The same issue while you're not c-bugging ?
Yep, already tried without c-bug on sniper and still not calling OnPlayerWeaponShot callback at every shooted bullet.


Re: [Bugzilla] OnPlayerWeaponShot not being called properly with sniper - T-N-Z - 20.05.2015

Not sure if this is related to this, but I think it's an old issue, it started in 0.3z. Sometimes OnPlayerWeaponShot just stops working on Sniper Rifles, for example it won't give any damage to a player, or it will report a invalid player ID for some reason. It is some kind of desync issue, players on my server complain about it a lot, and I can't find a way to fix it without forcing players to reconnect.


Re: [Bugzilla] OnPlayerWeaponShot not being called properly with sniper - n0minal - 20.05.2015

Quote:
Originally Posted by T-N-Z
Посмотреть сообщение
Not sure if this is related to this, but I think it's an old issue, it started in 0.3z. Sometimes OnPlayerWeaponShot just stops working on Sniper Rifles, for example it won't give any damage to a player, or it will report a invalid player ID for some reason. It is some kind of desync issue, players on my server complain about it a lot, and I can't find a way to fix it without forcing players to reconnect.
Reconnect don't solve this, I'm running my gamemode alone in localhost and I have this issue.


Re: [Bugzilla] OnPlayerWeaponShot not being called properly with sniper - n0minal - 23.05.2015

I noted that the callback is called only when the bullet hit something or someone, I hope that Kalcor fix this on future.