10.06.2013, 14:38
Quote:
What this for ?
I mean,doesn't it effect almost the same as SetPlayerHealth ? And last question,for what this include? However,looks like another nice release from you ![]() |
Quote:
Just a couple of questions.
1.) This line is on OnPlayerGiveDamage() pawn Код:
2.) What happens when a shot is synced but also OnPlayerGiveDamage() is called the player will receive a more damage. 3.) When setting a players health to zero it will case a lot a problems with who killed who. 4.) Why do this in DamagePlayer()? pawn Код:
I think you have some serious issues to work out with this include. |
2) I too had some doubts regarding it so I tested the callbacks being called on some intervals and noticed that OnPlayerGiveDamage is being called when the attacker damages the player and the damage must reach well. Else, OnPlayerGiveDamage won't get called very well. However, there's a chance where OnPlayerTakeDamage being called twice due to the sync occurs in cases like lag, lag shots etc. Depends on the player's ping rate too. Though, I'm having a bit doubts regarding the sync occuring on OnPlayerGiveDamage too. I'll be developing better way and will be testing more about this.
3) I really don't think so because I checked the cases if there's any problem while the health is being set to 0 and creates any corruption, but it doesn't.
4) I was thinking of doing something, unfortunately I added that there too. Although, that really doesn't matter.
Thanks for the 3rd one, really appreciate it. +rep.
Edit :
You must spread some Reputation around before giving it to [uL]Pottus again.
#fu** this.
