26.04.2017, 09:55
The issue with lagcomp is that it first of all doesnt work with melee weapons, when you try to hit someone but it doesnt call OnPlayerTakeDamage, you have to predict like in old days where to fire. Best is that you go in an empty gamemode and test the way "Testing" section in main post says (two times, one without this include and one with).
Ofcourse wait till i fix the bug(s).
Secondally lets say you have a deagle and you fire 7 bullets, its likely that all the shots will register OnPlayerTakeDamage (all the shots were hit) but they will call OnPlayerWeaponShot and OnPlayerGiveDamage. So that part is fixed in this.
So the reason why i set all to same team is so that player cannot damage a player with any weapon, neglect OnPlayerTakeDamage completely for player hit player. So i manually handle damage system in OnPlayerGiveDamage which makes it protective from hacks too.
Ofcourse wait till i fix the bug(s).
Secondally lets say you have a deagle and you fire 7 bullets, its likely that all the shots will register OnPlayerTakeDamage (all the shots were hit) but they will call OnPlayerWeaponShot and OnPlayerGiveDamage. So that part is fixed in this.
So the reason why i set all to same team is so that player cannot damage a player with any weapon, neglect OnPlayerTakeDamage completely for player hit player. So i manually handle damage system in OnPlayerGiveDamage which makes it protective from hacks too.