![]() |
Speed Hack Movement Protection - Printable Version +- Mirage Engine (https://mirage-engine.uk/forums) +-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61) +--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18) +---- Forum: Resources (https://mirage-engine.uk/forums/forumdisplay.php?fid=49) +---- Thread: Speed Hack Movement Protection (/showthread.php?tid=1376) |
Speed Hack Movement Protection - William - 05-11-2007 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 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 Code: ' Check if player is trying to move 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! Re: Speed Hack Movement Protection - Rian - 05-11-2007 Good effort sir, but speed hacks DO affect timers. Re: Speed Hack Movement Protection - William - 05-11-2007 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. Re: Speed Hack Movement Protection - Rian - 05-11-2007 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. Re: Speed Hack Movement Protection - William - 05-11-2007 Okay, I guess timers are affected then too. Re: Speed Hack Movement Protection - Coke - 06-11-2007 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! Re: Speed Hack Movement Protection - William - 06-11-2007 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 Re: Speed Hack Movement Protection - Matt - 06-11-2007 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. Re: Speed Hack Movement Protection - William - 06-11-2007 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. |