Hi,
I would like to use a custom weapon bobbing formula that I put together, how would I do this? All that (to my knowledge) exists are predefined formulas with some parameters.
Thanks.
PS.
I haven't posted anything on the forum in a while, so this might not be as polished or put together in the same way as the older ones,
ZScript / Decorate: Weapons: Custom Bobbing formulas?
Moderator: GZDoom Developers
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
-
- Posts: 15
- Joined: Tue Feb 21, 2023 12:16 pm
- Preferred Pronouns: He/Him
- Operating System Version (Optional): Debian 12
- Graphics Processor: nVidia with Vulkan support
Re: ZScript / Decorate: Weapons: Custom Bobbing formulas?
You can override the BobWeapon function in the player class to add a custom bobbing formula.
I haven't tried to do that myself however, so I won't be of much help.
I haven't tried to do that myself however, so I won't be of much help.