Anti-Lag
#4

For mine I only used OnPlayerGiveDamage.
I put everyone on teamid 1 so that no one could hurt each other, and then checked under opgd a few things like if they were on opposite teams, if they were not in shop mode, not spawn kill protected, not already dead and the player shooting was not already dead.

Since all health and armour variables were stored on the server and then displayed on the clients I knew when someone would die, the killerid and the reason before they would.
I saved the killerid and reason with variables and under OnPlayerDeath used the variables instead of whatever would of been reported. (Also making sure the killerid was still connected)

1. Cheating
There were only a couple cheaters that were ever a threat, one that did fake killing which was easily detected since if no damage was reported how can there be a killer?
And another with rapid fire weapons like a rapid fire sniper rifle, which I detected and blocked by getting the time intervals of every weapon and stopping the damage if it was too fast.

2. Controllers/Joypads can Auto-Aim/Lock-On
They weren't really a threat although I did have detection and a kick for them, seeing as joypad users never return an id for GetPlayerTargetPlayer.

I did have to put up a few things to make it easier for players being shot though.
1. Everyone on the opposite team had no name tag or map marker.
2. On being hit, the person that hit you would have their name tag revealed and their map marker visible for you until your death or theirs.
3. Also added a tagging system where you aim at a person and press the 'NO' key then they'd have their name tag visible and map marker for your whole team until their death.
4. On being hit, a textdraw would display showing how much damage you're taking which would stack or disappear within a few seconds.

The main reason I did it was to get rid of health locking cheaters, but I also thought it'd be interesting and I had gotten very sick of lead aiming.
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: 3 Guest(s)