Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(2 edits)

I took a look at it and I do have a few questions. 

When you say "You should get similar result if you followed other people's code" are you referring to a particular tutorial or guide?

What's $pivot? A spatial on the player's eyes?

Finally, what is mouse_sensitivity *= $"../../".stretch_shrink , why not just a export var int?

Yes I have googled multiple articles about air strafe code. But this one is the most useful one because it explains how the acceleration is applied in Source engine. Once you understand you should be able to implement it in Godot. Although the code example in the article is not perfect. So I just hard coded some conditions into it to make it feel like CS:GO movement.

$pivot is a spatial on the player's eyes, yes. Which has the camera + hands + gun as children.

For the mouse sensitivity, I was playing around with the stretch_shrink to give the game a "low res" look like those psx games, which affects mouse sensitivity. For it to remain the same speed I just multiply it by the stretch shrink factor.

Thanks, I really appreciate the info.

How were you able to get the player to stick to the slope when surfing. I'm trying to implement surfing in a project of my own and when i try to surf, my character keeps slipping off.

For the player movement, I just used Godot's move_and_slide() function. All I have to do is to make sure the slope angle is within the accepted interval for the player to slide. If u are not using godot, then I am not quite sure, sorry!

(1 edit)

hmm, when i try to implement quake movement, when i try and surf on a slope, my character just falls off and doesn't stick to the surface. Thanks for the tip btw

edit: I just managed to figure it out. Thank you so much for uploading your code, after going through it a few times i manage to figure it out. Again, thank you for uploading this :)))))