Advertisement
Guest User

Untitled

a guest
Sep 9th, 2012
655
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.26 KB | None | 0 0
  1. // GlovePIE Xbox 360 Controller -> Guild Wars 2 Script
  2. // By Disapproval@GW2
  3. // lookodisapproval@reddit /r/Guildwars2
  4. // Partially based on "Soulbound360_0.11.PIE" for WoW
  5.  
  6. //Modified By Haroohara
  7.  
  8. var.MouseSensitivity = screen.width/512 // Camara Control Speed
  9. var.MouseCursor = screen.width/512 // Courser control cpeed
  10.  
  11. //Movment Control//
  12. Key.W = (XInput.LeftStickY > .40)
  13. Key.S = (XInput.LeftStickY < -.40)
  14. Key.D = (XInput.LeftStickX > .40)
  15. Key.A = (XInput.LeftStickX < -.40)
  16. ///////////////////
  17.  
  18. // If you find that the sticks respond too quickly to your movement,
  19. // such as moving left or right while pushing forward, increase these values.
  20. // Reduce the values if control isn't responsive enough.
  21.  
  22.  
  23. if (!Xinput.LeftShoulder){
  24. //Camara Control//
  25. if (XInput.RightStickY > .20) mouse.RightButton + mouse.DirectInputY += var.MouseSensitivity*(XInput.RightStickY/2)
  26. if (XInput.RightStickY < -.20) mouse.RightButton + mouse.DirectInputY -= -var.MouseSensitivity^1*(XInput.RightStickY/2)
  27. if (XInput.RightStickX > .20) mouse.RightButton + mouse.DirectInputX += var.MouseSensitivity*(XInput.RightStickX)
  28. if (XInput.RightStickX < -.20) mouse.RightButton + mouse.DirectInputX -= -var.MouseSensitivity^1*(XInput.RightStickX)
  29. //////////////////
  30. }else{
  31. //Courser Control//
  32. mouse.RightButton = 0
  33. if ((XInput.RightStickX or XInput.RightStickY > .10) or (XInput.RightStickX or XInput.RightStickY < -.10)){
  34. mouse.DirectInputY += -(var.MouseCursor)*(XInput.RightStickY)
  35. mouse.DirectInputx += (var.MouseCursor)*(XInput.RightStickX)
  36. }
  37. //Depricated//
  38. //if (XInput.RightStickY > .90) mouse.DirectInputY += -(var.MouseCursor)^(XInput.RightStickY) //cursor right
  39. //if (XInput.RightStickY < -.90) mouse.DirectInputY -= (var.MouseCursor)^1*(XInput.RightStickY) //cursor left
  40. //if (XInput.RightStickX > .90) mouse.DirectInputX += var.MouseCursor^(XInput.RightStickX) //cursor down
  41. //if (XInput.RightStickX < -.90) mouse.DirectInputX -= -var.MouseCursor^1*(XInput.RightStickX) //cursor up
  42. ///////////////////
  43. }
  44.  
  45.  
  46. Key.Spacebar = XInput.A and !(XInput.RightTrigger or XInput.LeftTrigger or XInput.LeftShoulder)// Jump
  47. Key.1 = XInput.B and !(XInput.RightTrigger or XInput.LeftTrigger) // Attack
  48. Key.Tab = XInput.X and !(XInput.RightTrigger or XInput.LeftTrigger) // Tab-Target
  49. Key.6 = XInput.Y and !(XInput.RightTrigger or XInput.LeftTrigger) // Heal
  50.  
  51. //Weapon Skills//
  52. Key.2 = XInput.A and XInput.RightTrigger and !XInput.LeftTrigger
  53. Key.3 = XInput.B and XInput.RightTrigger and !XInput.LeftTrigger
  54. Key.5 = XInput.X and XInput.RightTrigger and !XInput.LeftTrigger
  55. Key.4 = XInput.Y and XInput.RightTrigger and !XInput.LeftTrigger
  56. /////////////////
  57.  
  58. //Utility Skills//
  59. Key.7 = XInput.A and XInput.LeftTrigger and !XInput.RightTrigger
  60. Key.8 = XInput.B and XInput.LeftTrigger and !XInput.RightTrigger
  61. Key.0 = XInput.X and XInput.LeftTrigger and !XInput.RightTrigger
  62. Key.9 = XInput.Y and XInput.LeftTrigger and !XInput.RightTrigger
  63. //////////////////
  64.  
  65. Key.M = XInput.Start // Map
  66. key.x = XInput.Back // Walk
  67.  
  68.  
  69. //Toolbelt/F-keys//
  70. Key.F1 = XInput.A and XInput.RightTrigger and XInput.LeftTrigger
  71. Key.F2 = XInput.B and XInput.RightTrigger and XInput.LeftTrigger
  72. Key.F3 = XInput.Y and XInput.RightTrigger and XInput.LeftTrigger
  73. Key.F4 = XInput.X and XInput.RightTrigger and XInput.LeftTrigger
  74. ///////////////////
  75.  
  76. Key.Console = XInput.LeftShoulder and XInput.RightShoulder // Weapon Switch
  77.  
  78.  
  79. Key.F = XInput.RightShoulder and !(XInput.RightTrigger or XInput.LeftTrigger or XInput.LeftShoulder) //Action Key
  80.  
  81. //Misc.//
  82. Key.Escape = XInput.Down
  83. Key.I = XInput.Right
  84. Key.H = XInput.Left
  85. /////////
  86.  
  87. //Targetting//
  88. Key.T = XInput.up and !XInput.LeftShoulder
  89. Key.NumPadDot = XInput.up and XInput.LeftShoulder //remap take target to numpaddot
  90. //////////////
  91.  
  92. Key.V = XInput.LeftThumb
  93. Key.PageDown = XInput.RightThumb and XInput.LeftShoulder // Zoom Out
  94. Key.PageUp = XInput.RightThumb and !XInput.LeftShoulder // Zoom In
  95. mouse.LeftButton = XInput.A and XInput.LeftShoulder //Mouse-Left-Click
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement