How to Make the Screen Tilt While Using Jetpack: Difference between revisions
Jump to navigation
Jump to search
New page: This was brought up in a 3DRealms Forums thread. Utilizing, editing, and adding on to some code that James Stanfield posted, I came up with this. When the player uses the jetpack, and stra... |
No edit summary |
||
Line 3: | Line 3: | ||
Insert this code anywhere in your .CON files: | Insert this code anywhere in your .CON files: | ||
<PRE> | |||
onevent EVENT_STRAFELEFT ifp pjetpack setplayer[THISACTOR].rotscrnang 20 | onevent EVENT_STRAFELEFT ifp pjetpack setplayer[THISACTOR].rotscrnang 20 | ||
endevent | endevent | ||
Line 15: | Line 15: | ||
onevent EVENT_MOVEBACKWARD ifp pjetpack setplayer[THISACTOR].horizoff 20 | onevent EVENT_MOVEBACKWARD ifp pjetpack setplayer[THISACTOR].horizoff 20 | ||
endevent | endevent | ||
<PRE> |
Revision as of 12:13, 9 June 2008
This was brought up in a 3DRealms Forums thread. Utilizing, editing, and adding on to some code that James Stanfield posted, I came up with this. When the player uses the jetpack, and strafes to the left, or moves backwards and forwards, the screen will tilt accordingly. I found the variables to 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:
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