OnPlayerTakeDamage doesn't register
#1

Hi!

I got this small problem where OnPlayerTakeDamage doesn't register when a player shoots another player.
It gets called with melees, when somebody hits somebody with a gun, but not when somebody shoots another player.
On the other player's screen it looks as if no bullets are coming out the gun, and bullets don't do any damage at all.
However OnPlayerGiveDamage does work.
Any ideas?
Reply
#2

Are you returning 0 anywhere in your OnPlayerWeaponShot callback? Check all filterscripts too if you have any.
Reply
#3

Do you have many lines under OnPlayerUpdate
Reply
#4

I have about 50 lines under OnPlayerUpdate, 30 of which are commented out.

I deleted one include that returned 0 conditionally under OnPlayerShootWeapon, I'll check if that fixed it.
Reply
#5

Show your codes.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)