[Bug]Client side PlayerShoot event not getting called with Sniper Rifle

Started by habi, Nov 14, 2022, 10:22 PM

Previous topic - Next topic

habi

Description
Client side PlayerShoot event is not getting called with sniper rifle if the player is not local.

Reproducible
Yes

What you were doing when the bug happened
My client side script has a code to print something on Console if somebody shoots somebody making use of the Player::PlayerShoot function. On working with npcs, i found that the function is not getting called if weapon is sniper rifle.

Later i confirmed it by opening two game windows and making one player shoot another. It showed output only on one window where it was supposed to perform on both windows. At the same time, if the weapon is 27 (Ruger), outputs are shown in both windows.

What you think caused the bug
Client side PlayerShoot was not getting called for sniper rifles and shotguns for any players earlier. So the problem might be related to this previous issue.

Sebastian