View source for How to Make the Screen Tilt While Using Jetpack - EDukeWiki

# View source for How to Make the Screen Tilt While Using Jetpack

← How to Make the Screen Tilt While Using Jetpack

You do not have permission to edit this page, for the following reasons:

- The action you have requested is limited to users in the group: Users.
- You must confirm your email address before editing pages. Please set and validate your email address through your user preferences.

You can view and copy the source of this page.

This was brought up in a 3DRealms Forums thread. Utilizing, editing, and adding on to some code that James Stanfield and Radar1013 posted, I came up with this. When the player uses the jetpack, and strafes to the left/right, moves backwards/forwards, or turns left/right the screen will tilt accordingly. I found the variables tilt the screen appropriately enough, but if you would like less or more just change the variable. Insert this code anywhere in your .CON files: <PRE> onevent EVENT_STRAFELEFT ifp pjetpack setplayer[THISACTOR].rotscrnang 20 endevent onevent EVENT_STRAFERIGHT ifp pjetpack setplayer[THISACTOR].rotscrnang -20 endevent onevent EVENT_MOVEFORWARD ifp pjetpack setplayer[THISACTOR].horizoff -20 endevent onevent EVENT_MOVEBACKWARD ifp pjetpack setplayer[THISACTOR].horizoff 20 endevent onevent EVENT_TURNLEFT ifp pjetpack setplayer[THISACTOR].rotscrnang 6 endevent onevent EVENT_TURNRIGHT ifp pjetpack setplayer[THISACTOR].rotscrnang -6 endevent </PRE>

Return to How to Make the Screen Tilt While Using Jetpack.

Retrieved from "http://wiki.eduke32.com/wiki/How_to_Make_the_Screen_Tilt_While_Using_Jetpack"