Scripted Set/Change Ang/Pitch/Roll & R_SetupFrame Discussion

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
User avatar
Posts: 17326
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia

Scripted Set/Change Ang/Pitch/Roll & R_SetupFrame Discussion

Post by Nash »

This thread got me into thinking. Would it be worthwhile to add a "view only" parameter to the current means of scripted Set/ChangeActorAngle/Pitch/Roll so that the effect would be purely visual and not affect the playsim?

I was thinking... for special effects like: the camera swinging animation of a melee weapon; or strafing camera roll, or the camera tilting upon death... or even the animation of your pitch shifting upwards when firing a gun, has no business actually physically altering the actor in the world. Another good reason to keep these things view-only is, let's say you want to let the user disable these camera movement features via a custom user CVar. With the current implementation, this is a fresh recipe for multiplayer desynchronization. Lastly, the benefits of having the view-only parameter is that at the end of a scripted effect, you would be able to retrieve the actor's REAL angle, to snap the view back to neutral (this would probably require additional GetActorViewAngle/Pitch/Roll functions, and the view-only variables in DECORATE would probably be new variables (viewangle, viewpitch, viewroll?)).

These things would be gracefully handled in R_SetupFrame and the final data fed to the renderer properly. For camera roll, the GL code would read the outputs and do what's necessary. And if someone can figure out a way to do camera roll in the software renderer in future (perhaps rasterizing the entire view canvas to a separate texture and then rotating it??? I don't know), well, that's a layer of work already out of the way for them.

Any thoughts? MajorCooke maybe? :mrgreen:
User avatar
Major Cooke
Posts: 8096
Joined: Sun Jan 28, 2007 3:55 pm

Re: Scripted Set/Change Ang/Pitch/Roll & R_SetupFrame Discus

Post by Major Cooke »

While I certainly wouldn't mind having it, it's a question of whether it can be achieved and if it'll pass by the devs. The thing with the quakes, however, was that it was all a temporary basis which is immediately restored right afterwards so ViewPitch/Angle/Roll is just an instant temp thing.

But I could see it being done.

Return to “Editing (Archive)”