Anti-Lag
#2

The best way to use Anti-lag is to create a hybrid type system where you can lead aim but also shoot the skin if you want due to the nature of this kind of system you will need to have a delay to see if a player has any OnPlayerTakeDamage() happen in this case you cancel the OnPlayerGiveDamage(). We've had some excellent results with this type of system being well suited and balanced for online play since the damage cycle of OnPlayerGiveDamage() is 300ms per message it tones down the excessive damage as a result which quells rapid-fire cbugging. I should also note since it will only process one per 300ms any additional messages are ignored until this is complete or an OnPlayerTakeDamage() is received, there is no need for putting all the players on the same team which is so lame with most anti-lag systems as a lead aim shot will stun you but no damage is lost. In terms of cheating we've never had anyone send fake messages yet that isn't much of an issue in fact it's usually quite the opposite making cheating more difficult.

Edit - There is a lot of stuff you need to do to set this up correctly, I wouldn't recommend using OnPlayerDeath() it's better to make your own call back I usually use OnPlayerDeathEx() then set OnPlayerDeath() { return 1; } now you'll need to detect when a player is killed. I send the message from OnPlayerGiveDamage() to a hit issuer function which will directly call OnPlayerTakeDamage() from there you process the damage and set it with SetPlayerArmour() and SetPlayerHealth() then call OnPlayerDeathEx() when a kill is detected. You'll also need to use OnPlayerStateChange() since some deaths are not detected in OnPlayerTakeDamage(). Contact me if you need more information I've written several of these systems and have done literally months of testing and tweaking so I have a pretty good idea of all situations you'll encounter.
Reply


Messages In This Thread
Anti-Lag - by MP2 - 10.04.2013, 22:55
Re: Anti-Lag - by Pottus - 10.04.2013, 23:16
Re: Anti-Lag - by MP2 - 11.04.2013, 08:04
Re: Anti-Lag - by cessil - 11.04.2013, 08:55
Re: Anti-Lag - by MP2 - 11.04.2013, 09:25
Re: Anti-Lag - by Gamer_Z - 11.04.2013, 10:30
Re: Anti-Lag - by Pottus - 11.04.2013, 10:58
Re: Anti-Lag - by 2KY - 12.04.2013, 00:35
Re: Anti-Lag - by [ABK]Antonio - 12.04.2013, 00:51
Re: Anti-Lag - by wups - 12.04.2013, 15:49
Re: Anti-Lag - by MP2 - 12.04.2013, 15:55
Re: Anti-Lag - by Maxips2 - 12.04.2013, 17:21
Re: Anti-Lag - by Pottus - 12.04.2013, 18:09
Re: Anti-Lag - by MP2 - 12.04.2013, 18:50
Re: Anti-Lag - by cessil - 12.04.2013, 19:15
Re: Anti-Lag - by Maxips2 - 13.04.2013, 10:01
Re: Anti-Lag - by MP2 - 13.04.2013, 20:08
Re : Anti-Lag - by HitnKill - 17.04.2013, 22:30
Re: Anti-Lag - by RedFusion - 19.04.2013, 11:17
Re : Anti-Lag - by HitnKill - 19.04.2013, 12:52

Forum Jump:


Users browsing this thread: 5 Guest(s)