Vice City: Multiplayer

VC:MP Discussion => Support => Bugs and Crashes => Topic started by: Athanatos on April 29th, 2019, 01:06 PM

Title: [BUG] onObjectShot and Player::PlayerShoot don't register hits on some cases
Post by: Athanatos on April 29th, 2019, 01: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:
Code: [Select]
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: DarkRaZoR^ on April 29th, 2019, 08: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: Athanatos on April 29th, 2019, 09:36 PM
Quote from DarkRaZoR^ on April 29th, 08: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).
Welp, It also like in this thread doesn't not work with hunter guns and same with onObjectShoot() .