Star Wars The force unleashed Ultimate Sith Edition

Vous aussi vous pouvez nous proposer vos scripts !

Star Wars The force unleashed Ultimate Sith Edition

Messagede El bourrico le Lun 14 Déc 2009 19:37

Bonjour à tous et à toutes!
Voila je vous présente mon script pour jouer à Star Wars The force unleashed ultimate sith Edition, wiimote & nunchuck à la main!

Les commandes sont similaires à celle de la version wii, avec quelques modifications pour s'adapter au gameplay pc.

http://www.videogamesblogger.com/wp-content/uploads/2008/04/star-wars-the-force-unleashed-wii-controls.jpg
Avec quelques modifications:

- pour la prehension de force qui s'accentue grace à haut et bas des fleches de la wiimote utile lorsqu'il faut soulever des objets trés haut (épreuve absente sur wii)
-le lock : Wiimote (-)
-centrer : fleche bas
- (2): Arretter l'action du script sur la souris, pratique pour lancer le jeu coucou sympa04.gif


Voici mon script:

Code: Tout sélectionner
/*            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 batterie

var.abatt = (Wiimote1.battery / 2 + 4)
If var.abatt < 25
   var.aLeds = 1
End If
If var.abatt < 50 and > 24
   var.aLeds = 3
End If
If var.abatt < 75 and > 49
   var.aLeds = 7
End If
If var.abatt > 74
   var.aLeds = 15
End If
Wiimote1.leds = var.aLeds

//Deplacements  clavier qwerty

W and up = -2 < Wiimote1.Nunchuk.JoyY < -0.5
S and down = 2 > Wiimote1.Nunchuk.JoyY > 0.5
A and left = -2 < Wiimote1.Nunchuk.JoyX < -0.5
D and right = 2 > Wiimote1.Nunchuk.JoyX > 0.5

var.chargeforce = Wiimote1.Nunchuk.RawForcez <= - 10000% m per s

if  var.xRot > 20 then
var.protect1 = true

else var.protect1 = false

end if

if var.yrot < -16 then
var.protect2 = true

else var.protect2 = false

end if

if  var.xRot < -20 then
var.protect3 = true

else var.protect3 = false

end if

if wiimote.a and var.protect1 and var.protect2 then
var.protection =true

else var.protection = false

end if

//Gestion de la Camera en emulant la souris
if not wiimote.Two then
Mouse.DirectInputX =   2*  var.camera
if wiimote.Left then
var.camera = var.camera - 8
end if
if wiimote.right then
var.camera = var.camera + 8
end if
//camera vertical
mouse.directinputY = var.nunchukcam
if wiimote.Nunchuk.ZButton   then
var.nunchukcam = 2* var.camera2 - smooth(3 * var.nrawZ  )
end if
if wiimote.Nunchuk.ZButton then
if wiimote.down then
var.camera2 = var.camera2 + 8
var.wdown = false
end if
if wiimote.up then
var.camera2 = var.camera2 - 8
var.wup = false
end if
end if
end if

var.wup = wiimote.Up
var.wdown = wiimote.down

leftbracket = wiimote.Left //menu navigation
rightbracket = wiimote.Right //menu navigation
leftshift = wiimote.a // boost
space = wiimote.b   //sauter
escape = wiimote.home  //menu
c = wiimote.one     //centrer camera
Mouse.LeftButton + var.rumble = (Wiimote.RawForceX >= 4000% m per s) //attaque
r =  wiimote.a + var.protect1 + var.protect2
Mouse.RightButton + var.rumble2 =  var.z   //prehension
e + var.rumble = Wiimote1.Nunchuk.RawForcez <= - 6000% m per s   //projection force
q = var.c
leftControl = wiimote.minus  //verouiller cible
v = wiimote.two //camera poursuite
enter = wiimote.plus //pause
e = var.bigforce

var.bigforce = wiimote.Nunchuk.CButton + wiimote.Nunchuk.ZButton
// Puissante projection de force

var.c =  wiimote.Nunchuk.CButton
var.z = wiimote.Nunchuk.ZButton




if var.bigforce  then

var.z = false
var.c = false

end if

var.nrawZ = wiimote.nunchuk.rawforceZ




//Valeur de la wiimote à plat
var.xRot = (Wiimote.RawForceX + var.xOffset )
var.zRot = (Wiimote.RawForcez + var.zOffset )
var.yrot = (wiimote.RawForcey + var.yoffset )
var.xOffset = -4
var.yOffset = -26
var.zOffset  = -3
debug =  "Mouse=" + var.nunchukcam + "   Nunchuk=" +  var.nrawZ + "  Y=" + var.blub + "  ""X=" + var.xRot + "   Z=" + var.zRot + "  Y=" + var.yRot + "  "
//vibration wiimote
If var.rumble
Wiimote.rumble = 1
Wait 200ms
Wiimote.rumble = 0
Wait 80ms
Else
var.rumble = 0
End If

If var.rumble2
Wiimote.rumble = 1
Wait 6ms
Wiimote.rumble = 0
Wait 50ms
Else
var.rumble = 0
End If

If Pressed(Var.rumble1)
Wiimote.rumble = 1
Wait 200ms
Wiimote.rumble = 0
End If

//Script par EL BOURRICO



J'espere que le code marchera chez vous... Je me suis meme éssayé à faire un lanceur pour n'avoir rien à faire (mis à part connecter la wiimote à windows...)

http://www.toofiles.com/fr/oip/documents/zip/starwarstfuusewiimotemode.html

Il suffit de décompresser le fichier dans le repertoire ou se trouve le fichier SWTFU.exe, soit le repertoire du jeu..

Pour les moments d'action ou il faut appuyer sur une touche précise je vous conseil d'avoir sous les yeux la correspondance des touches:

Code: Tout sélectionner
  Nunchuck C = Q
  Nunchuck poussé = E
  Wiimote B = Espace
  Wiimote A = SHIFT
  Wiimote secouée = Click Gauche
  Nunchuck Z = Click droit

  Wiimote left and right = Camera
  Wiimote horizontal = R


J'espere que vous allez apprécier et surtout laissez vos commentaires!

Merci à Wiidows pour leur site!

A bientot
El bourrico
 
Messages: 4
Inscription: Dim 6 Déc 2009 21:42

Re: Star Wars The force unleashed Ultimate Sith Edition

Messagede El bourrico le Mer 23 Déc 2009 16:29

Deuxieme version bientot disponible... Actuelement en beta test.

J'en profiterai pour adapter mon script a Star Wars The old republic, le prochain MMO de bioware, lorsqu'il sera sorti bien evidemment.

Vous battez pas pour les com'.

A bientot
El bourrico
 
Messages: 4
Inscription: Dim 6 Déc 2009 21:42

Re: Star Wars The force unleashed Ultimate Sith Edition

Messagede jeromote le Ven 25 Déc 2009 16:16

coucou merci pour ton script je n'ai pas testé mais j'espère qu'il va intéresser quelques personnes, il faudrait que sc2157 puisse le tester pour avoir un avis sur ton script, mais continue comme ça tu fais du très bon boulot :bravo: :bravo: +1
Image
CECI EST UNE BANNIÈRE VIDÉO CLIQUEZ DROIT + LIRE

Image
jeromote
 
Messages: 257
Inscription: Ven 7 Mar 2008 22:12
Localisation: st laurent du pont

Re: Star Wars The force unleashed Ultimate Sith Edition

Messagede SC2157 le Dim 27 Déc 2009 00:23

Bah ouais ^^ c'est moi le testeur. J'ai le temps après tout, c'est les vacances! Mais quand même, ré-instaler 25 go me tente plus ou moins... Mais si par miracle je n'ai rien a faire 2 heures d'affilée, je ré-instale et je teste ;)
SC2157
 
Messages: 57
Inscription: Lun 5 Mai 2008 23:19

Re: Star Wars The force unleashed Ultimate Sith Edition

Messagede El bourrico le Sam 9 Jan 2010 15:12

J'ai bien avancé avec le script, mais je dois paufiner encore quelques reglages.

Il faudrait que je mette un option d'auto calibrage en appuyant sur une combinaison de boutons...
El bourrico
 
Messages: 4
Inscription: Dim 6 Déc 2009 21:42


Retourner vers Vos scripts

Qui est en ligne

Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 1 invité

cron