OnPlayerTakeDamage bug
#10

Quote:
Originally Posted by cessil
Посмотреть сообщение
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
I know but the player shoots himself on my screen so this is a critical bug, for headshot system your sugestion is good but why in OnPlayerTakeDamage issuerid is INVALID_KILLER_ID but is not? :P i got
if(0 <= issuerid < MAX_PLAYERS) then rest of headshot code, its still a bug not on my side, and what about other skin parts? player have permanently god mode for sniper rifle

step by step
we connect with friend
only sniper rifle duels
headshot works perfectly
after some time i shoot on his head or he on my and i died with INVALID_KILLER_ID but he shoots me so why SetPlayerHealth is using INVALID_KILLER_ID ?
after another 2-3 kills with INVALID_KILLER_ID we get this bug both and now we cant get damage together with sniper rifle ( total god for all skin and I see hes shooting for himself because blood is going down from his skin)
after relog (both) everything is working good for another few minutes/hours

its not only on my server so this is serious bug for only sniper rifle
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)