jcsnider Posted March 30, 2020 Share Posted March 30, 2020 Direction Tapping Mod  Description: This mod alters player input handling in order to allow turning the player without moving by quick tapping the directional input keys.  Media:  Git Patch: Download  Based On: Version: 0.6.1.239 Commit: faedd06  Setup: No extra setup steps required. Just install the patch and run. Try quickly (very quickly) tapping WASD or the arrow keys and your character should turn without moving to a new tile.  Notes: The logic isn't perfect. You gotta tap so fast that you often move to another tile by accident. I didn't want the delay, however, to make movement feel too clunky. There's definitely room for improvement and I invite others to expand on this and create a better implementation!   Shenmue, Ainz Ooal Gown, Alexoune001 and 4 others 7 Link to comment Share on other sites More sharing options...
jcsnider Posted April 1, 2020 Author Share Posted April 1, 2020 There is a bug with this that I'll try to fix later tonight: https://cdn.discordapp.com/attachments/502642435118333953/694920615676608603/2020-04-01_15-45-22.mp4 Kibbelz 1 Link to comment Share on other sites More sharing options...
WereAlpaca Posted April 1, 2020 Share Posted April 1, 2020 Great for satisfying a higher player skill in combat! Thank you! Link to comment Share on other sites More sharing options...
jcsnider Posted April 2, 2020 Author Share Posted April 2, 2020 So the code for the mod is solid.. but our input handling code in the base engine itself need a small tweak. I've created a PR, and once merged the bug above will be fixed: https://github.com/AscensionGameDev/Intersect-Engine/pull/62 Justn 1 Link to comment Share on other sites More sharing options...
Hickie Posted April 2, 2020 Share Posted April 2, 2020 Possibly instead of double pressing a direction hold down a button eg ctrl and then pressing directions turns on the spot. Could feel smoother. Link to comment Share on other sites More sharing options...
jcsnider Posted April 2, 2020 Author Share Posted April 2, 2020 2 minutes ago, Hickie said: Possibly instead of double pressing a direction hold down a button eg ctrl and then pressing directions turns on the spot. Could feel smoother.  Would definitely be a lot better. I don't particularly want to dive into adding additional controls but I welcome others to expand on this patch :). Link to comment Share on other sites More sharing options...
Kibbelz Posted April 2, 2020 Share Posted April 2, 2020 3 hours ago, jcsnider said: So the code for the mod is solid.. but our input handling code in the base engine itself need a small tweak. I've created a PR, and once merged the bug above will be fixed: https://github.com/AscensionGameDev/Intersect-Engine/pull/62 Accepted pull request and merged into main branch. Everyone using this feature needs to merge with the latest master branch! Link to comment Share on other sites More sharing options...
Guest Posted April 2, 2020 Share Posted April 2, 2020 Error when apply  Quote G:\Celtos Online\Intersect-Engine>git apply --check Tap.patch error: patch failed: Intersect.Client/Entities/Player.cs:831 error: Intersect.Client/Entities/Player.cs: patch does not apply  Link to comment Share on other sites More sharing options...
jcsnider Posted April 2, 2020 Author Share Posted April 2, 2020 Generally means that it's already applied. Link to comment Share on other sites More sharing options...
Guest Posted April 2, 2020 Share Posted April 2, 2020 Compiled here and does not have this function Link to comment Share on other sites More sharing options...
Justn Posted April 2, 2020 Share Posted April 2, 2020 Working great. I did up the time just a tad to 90ms. Felt too sensitive on my keyboard. Thank you sir!  @Celtos Maybe you need to up the time a bit as well?  MoveDirectionTimers = Globals.System.GetTimeMs() + 60 Link to comment Share on other sites More sharing options...
Guest Posted April 3, 2020 Share Posted April 3, 2020 I don't even think this function because I couldn't insert it in my code ... Gives this error when importing  Quote G:\Celtos Online\Intersect-Engine>git apply --check Tap.patch error: patch failed: Intersect.Client/Entities/Player.cs:831 error: Intersect.Client/Entities/Player.cs: patch does not apply  Link to comment Share on other sites More sharing options...
Justn Posted April 3, 2020 Share Posted April 3, 2020 2 minutes ago, Celtos said: I don't even think this function because I couldn't insert it in my code ... Gives this error when importing   Have you searched the code to see if it is there? Ctrl+f Link to comment Share on other sites More sharing options...
Guest Posted April 3, 2020 Share Posted April 3, 2020 Yes  Searched MoveDirectionTimers Link to comment Share on other sites More sharing options...
BrunoWrier Posted April 7, 2020 Share Posted April 7, 2020 On 4/2/2020 at 4:23 PM, Celtos said: Error when apply   same here Link to comment Share on other sites More sharing options...
Nimbus Posted April 2, 2021 Share Posted April 2, 2021 I can't get this to work since upgrading to the most recent build =/. Used to work back on 6.1.xx Link to comment Share on other sites More sharing options...
Xiphoid Posted April 3, 2021 Share Posted April 3, 2021 you can write changing code manually guys... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now