Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // GlovePIE Xbox 360 Controller -> Guild Wars 2 Script
- // By Disapproval@GW2
- // lookodisapproval@reddit /r/Guildwars2
- // Partially based on "Soulbound360_0.11.PIE" for WoW
- //Modified By Haroohara
- var.MouseSensitivity = screen.width/512 // Camara Control Speed
- var.MouseCursor = screen.width/512 // Courser control cpeed
- //Movment Control//
- Key.W = (XInput.LeftStickY > .40)
- Key.S = (XInput.LeftStickY < -.40)
- Key.D = (XInput.LeftStickX > .40)
- Key.A = (XInput.LeftStickX < -.40)
- ///////////////////
- // If you find that the sticks respond too quickly to your movement,
- // such as moving left or right while pushing forward, increase these values.
- // Reduce the values if control isn't responsive enough.
- if (!Xinput.LeftShoulder){
- //Camara Control//
- if (XInput.RightStickY > .20) mouse.RightButton + mouse.DirectInputY += var.MouseSensitivity*(XInput.RightStickY/2)
- if (XInput.RightStickY < -.20) mouse.RightButton + mouse.DirectInputY -= -var.MouseSensitivity^1*(XInput.RightStickY/2)
- if (XInput.RightStickX > .20) mouse.RightButton + mouse.DirectInputX += var.MouseSensitivity*(XInput.RightStickX)
- if (XInput.RightStickX < -.20) mouse.RightButton + mouse.DirectInputX -= -var.MouseSensitivity^1*(XInput.RightStickX)
- //////////////////
- }else{
- //Courser Control//
- mouse.RightButton = 0
- if ((XInput.RightStickX or XInput.RightStickY > .10) or (XInput.RightStickX or XInput.RightStickY < -.10)){
- mouse.DirectInputY += -(var.MouseCursor)*(XInput.RightStickY)
- mouse.DirectInputx += (var.MouseCursor)*(XInput.RightStickX)
- }
- //Depricated//
- //if (XInput.RightStickY > .90) mouse.DirectInputY += -(var.MouseCursor)^(XInput.RightStickY) //cursor right
- //if (XInput.RightStickY < -.90) mouse.DirectInputY -= (var.MouseCursor)^1*(XInput.RightStickY) //cursor left
- //if (XInput.RightStickX > .90) mouse.DirectInputX += var.MouseCursor^(XInput.RightStickX) //cursor down
- //if (XInput.RightStickX < -.90) mouse.DirectInputX -= -var.MouseCursor^1*(XInput.RightStickX) //cursor up
- ///////////////////
- }
- Key.Spacebar = XInput.A and !(XInput.RightTrigger or XInput.LeftTrigger or XInput.LeftShoulder)// Jump
- Key.1 = XInput.B and !(XInput.RightTrigger or XInput.LeftTrigger) // Attack
- Key.Tab = XInput.X and !(XInput.RightTrigger or XInput.LeftTrigger) // Tab-Target
- Key.6 = XInput.Y and !(XInput.RightTrigger or XInput.LeftTrigger) // Heal
- //Weapon Skills//
- Key.2 = XInput.A and XInput.RightTrigger and !XInput.LeftTrigger
- Key.3 = XInput.B and XInput.RightTrigger and !XInput.LeftTrigger
- Key.5 = XInput.X and XInput.RightTrigger and !XInput.LeftTrigger
- Key.4 = XInput.Y and XInput.RightTrigger and !XInput.LeftTrigger
- /////////////////
- //Utility Skills//
- Key.7 = XInput.A and XInput.LeftTrigger and !XInput.RightTrigger
- Key.8 = XInput.B and XInput.LeftTrigger and !XInput.RightTrigger
- Key.0 = XInput.X and XInput.LeftTrigger and !XInput.RightTrigger
- Key.9 = XInput.Y and XInput.LeftTrigger and !XInput.RightTrigger
- //////////////////
- Key.M = XInput.Start // Map
- key.x = XInput.Back // Walk
- //Toolbelt/F-keys//
- Key.F1 = XInput.A and XInput.RightTrigger and XInput.LeftTrigger
- Key.F2 = XInput.B and XInput.RightTrigger and XInput.LeftTrigger
- Key.F3 = XInput.Y and XInput.RightTrigger and XInput.LeftTrigger
- Key.F4 = XInput.X and XInput.RightTrigger and XInput.LeftTrigger
- ///////////////////
- Key.Console = XInput.LeftShoulder and XInput.RightShoulder // Weapon Switch
- Key.F = XInput.RightShoulder and !(XInput.RightTrigger or XInput.LeftTrigger or XInput.LeftShoulder) //Action Key
- //Misc.//
- Key.Escape = XInput.Down
- Key.I = XInput.Right
- Key.H = XInput.Left
- /////////
- //Targetting//
- Key.T = XInput.up and !XInput.LeftShoulder
- Key.NumPadDot = XInput.up and XInput.LeftShoulder //remap take target to numpaddot
- //////////////
- Key.V = XInput.LeftThumb
- Key.PageDown = XInput.RightThumb and XInput.LeftShoulder // Zoom Out
- Key.PageUp = XInput.RightThumb and !XInput.LeftShoulder // Zoom In
- mouse.LeftButton = XInput.A and XInput.LeftShoulder //Mouse-Left-Click
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement