El bourrico

Membres
  • Compteur de contenus

    1
  • Inscription

  • Dernière visite

Tout ce qui a été posté par El bourrico

  1. Bonjour à tous! J'ai moi aussi mis au point un script pour Star wars The force Unleashed Ultimate Sith edition à la Wiimote grace à Glovepie ! J'ai repris toute la maniabilité de la version Wii : http://www.videogamesblogger.com/wp-conten...ii-controls.jpg Avec quelques modifications: - pour la prehension de force qui s'accentue grace à haut et bas des fleches de la wiimote -le lock : Wiimote (-) -centrer : (1) - (2): Arretter l'action du script sur la souris, pratique pour lancer le jeu Voici mon script: /* STAR WARS: The force unleashed Ultimate Sith EDITION This script is written like wii edition, by EL Bourrico Wiimote B is SPACE Wiimote A is SHIFT Wiimote swing is LEFT CLICK Wiimote left and right = Camera Wiimote minus is Lock Wiimote plus is ENTER Wiimote home is escape Wiimote 1 = Camera center Wiimote 2 = Camera poursuit / and stop mouse Wiimote horizontally is R Nunchuck Z is right click Nunchuck C is Q Nunchuck move is E */ //led affichant le niveau de batterievar.abatt = (Wiimote1.battery / 2 + 4)If var.abatt < 25 var.aLeds = 1End IfIf var.abatt < 50 and > 24 var.aLeds = 3End IfIf var.abatt < 75 and > 49 var.aLeds = 7End IfIf var.abatt > 74 var.aLeds = 15End IfWiimote1.leds = var.aLeds//Deplacements clavier qwertyW and up = -2 < Wiimote1.Nunchuk.JoyY < -0.5S and down = 2 > Wiimote1.Nunchuk.JoyY > 0.5A and left = -2 < Wiimote1.Nunchuk.JoyX < -0.5D and right = 2 > Wiimote1.Nunchuk.JoyX > 0.5var.chargeforce = Wiimote1.Nunchuk.RawForcez <= - 10000% m per sif var.xRot > 20 thenvar.protect1 = trueelse var.protect1 = falseend ifif var.yrot < -16 thenvar.protect2 = trueelse var.protect2 = falseend ifif var.xRot < -20 thenvar.protect3 = trueelse var.protect3 = falseend ifif wiimote.a and var.protect1 and var.protect2 thenvar.protection =trueelse var.protection = falseend if//Gestion de la Camera en emulant la souris if not wiimote.Two thenMouse.DirectInputX = 2* var.cameraif wiimote.Left thenvar.camera = var.camera - 8end ifif wiimote.right thenvar.camera = var.camera + 8end if//camera verticalmouse.directinputY = var.nunchukcamif wiimote.Nunchuk.ZButton thenvar.nunchukcam = 2* var.camera2 - smooth(3 * var.nrawZ )end ifif wiimote.Nunchuk.ZButton thenif wiimote.down thenvar.camera2 = var.camera2 + 8var.wdown = falseend ifif wiimote.up thenvar.camera2 = var.camera2 - 8var.wup = falseend ifend ifend ifvar.wup = wiimote.Upvar.wdown = wiimote.downleftbracket = wiimote.Left //menu navigationrightbracket = wiimote.Right //menu navigationleftshift = wiimote.a // boostspace = wiimote.b //sauterescape = wiimote.home //menuc = wiimote.one //centrer cameraMouse.LeftButton + var.rumble = (Wiimote.RawForceX >= 4000% m per s) //attaquer = wiimote.a + var.protect1 + var.protect2Mouse.RightButton + var.rumble2 = var.z //prehensione + var.rumble = Wiimote1.Nunchuk.RawForcez <= - 6000% m per s //projection forceq = var.cleftControl = wiimote.minus //verouiller ciblev = wiimote.two //camera poursuiteenter = wiimote.plus //pausee = var.bigforcevar.bigforce = wiimote.Nunchuk.CButton + wiimote.Nunchuk.ZButton// Puissante projection de forcevar.c = wiimote.Nunchuk.CButtonvar.z = wiimote.Nunchuk.ZButtonif var.bigforce thenvar.z = falsevar.c = falseend ifvar.nrawZ = wiimote.nunchuk.rawforceZ//Valeur de la wiimote à platvar.xRot = (Wiimote.RawForceX + var.xOffset )var.zRot = (Wiimote.RawForcez + var.zOffset )var.yrot = (wiimote.RawForcey + var.yoffset )var.xOffset = -4var.yOffset = -26var.zOffset = -3debug = "Mouse=" + var.nunchukcam + " Nunchuk=" + var.nrawZ + " Y=" + var.blub + " ""X=" + var.xRot + " Z=" + var.zRot + " Y=" + var.yRot + " "//vibration wiimoteIf var.rumbleWiimote.rumble = 1Wait 200msWiimote.rumble = 0Wait 80msElsevar.rumble = 0End IfIf var.rumble2Wiimote.rumble = 1Wait 6msWiimote.rumble = 0Wait 50msElsevar.rumble = 0End IfIf Pressed(Var.rumble1)Wiimote.rumble = 1Wait 200msWiimote.rumble = 0End If//Script par EL BOURRICO Le code marche trés bien chez moi, mais je n'ai pas fait de beta test donc peut étre qu'il y aura des incompatibilités chez vous, ce que je n'éspere pas. J'ai mapper sans le vouloir en clavier qwerty... Amusez vous bien!