| Mirage Source http://miragesource.net/forums/ |
|
| Speed Hack Movement Protection http://miragesource.net/forums/viewtopic.php?f=210&t=2984 |
Page 1 of 1 |
| Author: | William [ Mon Nov 05, 2007 5:47 pm ] |
| Post subject: | Speed Hack Movement Protection |
Introduction Currently, all that prevents the movement from happening all the time is the fps lock (this is from k2h, a unedited ms has 50 or something, dunno): Code: ' Lock fps Do While GetTickCount < Tick + 32 DoEvents Loop Although, speedhacks basicly messes with the tickcount. Therefore this part is useless if you use a speedhack. But I'm pretty certain that timers are not affected by speedhacks, therefore we can have a timer around the checkmovement call. So it prevents it from running that call more than it should. Client Side Begin with adding a timer to your frmMirage. Set the interval to a number that doesn't affect your walking nor running speed. If you have the interval on 100, for example. Your character will probably run 1 tile, get stopped for some milliseconds, then run 1 tile etc... For my game, using 32 on the FPS cap, I used the interval 20. This however means that a timer will be running almost all the time on your client. But I don't think that affect much, does it? Now, inside that timer, add (SH = SpeedHack): Code: SHMove = 1 Now in any module, add: Code: Public SHMove As Byte Now find: Code: ' Check if player is trying to move Replace that part with: Code: ' Check if player is trying to move If SHMove = 1 Then Call CheckMovement SHMove = 0 End If So now, when you move 1 step, SHMove will become 0 and prevents the Call CheckMovement from running, until the timer makes SHMove = 1. And then you can move again. I'd like to know what you think of this idea. Please Test it with a Speed hack Program and report back! |
|
| Author: | Rian [ Mon Nov 05, 2007 6:20 pm ] |
| Post subject: | Re: Speed Hack Movement Protection |
Good effort sir, but speed hacks DO affect timers. |
|
| Author: | William [ Mon Nov 05, 2007 6:28 pm ] |
| Post subject: | Re: Speed Hack Movement Protection |
Are you certain about that? If so, I guess we should use the vb Timer function instead, since Grim said that wasn't affected by it. I might update the tut later. |
|
| Author: | Rian [ Mon Nov 05, 2007 6:50 pm ] |
| Post subject: | Re: Speed Hack Movement Protection |
I'm positive. Just download a copy of SpeederXP. Make a VB application with a timer and a label. timer interval of 1000, enabled. set the label's caption to 0, then in the timer, put label.caption = label.caption + 1. User speeder XP and you'll see the difference. |
|
| Author: | William [ Mon Nov 05, 2007 7:10 pm ] |
| Post subject: | Re: Speed Hack Movement Protection |
Okay, I guess timers are affected then too. |
|
| Author: | Coke [ Tue Nov 06, 2007 12:36 pm ] |
| Post subject: | Re: Speed Hack Movement Protection |
dont restrict it client side thats a losing battle, check the time it takes them to move 10 squares or something server side, if they move 10 squares quicker than the tickcount wants them too, boot the bastards! |
|
| Author: | William [ Tue Nov 06, 2007 12:49 pm ] |
| Post subject: | Re: Speed Hack Movement Protection |
Fox wrote: dont restrict it client side thats a losing battle, check the time it takes them to move 10 squares or something server side, if they move 10 squares quicker than the tickcount wants them too, boot the bastards! That would require a loop through all the players, and that loop would be running each 100ms. I dont like that idea xD |
|
| Author: | Matt [ Tue Nov 06, 2007 1:00 pm ] |
| Post subject: | Re: Speed Hack Movement Protection |
So don't loop. Just check the one player when he moves.. I'm sure that's what Fox was talking about. You can try to combat speed hacks all you want, someone is going to find a way. There are speed hacks for Kal Online, Tantra Online, World of Warcraft, Lineage II, and several of the other mainstream / indy games. They all find a way to combat them, but then a new one just comes out, so it's going to happen.. Though, in a 2D game, I don't really see people doing it. |
|
| Author: | William [ Tue Nov 06, 2007 1:02 pm ] |
| Post subject: | Re: Speed Hack Movement Protection |
Gash, people always say protection isnt needed. Fuck that. People used speed hacks in beta 2 in k2h. Locked, cause I made a new tutorial. |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|