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 function as a multiplier for level.time inAActor::GetBobOffset
, which will finally allow to control not only the range of float bobbing (which is determined byFloatBobStrength
) 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.