OnPlayerTakeDamage bug
#8

here's the usual order of the function calls
OnPlayerWeaponShot
OnPlayerGiveDamage
OnPlayerTakeDamage

although sometimes weaponshot and givedamage can get mixed up, onplayertake damage will be called last
if you have code in givedamage, that is before take damage is called then the player getting shot has not yet been shot

so killing the player in onplayergivedamage will be purely because of the script, do what kar suggested with the tracking of the person that last shot them which could be in onplayerweaponshot and then under onplayerdeath if its an unknown killerid then set it to the last person that shot them

this is not a bug
Reply


Messages In This Thread
OnPlayerTakeDamage bug - by Jefff - 12.04.2014, 21:22
Re: OnPlayerTakeDamage bug - by Kar - 12.04.2014, 22:32
Re: OnPlayerTakeDamage bug - by PinEvil - 13.04.2014, 03:57
Re: OnPlayerTakeDamage bug - by Jefff - 13.04.2014, 23:04
Re: OnPlayerTakeDamage bug - by Kar - 13.04.2014, 23:13
Re: OnPlayerTakeDamage bug - by Jefff - 15.04.2014, 00:11
Re: OnPlayerTakeDamage bug - by Kar - 15.04.2014, 01:11
Re: OnPlayerTakeDamage bug - by cessil - 15.04.2014, 03:00
Re: OnPlayerTakeDamage bug - by Lordzy - 15.04.2014, 03:00
Re: OnPlayerTakeDamage bug - by Jefff - 15.04.2014, 13:00

Forum Jump:


Users browsing this thread: 1 Guest(s)