Author Topic: glove pie and AI war  (Read 970 times)

TheMachineIsSentient

  • Guest
glove pie and AI war
« on: October 23, 2010, 02:04:17 pm »
I don't know if anyone else likes to do programming, but I have found that there are certain games that can benefit from a little input help, including the buttons and control schemes. Unity makes it so that I don't need to use keyboard remapping anymore with glove pie, but I still need to somehow fix my mouse because playing on lower resolutions doesn't work as well with unity. So here is my fix, that includes some mouse adjustments for higher resolutions. I have a crappy 400 dpi mouse, and I'm not buying a new one... This script can be improved upon by accounting for acceleration and how much adjustment you actually want to do.. That will probably be my next step... But here is a simple one that should get you thinking what you can do with glove pie and ai war.

I will let you Google the programming languageā€¦ Ignoring the ranting by the author if you will. :-)




Quote
If var.x then {

 } else {
 var.x=mouse.x;
 }
 end if

If var.y then {

 } else {
 var.y=Mouse.CursorPosY;
 }
 end if

 If var.sensitivity then {

 } else {
 var.sensitivity=6;
 }
 end if

 If Mouse.CursorPosY < var.y then
 Mouse.directinputy = mouse.directinputy - var.sensitivity
 var.y = Mouse.CursorPosY
 end if

 If Mouse.CursorPosY > var.y then
 Mouse.directinputy = mouse.directinputy + var.sensitivity
 var.y = Mouse.CursorPosY
 end if

If Mouse.CursorPosx < var.x then
 Mouse.directinputx = mouse.directinputx - var.sensitivity
 var.x = Mouse.CursorPosx
 end if

 If Mouse.CursorPosx > var.x then
 Mouse.directinputx = mouse.directinputx + var.sensitivity
 var.x = Mouse.CursorPosx
 end if