WiiLi Wiki frontpage Include your post in the News Get links Hoteles Quito
WiiLi.org Forum Index WiiLi.org
a new revolution
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Racedriver GRID Wii Wheel Script [1.0]

 
Post new topic   Reply to topic    WiiLi.org Forum Index -> GlovePie
View previous topic :: View next topic  
Author Message
musee



Joined: 28 Aug 2008
Posts: 1

Digg It
PostPosted: Thu Aug 28, 2008 5:53 am    Post subject: Racedriver GRID Wii Wheel Script [1.0]

Collating other scripts and adding some of my own scripting; I've made a GlovePIE script enabling you to use the Wii Wheel as you would in Mario Kart Wii in the popular racing game; GRID.

It might not work perfectly; but do try it.

//Wii Wheel GRID controls by Mus.


// Show wiimote forces
debug = "X="+Wiimote.RawForceX+' Y='+Wiimote.RawForceY+' Z='+Wiimote.RawForceZ

//LEDs setup
While Wiimote.RawForceZ < -10 and > -20
Keyboard.Left = 0
Keyboard.Right = 0
endif

While Wiimote.RawForceZ < -10 and > -20
Wiimote.Led1 = 0
Wiimote.Led2 = 0
Wiimote.Led3 = 0
Wiimote.Led4 = 0
endif

While Wiimote.RawForceZ > -10 and < -5
Wiimote.Led1 = 1
Wiimote.Led2 = 0
Wiimote.Led3 = 0
Wiimote.Led4 = 0
wait 500 ms
endif

While Wiimote.RawForceZ > -5 and < 0
Wiimote.Led1 = 1
Wiimote.Led2 = 1
Wiimote.Led3 = 0
Wiimote.Led4 = 0
wait 500 ms
endif

While Wiimote.RawForceZ > 0 and < 5
Wiimote.Led1 = 1
Wiimote.Led2 = 1
Wiimote.Led3 = 1
Wiimote.Led4 = 0
wait 500 ms
endif

While Wiimote.RawForceZ > 5
Wiimote.Led1 = 1
Wiimote.Led2 = 1
Wiimote.Led3 = 1
Wiimote.Led4 = 1
wait 500 ms
endif

While Wiimote.RawForceZ < -20 and > -25
Wiimote.Led1 = 1
Wiimote.Led2 = 0
Wiimote.Led3 = 0
Wiimote.Led4 = 0
wait 500 ms
endif

While Wiimote.RawForceZ < -25 and > -30
Wiimote.Led1 = 1
Wiimote.Led2 = 1
Wiimote.Led3 = 0
Wiimote.Led4 = 0
wait 500 ms
endif

While Wiimote.RawForceZ < -30 AND > -35
Wiimote.Led1 = 1
Wiimote.Led2 = 1
Wiimote.Led3 = 1
Wiimote.Led4 = 0
wait 500 ms
endif

While Wiimote.RawForceZ < -35
Wiimote.Led1 = 1
Wiimote.Led2 = 1
Wiimote.Led3 = 1
Wiimote.Led4 = 1
wait 500 ms
endif

//Racing Mode:

Keyboard.Up = Wiimote.Two
Keyboard.Down = Wiimote.One

If Wiimote.One or Wiimote.Two
Wiimote.Rumble = 1
Else
Wiimote.Rumble = 0
endif

if Wiimote.RawForceZ > 0
Keyboard.Right = 1
endif

if Wiimote.RawForceZ < -30
Keyboard.Left = 1
endif

if Wiimote.RawForceZ > -30 and < 0
Keyboard.Left = 0
Keyboard.Right = 0
endif

//Other.
Key.Enter = Wiimote1.Minus
Key.C = Wiimote1.A
Key.Space = Wiimote1.B
Key.F12 = Wiimote1.Plus
Key.Left = Wiimote1.Left
Key.Right = Wiimote1.Right
Key.Up = Wiimote1.Two
Key.Down = Wiimote1.One
Key.Escape = Wiimote1.Home
Key.Up = Wiimote1.Up
Key.Down = Wiimote1.Down

_________________
Try out my Scripts!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    WiiLi.org Forum Index -> GlovePie All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group