Vice City: Multiplayer

VC:MP Discussion => Support => Bugs and Crashes => Topic started by: NicusorN5 on Apr 29, 2019, 12:06 PM

Title: [BUG] onObjectShot and Player::PlayerShoot don't register hits on some cases
Post by: NicusorN5 on Apr 29, 2019, 12:06 PM
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
Title: Re: [BUG] onObjectShot and Player::PlayerShoot don't register hits on some cases
Post by: D4rkR420R on Apr 29, 2019, 07:34 PM
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).
Title: Re: [BUG] onObjectShot and Player::PlayerShoot don't register hits on some cases
Post by: NicusorN5 on Apr 29, 2019, 08:36 PM
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() .