MW3 Script

MW3 Script

Postby digital brass » Thu 08 Mar, 2012 3:34 am

This is my first attempt at a Glovepie Script. Check it out, always remember to match your Pc controls to match the script.

Code: Select all
 //MW3 Glovepie By Preemz10314 , Note: You will have to
                      //adjust your in game controls to match this script!!
                      //NO DEADZONES - W/ Rumble!
 
        if starting then var.Control = 1
//Movement - Left Stick
W = XInput1.Joy1Y > 0.2
S = XInput1.Joy1Y < -0.2
A = XInput1.Joy1X < -0.2
D = XInput1.Joy1X > 0.2
//Aiming Control - Right Stick
Mouse.DirectInputX = Mouse.DirectInputX + 15*deadzone(XInput1.Joy2X)
Mouse.DirectInputY = Mouse.DirectInputY - 15*deadzone(XInput1.Joy2Y)
 
//Dpad
F = XInput1.Up //Pick Up Weopon
I = XInput1.Down //Inventory/killstreak reward
Three = XInput1.Left //Secondary Inventory
Control = XInput1.Right //Prone
 
//Alternate Combat
U = Xinput1.LeftThumb  // Left Stick Hold to Run
E = Xinput1.RighTThumb           //Right Stick Press To Mele
 
//ABXY
Spacebar = XInput1.A //Jump - A Button
C = XInput1.B //Crouch - B Button
if var.Control = 1 then {
   R = XInput1.X //Reload - X Button
   Mouse.WheelUp = XInput1.Y //Switch Weapon - Y Button
   }else{
   E = XInput1.X //Jump - X Button
      }
 
//Shoulder Buttons LB RB
G = XInput1.RightShoulder //Jump, Stand
Q = XInput1.LeftShoulder //Throw Special Frag/ Use Equipment / 2ndary Inventory
 
//Trigger RT LT W/ Rumble
Mouse.LeftButton = XInput1.RightTrigger //Fire Weapon - RT Button
if XInput1.RightTrigger then
   if PPJoy1.Digital0 then
      XInput1.Vibration1 = 1
   else
      XInput1.Vibration2 = 1
   end
   wait 1 s
   if PPJoy1.Digital0 then
      XInput1.Vibration1 = 0
   else
      XInput1.Vibration2 = 0
   end
end
 
Mouse.RightButton = XInput1.LeftTrigger //Zoom - LT Button
 
//Start & Back Buttons
Escape = XInput1.Start //Main Menu - Start Button
H = XInput1.Back //Exit Combat Stance - Back Button
digital brass
 
Posts: 6
Joined: Thu 08 Mar, 2012 3:32 am

Re: MW3 Script

Postby Dbrass » Fri 16 Mar, 2012 2:52 am

Uopdated 3/15/12 now mimics 360 version 99%

Code: Select all
              //MW3 Glovepie By Preemz10314 & Derp250! , Note: You will have to
                      //adjust your in game controls to match this script!!
                      //you should only need to change switch weopon to Mouse up!
                     //Based 97% off default controls. Youshould only need to change mouse wheel up to switch weopons.
                     
 
 
        if starting then var.Control = 1
//Movement - Left Stick
W = XInput1.Joy1Y > 0.2
S = XInput1.Joy1Y < -0.2
A = XInput1.Joy1X < -0.2
D = XInput1.Joy1X > 0.2
 
 
//Aiming - Moving Control - Right Stick -
Pie.MouseDPI = 800 //Insert Your Mouse DPI if you know it
Fakemouse.DirectInputX        =  Var.DirectInputXOutput
Fakemouse.DirectInputY        =  Var.DirectInputYOutput
 
Mouse.LeftButton              =  XInput.RightTrigger
Mouse.RightButton             =  XInput.LeftTrigger
 
If Mouse.RightButton {
Delta(Var.DirectInputXOutput) =  Delta(Var.DirectInputXInput) * Var.SlowSpeed
Delta(Var.DirectInputYOutput) =  Delta(Var.DirectInputYInput) * Var.SlowSpeed
}Else{
Delta(Var.DirectInputXOutput) =  Delta(Var.DirectInputXInput)
Delta(Var.DirectInputYOutput) =  Delta(Var.DirectInputYInput)
}
 
If (DeadZone(( XInput.RightStickX), Var.DeadzoneAmount) <> 0 or DeadZone(( XInput.RightStickY), Var.DeadzoneAmount) <> 0) {
Delta(Var.DirectInputXInput)  =  DeadZone(( XInput.RightStickX * Var.NormalSpeed), Var.DeadzoneAmount)
Delta(Var.DirectInputYInput)  =  DeadZone((-XInput.RightStickY * Var.NormalSpeed), Var.DeadzoneAmount)
}
 
//Settings:
Var.SlowSpeed                 =  50%
Var.NormalSpeed               =  1000%
Var.DeadzoneAmount            =  13% //Recomended above 5%
//If it starts drifting, try turning the deadzone up some.
 
//Dpad
F = XInput1.Up //Pick Up Weopon
I = XInput1.Down //Inventory/killstreak reward
Three = XInput1.Left //Secondary Inventory
Control = XInput1.Right //Prone
 
//Alternate Combat
Shift = Xinput1.LeftThumb  // Left Stick Hold to Run
E = Xinput1.RighTThumb           //Right Stick Press To Mele
 
//ABXY
Spacebar = XInput1.A //Jump - A Button
C = XInput1.B //Crouch - B Button
if var.Control = 1 then {
   R = XInput1.X //Reload - X Button
   wait 90 ms
   Mouse.WheelUp = XInput1.Y //Switch Weapon - Y Button
   wait 90 ms
   }else{
   E = XInput1.X //Jump - X Button
         }
   //Timing between reload press and or pick up weapon. Can also Use Dpad UP.
 If pressed(Var.SwitchAndPickUpGun) {
Mouse.WheelUp = 1
wait 30 ms
Mouse.WheelUp = 0
}
 
  If Pressed (Helddown(Var.SwitchAndPickUpGun, 199 ms )) {
F  = 1
wait 30 ms
F = 0
}
 
 
//Settings
Var.SwitchAndPickUpGun = XInput1.Y
         //Controls Speed between crouch & prone, adjust 199 to fit You.
          If pressed(Var.CrouchAndProneButton) {
C = 1
wait 30 ms
C = 0
}
 
  If Pressed (Helddown(Var.CrouchAndProneButton, 199 ms )) {
Control  = 1
wait 30 ms
Control = 0
}
 
 
//Settings
Var.CrouchAndProneButton = XInput1.B
 
 
 
//Shoulder Buttons LB RB
G = XInput1.RightShoulder //Jump, Stand
Q = XInput1.LeftShoulder //Throw Special Frag/ Use Equipment / 2ndary Inventory
 
//Trigger RT LT W/ Rumble
Mouse.LeftButton = XInput1.RightTrigger //Fire Weapon - RT Button
if XInput1.RightTrigger then
   if PPJoy1.Digital0 then
      XInput1.Vibration1 = 1
   else
      XInput1.Vibration2 = 1
   end
   wait 1 s
   if PPJoy1.Digital0 then
      XInput1.Vibration1 = 0
   else
      XInput1.Vibration2 = 0
   end
end
 
Mouse.RightButton = XInput1.LeftTrigger //Zoom - LT Button
 
//Start & Back Buttons
Escape = XInput1.Start //Main Menu - Start Button
H = XInput1.Back //Exit Combat Stance - Back Button
Dbrass
 
Posts: 4
Joined: Fri 16 Mar, 2012 2:50 am


Return to Microsoft XBox 360 Controller

Who is online

Users browsing this forum: No registered users and 1 guest