Camera "Tilt" when reloading

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!
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!)
Post Reply
User avatar
ExtinctDoomStudio
Posts: 22
Joined: Tue Jul 26, 2022 11:40 am
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 7 Professional
Graphics Processor: Not Listed
Location: Poland
Contact:

Camera "Tilt" when reloading

Post by ExtinctDoomStudio »

Hello,
I saw some mods using this effect recently. When reloading a firearm, player camera rotates to the side. This effect is seen in Siren TC and Project Brutality (not 100% sure tho). Can someone tell me how to make it, or give an existing script? I believe it's done with ACS somehow, but i'm an ACS newbie.
Jarewill
 
 
Posts: 1855
Joined: Sun Jul 21, 2019 8:54 am

Re: Camera "Tilt" when reloading

Post by Jarewill »

You are looking for the "roll" variable in an actor.
It can be modified directly in ZScript or using the A_SetRoll function in DECORATE.
ACS isn't needed.
User avatar
ExtinctDoomStudio
Posts: 22
Joined: Tue Jul 26, 2022 11:40 am
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 7 Professional
Graphics Processor: Not Listed
Location: Poland
Contact:

Re: Camera "Tilt" when reloading

Post by ExtinctDoomStudio »

Jarewill wrote: Sun Oct 09, 2022 3:49 am You are looking for the "roll" variable in an actor.
It can be modified directly in ZScript or using the A_SetRoll function in DECORATE.
ACS isn't needed.
Thanks! Appreciate your help.
Post Reply

Return to “Scripting”