[BUG] onObjectShot and Player::PlayerShoot don't register hits on some cases

Started by NicusorN5, Apr 29, 2019, 12:06 PM

Previous topic - Next topic

NicusorN5

Description
The function Player::PlayerShoot isn't called when a hunter machine gun is used, same with shotguns, grenades, and molotovs...
And the function onObjectShot  isn't called when a Hunter guns are used too.

Reproducible
Always

What you were doing when the bug happened
Working on my Zombie survival server... Tried to reward players with a Hunter on a specific number of kills, but hits don't get detected.

I used this code to see if it is called:
function Player::PlayerShoot( player, weapon, hitEntity, hitPosition )
{
Console.Print("Player :"+player.Name+" "+weapon+" ");
}

What you think caused the bug
I don't know tbh

D4rkR420R

This bug in the PlayerShoot callback has been like that for a while now. You may refer to this website for more information (https://forum.vc-mp.org/?topic=4363.msg32306#msg32306).

NicusorN5

Quote from: DarkRaZoR^ on Apr 29, 2019, 07:34 PMThis bug in the PlayerShoot callback has been like that for a while now. You may refer to this website for more information (https://forum.vc-mp.org/?topic=4363.msg32306#msg32306).
Welp, It also like in this thread doesn't not work with hunter guns and same with onObjectShoot() .