Carmageddon Max Pack

Carmageddon Max Pack

Not enough ratings
XBox 360 controller (XInput) support using GlovePIE
By KitchenerꙮLeslie
Use your Xbox 360 (and maybe Xbox ONE) controller or any other XInput compatible controller with Carmageddon using GlovePIE
   
Award
Favorite
Favorited
Unfavorite
Instructions
You wll need GlovePIE which is free and can be gotten here

http://glovepie.org/ (i tried to hotlink but it seems impossible)
Download and extract, run GlovePie.exe and copy paste the following into glovepie

Key.NUMPAD8 = xinput.RightTrigger
Key.NUMPAD8 = xinput.LeftStickY > 0.7

Key.NUMPAD2 = xinput.LeftTrigger
Key.NUMPAD2 = xinput.LeftStickY < -0.7

Key.NUMPAD4 = XInput.LeftStickX < -0.3
key.NUMPAD6 = XInput.LeftStickX > 0.3


var.Inverted = false //Set right stick inversion preference (True or False)

var.dz = 0.3 // 0.0 - 1.0
var.spd = 26 // 0 - 100

if Xinput1.RightStickY < -(var.dz) or Xinput1.RightStickY > (var.dz)
Mouse.DirectInputY = Mouse.DirectInputY - (var.spd)*(Xinput1.RightStickY)
endif

if Xinput1.RightStickX < -(var.dz) or Xinput1.RightStickX > (var.dz)
Mouse.DirectInputX = Mouse.DirectInputX + (var.spd)*(Xinput1.RightStickX)
endif


//Set dead zones (Values between 0 and 1)
var.LdeadX = 0.30
var.LdeadY = 0.30
var.RdeadX = 0.30
var.RdeadY = 0.30

/*if Xinput.Joy1X < -var.RdeadX or Xinput.Joy1X > var.RdeadX then key.numpad4 = key.numpad4 //Mouse.DirectInputX = Mouse.DirectInputX + 8*deadzone(Xinput.Joy1X)
if var.Inverted = true then{
if Xinput.Joy1Y < -var.RdeadY or Xinput.Joy1Y > var.RdeadY then Mouse.DirectInputY = Mouse.DirectInputY + 8*deadzone(Xinput.Joy1Y)
}else{
if Xinput.Joy1Y < -var.RdeadY or Xinput.Joy1Y > var.RdeadY then Mouse.DirectInputY = Mouse.DirectInputY - 8*deadzone(Xinput.Joy1Y)
}
*/

Key.Space = xinput.A
Key.Up = xinput.up
Key.Down = xinput.Down
Key.q = xinput.LeftShoulder
Key.e = xinput.RightShoulder
Key.w = xinput.LeftShoulder and xinput.RightShoulder
Key.Escape = xinput.start
Key.Tab = Xinput.B
Key.C = Xinput.Back
Key.Z = Xinput.LeftThumb
Key.Enter = Xinput.RightThumb
Key.BackSpace = Xinput.X
Key.Insert = Xinput.Y

Enjoy
Click Run and start the game

The script isn\t perfect and there\s some unused code but it should work just as good (Better IMO) as the keyboard...

Oh and you will need to use the default button configuration in the game or make changes to the script yourself



Also you should setup nglide which is found in the DOSBOX in your Carmageddon folder (usually C:\Program Files (x86)\Steam\SteamApps\common\Carmageddon1\DOSBOX)




This is my first steam guide so I do hope you enoy
5 Comments
JФHИИУ ДPHЯФDIΓΞ Aug 12, 2021 @ 11:02pm 
I copy and pasted your code but Glovepie is spitting out errors of invalid Xinput Xbox 360 controller values
Northlane | Alien Nov 2, 2019 @ 9:04am 
It appeared to be an issue with the formatting. Thanks
Northlane | Alien Nov 2, 2019 @ 8:59am 
Sorry to necro but thje joysticks dont work? any fix?
KitchenerꙮLeslie  [author] Mar 2, 2016 @ 9:42am 
Glad you could use it :)
RenegadeReturn Mar 2, 2016 @ 1:19am 
I confirm that it also works perfectly with the Xbox One controller. I changed just a few controls to set my personnal configuration. Thanks to you. :steamhappy: