Difference between revisions of "Flying"
Jump to navigation
Jump to search
m
no edit summary
imported>DragoonWraith (→Notes: ah, didn't realize it involved nudity; I'm going to remove the link just in case. Not really certain on the rules here about this, but they're probably the same as on the Forums.) |
imported>8asrun6aer m |
||
Line 176: | Line 176: | ||
;******************************* | ;******************************* | ||
set cstmHeading to Player.GetAngle z | set cstmHeading to Player.GetAngle z | ||
set cstmSpeedMax to 600 ; adjust to | set cstmSpeedMax to 600 ; adjust to limit how fast a player flies, but keep high to have any noticeable effect | ||
set cstmPitch to Player.GetAngle x | set cstmPitch to Player.GetAngle x | ||
set cstmZPitchModifyer to ( cstmPitch / 90 ) * -1 | set cstmZPitchModifyer to ( cstmPitch / 90 ) * -1 | ||
Line 250: | Line 250: | ||
== Notes == | == Notes == | ||
# This script requires that the player be in the air in order to activate flying. In other words, the player must be jumping or falling before flying can be activated. This catch is necessary to not produce the same wall/ceiling clipping that the customary [[SetPos]] method does, and for initially adjusting player velocities. | # This script requires that the player be in the air in order to activate flying. In other words, the player must be jumping or falling before flying can be activated. This catch is necessary to not produce the same wall/ceiling clipping that the customary [[SetPos]] method does, and for initially adjusting player velocities. Though you can automate triggering a jump and activating flying if you wish. | ||
# At line ~194, the formula used to counteract local gravity can be found in the [[GetLocalGravity]] page. This might not be exact as the player still loses elevation very slowly if hovering in place. | # At line ~194, the formula used to counteract local gravity can be found in the [[GetLocalGravity]] page. This might not be exact as the player still loses elevation very slowly if hovering in place. | ||
# Sometimes, activating flying only causes the player to rise 20 or so feet and then fall. Click the ''activate'' key a few more times to really activate flying. The exact location of this bug in this script is not yet known, but likely somewhere in the initial flight activation check area (line ~69). | # Sometimes, activating flying only causes the player to rise 20 or so feet and then fall. Click the ''activate'' key a few more times to really activate flying. The exact location of this bug in this script is not yet known, but likely somewhere in the initial flight activation check area (line ~69). |