Posts: 154
Threads: 22
Joined: Sep 2013
Reputation:
0
I've been wanting to know this for a long time and still can't find a thread or post related to it. Does the lag compensation apply to OnPlayerTakeDamage()?
What I mean is, if lag compensation is disabled (lag shooting on), would OnPlayerTakeDamage() be accurate to the physical shots only or also to the lag shots? Thanks!
Posts: 154
Threads: 22
Joined: Sep 2013
Reputation:
0
I'll take your word for it. Thanks!
Posts: 354
Threads: 16
Joined: Jun 2014
If Lag Compensation is off, I bet OnPlayerTakeDamage won't be accurate. Yeah, it won't.
Posts: 817
Threads: 136
Joined: Mar 2013
Reputation:
0
OnPlayerTakeDamage > OnPlayerGiveDamage or OnPlayerWeaponShot
e: Just now saw the 'physical' and 'lag' shots.
OnPlayerGiveDamage would work on physical shots, and if Lag. Compensation is off(actually doesn't matter if it's on or off..) -- but it's not super accurate.
OnPlayerTakeDamage would work on lag shots(lag. comp off), AND physical shots (lag. comp on) -- it's very accurate
Posts: 2,698
Threads: 37
Joined: Mar 2012
Reputation:
0
If lagcompmode is OFF, OnPlayerTakeDamage is accurate. Because OnPlayerGiveDamage is called whenever a player attacks other player, regardless if they other player receives a damage or even get shot.