Isotarge

STVW Theory

Feb 2nd, 2016
655
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. The player's Y rotation (facing direction) is stored as a 16 bit integer meaning the values can range from 0 to 65535. The values between 0 and 4095 represent a full circle in game. When the angle exceeds 4095 the game normally subtracts 4096 until the angle is between 0 and 4095.
  2.  
  3. If the player is facing between 0 and 2047 and leaves first person mode underwater the NTSC-US version of the game adds 4096 to the player's angle causing it to be out of normal range. Angles greater than 4095 allow the player to swim through some walls and force the camera to rotate around the player in strange ways. If the player adjusts their angle using the joystick the game corrects the mistake by applying the fix mentioned above for angles that are out of normal range.
  4.  
  5. The PAL and Japanese versions of the game do not incorrectly add 4096 to the player's angle under these circumstances however forcing angles over 4095 using cheats on these versions replicates the glitch with the exact same properties as the US version.
Advertisement
Add Comment
Please, Sign In to add comment