Hi, you guys may know walljumping & circle jumping are unvolontarily the best gameplay mechanics of the game, if we put aside traditional competitive gameplay mechanics (of course players who master those glitches fly as gods and this fucks up the gameplay devs imaginated), and I always wondered how the devs have put those magical things unvolontarily. I've seen recently that Comrade (https://github.com/ccomrade/crymp-client) found the code responsible for the circle jump patch (just 1 line of code did the job to remove CJ) ; and I wanted to know if someone (maybe Comrade himself or anybody who understands how Crysis' physics code behave) could explain me how this dumb but wonderful code make the player go up in the air if he turns properly. I have sufficient understanding of C++ in general but I'm not really into physics computing and don't really understand how the game handles this and make this glitch possible. If someone else is interested, the code is here : https://github.com/ccomrade/crymp-client/blob/a2a073d560e136e8c1991e2983ccbcabae3b9d3f/Code/CryGame/Actors/Player/PlayerMovement.cpp#L1346
line 1346 ; or in Mods/CrysisMod/Code/PlayerMovement.cpp if you installed the ModSDK.
I would really like to know how it works, at the point where I could implement it in my own game if I wanted, but in a subtle way not easy to master, just like it is in Crysis.
Thanks :)
❤️ 1