Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added FloatBobFactor to actor properties #2694

Merged
merged 1 commit into from
Sep 29, 2024

Conversation

jekyllgrim
Copy link
Contributor

@jekyllgrim jekyllgrim commented Aug 30, 2024

This adds a new actor property: FloatBobFactor (default 1.0). This will function as a multiplier for level.time in AActor::GetBobOffset, which will finally allow to control not only the range of float bobbing (which is determined by FloatBobStrength) but also the frequency of bobbing.

Note, I also added an error that will appear if the value is 0 or lower. I can remove it, since technically it shouldn't break anything, but using 0 or negative seems pointless (unless I'm missing something), so it seemed warranted to me.

P.S. Initially considered calling it "FloatBobSpeed", but due to how it's used, it's clearly a factor, so FloatBobFactor seems more fitting.

This adds a new actor property: `FloatBobFactor` (default 1.0). This will be a multiplier for level.time in `AActor::GetBobOffset`, which finally allows to control not only the range of float bobbing (which is FloatBobStrength) but also the frequency of bobbing.
@madame-rachelle madame-rachelle merged commit 994078f into ZDoom:master Sep 29, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants