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 

Diddy Kong Racing Script [Requested by qwwq]

 
Post new topic   Reply to topic    WiiLi.org Forum Index -> Wii Scripts
View previous topic :: View next topic  
Author Message
kunalkunal2



Joined: 13 Dec 2006
Posts: 279

Digg It
PostPosted: Sun Jan 21, 2007 11:27 pm    Post subject: Diddy Kong Racing Script [Requested by qwwq]

Here it is
enjoy Very Happy
Code:
//Diddy Kong Racing
//by Kunal
//configure your emulator to defaults
//use as if it was excite truck
//Pull the wiimote down the plane will go up
//Push the wiimote up and the plane will go down
//kunalkunal2@hotmail for questions or comments
//Left and Right movements based on Peter Grifrins N64 racing script
//Enjoy

//Left And Right Movements
var.zCutoff1 = 6/30
var.zCutoff2 = 12/30
var.zCutoff3 = 23/30
var.xRot =Wiimote.gx
var.yRot =Wiimote.gy
var.zRot =Wiimote.gz

debug = 'X:' + var.xRot + ', ' + 'Y:' + var.yRot + ', ' + 'Z:' + var.zRot

if var.zRot > var.zCutoff3 then
  key.right = true
  key.left = true
  key.left = false
  wait 20ms
  key.right = false
else if var.zRot < -var.zCutoff3 then
  key.left = true
  key.right = true
  key.right = false
  wait 20ms
  key.left = false
else if var.zRot > var.zCutoff2 then
  key.right = true
  key.left = true
  key.left = false
  wait 12ms
  key.right = false
else if var.zRot < -var.zCutoff2 then
  key.left = true
  key.right = true
  key.right = false
  wait 12ms
  key.left = false
else if var.zRot > var.zCutoff1 then
  key.right = true
  key.left = true
  key.left = false
  wait 2ms
  key.right = false
else if var.zRot < -var.zCutoff1 then
  key.left = true
  key.right = true
  key.right = false
  wait 2ms
  key.left = false
else
  key.left = True
  key.right = True
  key.left = false
  key.right = false
endif

//Controls

//Gas
key.x = Wiimote.Two
//Brake
key.C = Wiimote.B
//C-stick
key.home = Wiimote.Right
key.end = wiimote.left
key.pagedown = wiimote.Down
key.delete = wiimote.up
//start
key.enter = Wiimote.home
key.space = Wiimote.Plus
//Item
key.z = wiimote.B
//Jump
key.S = wiimote.A

//Up and Down Movements
var.Down  = Wiimote.smoothroll < -100 degrees
key.down = Var.Down and not Var.Up
Var.Up  = Wiimote.Smoothroll > -50 degrees
key.up = Var.Up and not var.down

_________________
Check out my collection of my wii script's
freewebs.com/kunalkunal2
Back to top
View user's profile Send private message
qwwq



Joined: 21 Jan 2007
Posts: 6

Digg It
PostPosted: Mon Jan 22, 2007 4:21 am    Post subject:

i noticed a glitch with braking so i fixed it but thanks!

Code:
//Diddy Kong Racing
//by Kunal
//configure your emulator to defaults
//use as if it was excite truck
//Pull the wiimote down the plane will go up
//Push the wiimote up and the plane will go down
//kunalkunal2@hotmail for questions or comments
//Left and Right movements based on Peter Grifrins N64 racing script
//Enjoy

//Left And Right Movements
var.zCutoff1 = 6/30
var.zCutoff2 = 12/30
var.zCutoff3 = 23/30
var.xRot =Wiimote.gx
var.yRot =Wiimote.gy
var.zRot =Wiimote.gz

debug = 'X:' + var.xRot + ', ' + 'Y:' + var.yRot + ', ' + 'Z:' + var.zRot

if var.zRot > var.zCutoff3 then
  key.right = true
  key.left = true
  key.left = false
  wait 20ms
  key.right = false
else if var.zRot < -var.zCutoff3 then
  key.left = true
  key.right = true
  key.right = false
  wait 20ms
  key.left = false
else if var.zRot > var.zCutoff2 then
  key.right = true
  key.left = true
  key.left = false
  wait 12ms
  key.right = false
else if var.zRot < -var.zCutoff2 then
  key.left = true
  key.right = true
  key.right = false
  wait 12ms
  key.left = false
else if var.zRot > var.zCutoff1 then
  key.right = true
  key.left = true
  key.left = false
  wait 2ms
  key.right = false
else if var.zRot < -var.zCutoff1 then
  key.left = true
  key.right = true
  key.right = false
  wait 2ms
  key.left = false
else
  key.left = True
  key.right = True
  key.left = false
  key.right = false
endif

//Controls

//Gas
key.x = Wiimote.Two
//Brake
key.C = Wiimote.One
//C-stick
key.home = Wiimote.Right
key.end = wiimote.left
key.pagedown = wiimote.Down
key.delete = wiimote.up
//start
key.enter = Wiimote.home
key.space = Wiimote.Plus
//Item
key.z = wiimote.B
//Jump
key.S = wiimote.A

//Up and Down Movements
var.Down  = Wiimote.smoothroll < -100 degrees
key.down = Var.Down and not Var.Up
Var.Up  = Wiimote.Smoothroll > -50 degrees
key.up = Var.Up and not var.down
Back to top
View user's profile Send private message
qwwq



Joined: 21 Jan 2007
Posts: 6

Digg It
PostPosted: Mon Jan 22, 2007 4:38 am    Post subject:

also, i noticed, that to use it correctly, the buttons have to be facing towards me, not up.

its not to bad but its kinda hard to control that way and it butchers my skills at teh game. still kool, but could u plz fix that?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    WiiLi.org Forum Index -> Wii Scripts 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