OnPlayerWeaponShoot BUGG
#1

Hi,

I found bugg in OnPlayerWeaponShoot. When you shoot to player from larg'e distance and shoot for ex with deagle, with that weapon which can't to shoot to large distances, this callback get called, but really bullet don't reach a person.. How to fix it? how to make if bullet don't reach a person, then even if this callback is called, then any code bellow don't work.
Reply
#2

OnPlayerWeaponShot is called whenever a player shoots from a gun, no matter if the player shoots at player/vehicle/object/elsewhere. If the distance between the 2 players is not enough for the bullet to reach and damage the player, I guess the hittype will not be BULLET_HIT_TYPE_PLAYER (correct me if I'm wrong).
Reply
#3

I'am using BULLET_HIT_TYPE_PLAYER, and problem is that this callback and this check is working still..
Reply
#4

Quote:
Originally Posted by audriuxxx
Посмотреть сообщение
I'am using BULLET_HIT_TYPE_PLAYER, and problem is that this callback and this check is working still..
It might be getting hit but I assume that the damage would keep on decreasing when the distance increases. Try debugging with OnPlayerTakeDamage to know the damage rates.
Reply
#5

I test it, the distances have to be right, then HP changes. But now asking, what happin when lagg? this callback can be called later, or HP will be changer slower?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)