GlovePIE:Super Smash Bros.

From WiiLi

(Redirected from Super Smash Bros.)
Jump to: navigation, search

dronorlile erchirolerdo

/*
 * Super Smash Bros. Wii-Style
 *    By Alex Ames
 *    aka amablue
 *
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 * Controls
 *
 * Wii-mote | N64 Equivalent | Function
 * A          A                Regular Attacks
 * B          R                Grabbing / Shielding
 * C          C-Down           Jump
 * Z          Z                Shielding / Grabbing
 * +          Start            Pausing
 * Up         Up+B             Up Special Attack
 * Down       B                Neutral Special Attack
 * Left       B                Neutral Special Attack
 * Right      B                Neutral Special Attack
 * 2          L                Taunt
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 * Special Controls
 *
 * Swinging the Nunchuk up will result in an Up-B attack
 * for those times when hitting the top of the Dpad is awkward
 *
 * Swinging the Wiimote horizontally will result in a smash attack
 * if you're on the ground. Swinging the Wiimote vertically will result
 * in an upward smash attack. If you're holding an item you will throw
 * it.
 */

// Analog stick
PPJoy1.Analog0 = MapRange(Wiimote1.Nunchuk.JoyX, -1,1, -1,1)
PPJoy1.Analog1 = MapRange(Wiimote1.Nunchuk.JoyY, -1,1, -1,1)

// Keeps track of which way you're facing for smash attacks
if (PPJoy1.Analog0 > .05)
   var.smashDirection = 1
else if (PPJoy1.Analog0 < -.05)
   var.smashDirection = -1
endif

// Side Smash Attack
if (Wiimote1.RelAccX >= 15) then
   PPJoy1.Analog0 = var.smashDirection
   Press(x)
   Wait(10ms)
   Release(x)
   PPJoy1.Analog0 = MapRange(Wiimote1.Nunchuk.JoyX, -1,1, -1,1)
endif

// Up Smash Attack
if (Wiimote1.RelAccY >= 15) then
   PPJoy1.Analog1 = -1
   Press(x)
   Wait(10ms)
   Release(x)
   PPJoy1.Analog1 = MapRange(Wiimote1.Nunchuk.JoyY, -1,1, -1,1)
endif

// Up Special Attack
if (Wiimote.Up or (MapRange(Wiimote1.Nunchuk.RawForceY, -100,100, 0,1) > 1.1)) then
   PPJoy.analog1 = -1
   Press(c)
   Wait(10ms)
   Release(c)
   PPJoy1.Analog1 = MapRange(Wiimote1.Nunchuk.JoyY, -1,1, -1,1)
endif

x = Wiimote1.A // Normal attack
c = Wiimote1.Left or Wiimote1.Right or Wiimote1.Down// Special Attack
s = Wiimote1.B // Grab
z = Wiimote1.Nunchuk.ZButton // Shield
Enter = Wiimote1.Plus // Pause
a = Wiimote1.Two // Taunt
End = Wiimote1.Nunchuk.CButton // Jump 
Xela's SSB N64 Emu Script
Tested With Project 64 1.6

Script 1 (With RawForce) Buggy:

//For Use With Super Smash Bros on N64 on Emu
//Change As You Please As This Is A Free Script
//Works Only With 2 Wiimotes Sorry:)
//Detects Which Each Wiimote Has Been Synced To
//Rumbles When Battery Level For Wiimote Get To Or Below 100 // Full Is 192
//Aim With Analog Stick For Smash And Special Attacks Up Is Up Special Or Smash Etc

Right = 1 > Wiimote1.Nunchuk.JoyX > 0.5 
Left = -1 < Wiimote1.Nunchuk.JoyX < -0.5 
down = 1 > Wiimote1.Nunchuk.JoyY > 0.5 
up = -1 < Wiimote1.Nunchuk.JoyY < -0.5

S = Wiimote1.A and Wiimote1.B
Z = Wiimote1.Nunchuk.ZButton
C = Wiimote1.B
X = Wiimote1.A

X = (Wiimote1.RawforceX >= 30)
X = (Wiimote1.RawforceY >= 30)
X = (Wiimote1.RawforceZ >= 30)

L = 1 > Wiimote2.Nunchuk.JoyX > 0.5
J = -1 < Wiimote2.Nunchuk.JoyX < -0.5
K = 1 > Wiimote2.Nunchuk.JoyY > 0.5
I = -1 < Wiimote2.Nunchuk.JoyY < -0.5

O = Wiimote2.A and Wiimote2.B
P = Wiimote2.Nunchuk.ZButton
M = Wiimote2.B
N = Wiimote2.A

N = (Wiimote2.RawforceX >= 30)
N = (Wiimote2.RawforceY >= 30)
N = (Wiimote2.RawforceZ >= 30)

If (Wiimote1.PluggedIn) Then
Wiimote1.Led1 = True
else
Wiimote1.Led1 = False
Wiimote2.PluggedIn = True
Wiimote2.Led2 = True
endif

If (Wiimote2.PluggedIn) Then
Wiimote2.Led2 = True
else
Wiimote2.Led2 = False
Wiimote1.PluggedIn = True
Wiimote1.Led1 = True
endif

If (Wiimote1.Battery <= 100) Then
Wiimote1.rumble = True
else
Wiimote1.rumble = False
endif

If (Wiimote2.Battery >= 100) Then
Wiimote2.Rumble = True
else
Wiimote2.Rumble = False
endif

if (Wiimote1.HasNunchuk) then
Wiimote1.Led4 = True
else
Wiimote1.Led4 = False
endif

if (Wiimote2.HasNunchuk) then
Wiimote2.Led4 = True
else
Wiimote2.Led4 = False
endif

if (Wiimote1.HasClassic) then
Wiimote1.Led3 = True
else
Wiimote1.Led3 = False
endif

if (Wiimote2.HasClassic) then
Wiimote2.Led3 = True
else
Wiimote2.Led3 = False
endif

Script 2 (Without Raw Force):

//For Use With Super Smash Bros on N64 on Emu
//Change As You Please As This Is A Free Script
//Works Only With 2 Wiimotes Sorry:)
//Detects Which Each Wiimote Has Been Synced To
//Rumbles When Battery Level For Wiimote Get To Or Below 100 // Full Is 192
//Aim With Analog Stick For Smash And Special Attacks Up Is Up Special Or Smash Etc

Right = 1 > Wiimote1.Nunchuk.JoyX > 0.5 
Left = -1 < Wiimote1.Nunchuk.JoyX < -0.5 
down = 1 > Wiimote1.Nunchuk.JoyY > 0.5 
up = -1 < Wiimote1.Nunchuk.JoyY < -0.5

S = Wiimote1.A and Wiimote1.B
Z = Wiimote1.Nunchuk.ZButton
C = Wiimote1.B
X = Wiimote1.A

L = 1 > Wiimote2.Nunchuk.JoyX > 0.5
J = -1 < Wiimote2.Nunchuk.JoyX < -0.5
K = 1 > Wiimote2.Nunchuk.JoyY > 0.5
I = -1 < Wiimote2.Nunchuk.JoyY < -0.5

O = Wiimote2.A and Wiimote2.B
P = Wiimote2.Nunchuk.ZButton
M = Wiimote2.B
N = Wiimote2.A

If (Wiimote1.PluggedIn) Then
Wiimote1.Led1 = True
else
Wiimote1.Led1 = False
Wiimote2.PluggedIn = True
Wiimote2.Led2 = True
endif

If (Wiimote2.PluggedIn) Then
Wiimote2.Led2 = True
else
Wiimote2.Led2 = False
Wiimote1.PluggedIn = True
Wiimote1.Led1 = True
endif

If (Wiimote1.Battery <= 100) Then
Wiimote1.rumble = True
else
Wiimote1.rumble = False
endif

If (Wiimote2.Battery >= 100) Then
Wiimote2.Rumble = True
else
Wiimote2.Rumble = False
endif

if (Wiimote1.HasNunchuk) then
Wiimote1.Led4 = True
else
Wiimote1.Led4 = False
endif

if (Wiimote2.HasNunchuk) then
Wiimote2.Led4 = True
else
Wiimote2.Led4 = False
endif

if (Wiimote1.HasClassic) then
Wiimote1.Led3 = True
else
Wiimote1.Led3 = False
endif

if (Wiimote2.HasClassic) then
Wiimote2.Led3 = True
else
Wiimote2.Led3 = False
endif

Set These Keys In Your Emulator As Follows:

P1
Start: s = Wiimote A+B
A: x = Wiimote A
B: c = Wiimote B
Z: z = Wiimote Nunchuk Z

AStick-Up: UP = Nunchuk Astick Up
Astick-Down: DOWN = Nunchuk Astick Down
Astick-Left: LEFT = Nunchuk Astick Left
Astick-Right: RIGHT = Nunchuk Astick Right

P2
Start: o = Wiimote A+B
A: n = Wiimote A
B: m = Wiimote B
Z: p = Wiimote Nunchuk Z

AStick-Up: i = Nunchuk Astick Up
Astick-Down: k = Nunchuk Astick Down
Astick-Left: j = Nunchuk Astick Left
Astick-Right: l = Nunchuk Astick Right

Also Any Problems You Encounter Or Any Advice or just comments Email Me At "al333_5@msn.com" PS: If Anyone has code for direction change of the player when you the rawforce x moves left or right please email me to. Thanks

Personal tools
Online Casino - best online casino reviews.
Facebook Developers - facebook applications, facebook developers, facebook development, social network application development and viral widget social media strategy