15.04.2014, 13:00
(
Последний раз редактировалось Jefff; 15.04.2014 в 15:37.
)
Quote:
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 |
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