I’m to sharing a project I’ve been working on: a custom movement system inspired by CS:GO and Quake. I hope it can serve as a useful resource for developers looking to create similar mechanics in their own projects.
To build this, I referenced these resources:
- Quake’s `sv_user.c (Quake/WinQuake/sv_user.c at master · id-Software/Quake · GitHub)
- Source SDK 2013’s gamemovement.cpp (source-sdk-2013/sp/src/game/shared/gamemovement.cpp at 56accfdb9c4abd32ae1dc26b2e4cc87898cf4dc1 · ValveSoftware/source-sdk-2013 · GitHub)
- Zweek’z video, (https://www.youtube.com/watch?v=gRqoXy-0d84&t=1886s)
While this system may not be perfect, it’s a resource for anyone interested in understanding how these mechanics work.
Features
- Air Strafing: Smooth and responsive mid-air movement.
- Surfing: Basic surfing mechanics (pretty okay).
Issues
Currently, the system does not include collision detection. If you’d like to implement this, I recommend checking out this helpful DevForum post:
How to Prevent Players from Getting Stuck/Glitching When Pushing Towards a Wall (How to prevent player getting stuck/glitching when pushing towards a wall?).
This also is ment for first person!!!
Test it out!
If you want to test it, try it out here. (Player_movement - Roblox)
Get It!
(https://create.roblox.com/store/asset/135284238859762/PMovement)