Guest User

Untitled

a guest
Mar 10th, 2012
21,112
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //Mass Effect 3 - 360 controller for glovepie
  2. //credits to preemz10314
  3. //derp250 for aim help
  4. //remember MATCH UR PC CONTROLS TO SCRIPT!
  5.  
  6.  
  7. if starting then var.Control = 1
  8. //Movement - Left Stick
  9. W = XInput1.Joy1Y > 0.2
  10. S = XInput1.Joy1Y < -0.2
  11. A = XInput1.Joy1X < -0.2
  12. D = XInput1.Joy1X > 0.2
  13.  
  14. //Aiming Control - Right Stick
  15. Pie.MouseDPI = 800 //Insert Your Muse DPI if it is running away
  16.  
  17. //Aiming - Moving Control - Right Stick -
  18. Pie.MouseDPI = 800 //Insert Your Mouse DPI if you know it
  19. Fakemouse.DirectInputX = Var.DirectInputXOutput
  20. Fakemouse.DirectInputY = Var.DirectInputYOutput
  21.  
  22. Mouse.LeftButton = XInput.RightTrigger
  23. Mouse.RightButton = XInput.LeftTrigger
  24.  
  25. If Mouse.RightButton {
  26. Delta(Var.DirectInputXOutput) = Delta(Var.DirectInputXInput) * Var.SlowSpeed
  27. Delta(Var.DirectInputYOutput) = Delta(Var.DirectInputYInput) * Var.SlowSpeed
  28. }Else{
  29. Delta(Var.DirectInputXOutput) = Delta(Var.DirectInputXInput)
  30. Delta(Var.DirectInputYOutput) = Delta(Var.DirectInputYInput)
  31. }
  32.  
  33. If (DeadZone(( XInput.RightStickX), Var.DeadzoneAmount) <> 0 or DeadZone(( XInput.RightStickY), Var.DeadzoneAmount) <> 0) {
  34. Delta(Var.DirectInputXInput) = DeadZone(( XInput.RightStickX * Var.NormalSpeed), Var.DeadzoneAmount)
  35. Delta(Var.DirectInputYInput) = DeadZone((-XInput.RightStickY * Var.NormalSpeed), Var.DeadzoneAmount)
  36. }
  37.  
  38. //Settings:
  39. Var.SlowSpeed = 50%
  40. Var.NormalSpeed = 1000%
  41. Var.DeadzoneAmount = 13% //Recomended above 5%
  42. //If it starts drifting, try turning the deadzone up some.
  43.  
  44. //Dpad
  45. Q = XInput1.Up //Order Squad to Attack Enemy
  46. C = XInput1.Down //Order Squad to Return to Your Position
  47. E = XInput1.Left or XInput1.Right //Order Squadmate to a Point or Target
  48. //Alternate Combat & Vehicle Control Modes
  49. if pressed(XInput1.LeftThumb) then{
  50. say("Vehicle Control")
  51. var.Control++
  52. }
  53. if var.Control > 2 then{
  54. say("Combat Control")
  55. var.Control = 1
  56. }
  57.  
  58. //ABXY Buttons
  59. Space = XInput1.A //Use or Talk - A Button
  60. F = XInput1.B //Melee Attack - B Button
  61. if var.Control = 1 then {
  62. R = XInput1.X //Reload - X Button
  63. Mouse.WheelUp = XInput1.Y //Switch Weapon - Y Button
  64. }else{
  65. E = XInput1.X //Jump - X Button
  66. V = XInput1.Y //Mine - Y Button
  67. }
  68.  
  69. //Shoulder Buttons RB LB
  70. LeftShift = XInput1.RightShoulder //Weapon & Power Wheel - RB Button
  71. LeftControl = XInput1.LeftShoulder //Walk - LB Button
  72.  
  73. //Triggers LT RT W/ Rumble
  74. Mouse.LeftButton = XInput1.RightTrigger //Fire Weapon - RT Button
  75. if XInput1.RightTrigger then
  76. if PPJoy1.Digital0 then
  77. XInput1.Vibration1 = 1
  78. else
  79. XInput1.Vibration2 = 1
  80. end
  81. wait 35 ms
  82. if PPJoy1.Digital0 then
  83. XInput1.Vibration1 = 0
  84. else
  85. XInput1.Vibration2 = 0
  86. end
  87. end
  88.  
  89. Mouse.RightButton = XInput1.LeftTrigger //Zoom - LT Button
  90.  
  91. //Start & Back Buttons
  92. Escape = XInput1.Start //Main Menu - Start Button
  93. H = XInput1.Back //Exit Combat Stance - Back Button
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×