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 

pilotwing script

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



Joined: 15 Mar 2007
Posts: 9

Digg It
PostPosted: Fri Mar 16, 2007 3:01 pm    Post subject: pilotwing script

Coming from latveria to the world my first script::


//wiilotwings Script
//by Roberto"fumao" from Latveria
//configure your emulator to a=a b=b...
//use as if it was an aeroplane
//Enjoy it and Viva Latveria

var.zCutoff1 = 5/30
var.zCutoff2 = 11/30
var.zCutoff3 = 22/30

var.xCutoff1 = 5/30
var.xCutoff2 = 11/30
var.xCutoff3 = 22/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.down = true
key.up = true
key.up = false
wait 20ms
key.down = false
else if var.zRot < -var.zCutoff3 then
key.up = true
key.down = true
key.down = false
wait 20ms
key.up = false
else if var.zRot > var.zCutoff2 then
key.down = true
key.up = true
key.up = false
wait 12ms
key.down = false
else if var.zRot < -var.zCutoff2 then
key.up = true
key.down = true
key.down = false
wait 12ms
key.up = false
else if var.zRot > var.zCutoff1 then
key.down = true
key.up = true
key.up = false
wait 2ms
key.down = false
else if var.zRot < -var.zCutoff1 then
key.up = true
key.down = true
key.down = false
wait 2ms
key.up = false
else
key.up = True
key.down = True
key.up = false
key.down = false
endif

if var.xRot > var.xCutoff3 then
key.left = true
key.right = true
key.right = false
wait 20ms
key.left = false
else if var.xRot < -var.xCutoff3 then
key.right = true
key.left = true
key.left = false
wait 20ms
key.right = false
else if var.xRot > var.xCutoff2 then
key.left = true
key.right = true
key.right = false
wait 12ms
key.left = false
else if var.xRot < -var.xCutoff2 then
key.right = true
key.left = true
key.left = false
wait 12ms
key.right = false
else if var.xRot > var.xCutoff1 then
key.left = true
key.right = true
key.right = false
wait 2ms
key.left = false
else if var.xRot < -var.xCutoff1 then
key.right = true
key.left = true
key.left = false
wait 2ms
key.right = false
else
key.right = True
key.left = True
key.right = false
key.left = false
endif

//change these keys to your likings *
key.r = Wiimote.Two
key.a = Wiimote.B
key.pagedown = Wiimote.Right
key.delete = wiimote.left
key.home = wiimote.Down
key.end = wiimote.up
key.s = Wiimote.home
key.space = Wiimote.Plus
key.z = Wiimote.Minus
key.b = wiimote.A
key.L = wiimote.one
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