Using A_SetPitch can get frustrating, especially when you have to figure out how much to add back to bring it back to center and when you start throwing other action functions in and figuring out the best place to put the pitch changes. I was thinking, why isn't there one that interpolates the pitch change automatically across a duration set by the same function?
Example:
Instead of...
to set the pitch only, you'd have
Code: Select all
A_NewPitchFunctionName(float amount, int direction, int tics, whatever else)
where amount is how much of course, and direction is up or down and tics is across how many tics of the current state should it interpolate the pitch changes.
Also I forgot to mention the function would automatically go back up or down by itself after it reaches the amount to move, and the duration would be both directions (the full movement).