// Virtua Tennis PC Script V 2.2 by Ethan // http://www.wiipcscript.fr.nf //Debug debug = "X:"+ Wiimote.RelAccX + " Y:"+ Wiimote.RelAccY var.xCutoff = 33 var.zCutoff = 20 var.xRot = Wiimote.RawForceX + var.xOffset var.yRot = Wiimote.RawForceY + var.yOffset var.zRot = Wiimote.RawForceZ + var.zOffset if var.xRot > var.xCutoff then press(up) wait 300 ms up = false endif if var.xRot < -var.xCutoff then press(down) wait 200 ms down = false endif if var.zRot > var.zCutoff then press(left) wait 400 ms left = false endif if var.zRot < -var.zCutoff then press(right) wait 200 ms right = false endif // Control Movement // In menu Enter = Wiimote.Home Up = Wiimote.Up Down = Wiimote.Down Left = Wiimote.Left Right = Wiimote.Right key.A = Wiimote.A key.S = Wiimote.B Tab = Wiimote.One Space = Wiimote.Two if Wiimote.RelAccX >= 20 then // For smash Press(A) Wiimote.Rumble = True Wait 200 ms Release(A) Wiimote.Rumble = False endif if Wiimote.RelAccY >= 33 then // For smash Press(S) Wiimote.Rumble = True Wait 200 ms Release(S) Wiimote.Rumble = False endif if 0 = 0 then if var.kitt = 0 then wiimote.Leds = 1 endif if var.kitt = 1 then wiimote.Leds = 3 endif if var.kitt = 2 then wiimote.Leds = 6 endif if var.kitt = 3 then wiimote.Leds = 12 endif if var.kitt = 4 then wiimote.Leds = 8 endif if var.kitt = 5 then wiimote.Leds = 12 endif if var.kitt = 6 then wiimote.Leds = 6 endif if var.kitt = 7 then wiimote.Leds = 3 endif wait var.KITTspeed var.kitt = (var.kitt + 1) % 8 endif