![]() |
[Feature] AutoMove Key - Printable Version +- Mirage Source (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: Source Code Development (https://mirage-engine.uk/forums/forumdisplay.php?fid=51) +----- Forum: Mirage Source 4 (Visual Basic 6) (https://mirage-engine.uk/forums/forumdisplay.php?fid=44) +------ Forum: Tutorials (https://mirage-engine.uk/forums/forumdisplay.php?fid=13) +------ Thread: [Feature] AutoMove Key (/showthread.php?tid=2240) |
[Feature] AutoMove Key - Ramsey - 12-10-2008 Difficulty: 1/5 - Copy & Paste This will make it so that if you press insert, you will automatically walk in that direction. To stop it you can either press any direction or insert again. This will also work in a map transition. Very basic. I also fixed a thing where if you are holding down a direction key and press insert and you let go of the direction it wont have an effect now. Try it out. All client side. Go into modGlobals and add this: Code: Public AutoMove As Boolean Under: Code: Public ControlDown As Boolean Replace the whole sub: Code: Sub CheckInput(ByVal KeyState As Byte, ByVal KeyCode As Integer, ByVal Shift As Integer) With this: Code: Sub CheckInput(ByVal KeyState As Byte, ByVal KeyCode As Integer, ByVal Shift As Integer) Go to: Code: Public Sub GameLoop() and comment out: Code: If GetAsyncKeyState(VK_UP) >= 0 Then DirUp = False then go to: Code: Sub HandlePlayerData(ByRef Parse() As String) and replace: Code: If i = MyIndex Then with: Code: If i = MyIndex Then and that's it. Tell me if I missed anything. Again, its very basic didn't want to go and make it real complicated. Edit: Will optimize later on. Re: [Feature] AutoMove Key - Ramsey - 14-10-2008 Improved a little bit. Should work faster now. |