| View previous topic :: View next topic |
| Author |
Message |
kunalkunal2
Joined: 13 Dec 2006 Posts: 279
Digg It |
Posted: Tue Jan 23, 2007 11:49 pm Post subject: |
|
|
| grako122 wrote: | Make a script for Snowboard Kids or Road Rash and you're my hero!  |
I'm being to right a script for road rash
So what do you want more of, steering the motorcycle, or punching the motocyle people _________________ Check out my collection of my wii script's
freewebs.com/kunalkunal2 |
|
| Back to top |
|
 |
TylerK

Joined: 18 Dec 2006 Posts: 384 Location: Springfield, IL
Digg It |
Posted: Wed Jan 24, 2007 1:42 am Post subject: |
|
|
I've always had a soft spot in my heart for Road Rash, and I hadn't tried the N64 version until just recently. The original GlovePIE script I made for it had the nunchuk analog accelerating, braking, and steering and the Wiimote was used to hit people but it was really hard to play like that (even if it felt really good to smack some poor schmuck in the face with the Wiimote) so I scratched it and came up with a different script.
With this you steer using both the nunchuk and Wiimote. The roll of each is averaged together which gives you a more precise control than the analog stick would by itself. If you tilt both the analog and the wiimote upwards you'll do a wheelie. The Wiimote A button accelerates. Nunchuk Z changes weapons and Nunchuk C brakes.
Attacking is accomplished with the Wiimote's B trigger button. Press it alone to do a normal attack. Hold down on the nunchuk analog and press it and you'll kick. Hold up on the nunchuk analog and you'll swing forwards. To do a spoke jam (only possible if you have a weapon) you tilt the nunchuk downwards and then hit the B button.
Additionally, the 1 button does a save state. The 2 button will load the save state.
For the majority of this to work you'll need PPJoy setup and the N64 emulator setup with controls like this:
| Code: |
// Road Rash 64
Wiimote1.Leds = 0
if (Pressed(Wiimote1.B)) then
if (Wiimote1.Nunchuk.JoyY < -0.5) then
PPJoy1.Digital8 = true;
elseif (Wiimote1.Nunchuk.JoyY > 0.5) then
PPJoy1.Digital7 = true
else
if (Wiimote1.Nunchuk.SmoothPitch < -28) then PPJoy1.Digital8 = true
PPJoy1.Digital6 = true
endif
endif
if (Released(Wiimote1.B)) then
PPJoy1.Digital8 = false;
PPJoy1.Digital7 = false;
PPJoy1.Digital6 = false;
endif
PPJoy1.Analog1 = Wiimote1.Nunchuk.JoyY
var.steer = Round((Wiimote1.SmoothRoll + Wiimote1.Nunchuk.SmoothRoll)/4)
PPJoy1.Analog0 = EnsureMapRange(var.steer, -30, 30, -1, 1);
PPJoy1.Digital9 = ((Wiimote1.SmoothPitch > 30) && (Wiimote1.Nunchuk.SmoothPitch > 30))
F5 = Wiimote1.One
F7 = Wiimote1.Two
PPJoy1.Digital2 = Wiimote1.Minus
Escape = Wiimote1.Home
PPJoy1.Digital4 = Wiimote1.Plus
PPJoy1.Digital5 = Wiimote1.Nunchuk.ZButton
PPJoy1.Digital10 = Wiimote1.A
PPJoy1.Digital11 = Wiimote1.Nunchuk.CButton
|
The downside to this script is that you have to tilt left and right to change options in some of the menus. I could easily setup a pixel checker to see whether or not you're in a menu or a race (the backgrounds for the menus are static so you'd just need to check a couple unique pixels) and change the controls accordingly, but I'm afraid that what works for me won't necessarily work for you since we could be using different resolutions or display settings. |
|
| Back to top |
|
 |
kunalkunal2
Joined: 13 Dec 2006 Posts: 279
Digg It |
Posted: Wed Jan 24, 2007 2:06 am Post subject: |
|
|
thats one job of my list, so your script has been requested _________________ Check out my collection of my wii script's
freewebs.com/kunalkunal2 |
|
| Back to top |
|
 |
grako122
Joined: 17 Dec 2006 Posts: 2
Digg It |
Posted: Wed Jan 24, 2007 4:22 pm Post subject: |
|
|
awesome! Thx! |
|
| Back to top |
|
 |
Aura-Z
Joined: 25 Jan 2007 Posts: 6
Digg It |
Posted: Thu Jan 25, 2007 2:40 pm Post subject: |
|
|
Hi,
Pilotwings 64 would be great
++ |
|
| Back to top |
|
 |
kunalkunal2
Joined: 13 Dec 2006 Posts: 279
Digg It |
Posted: Fri Jan 26, 2007 1:58 am Post subject: |
|
|
| Aura-Z wrote: | Hi,
Pilotwings 64 would be great
++ |
writing it now......
im doing it like a flight stick you would see in the arcade
but i need help
I got the left and right movements working
but not the up/down
any help will be appericated
this is what I got so far
| Code: | right = wiimote.gx <(-0.01) and wiimote.gy <(0.50) and wiimote.gz <(0.86)
left = wiimote.gx >(0.01) and wiimote.gy >(-0.50) and wiimote.gz >(-0.86) |
_________________ Check out my collection of my wii script's
freewebs.com/kunalkunal2 |
|
| Back to top |
|
 |
TylerK

Joined: 18 Dec 2006 Posts: 384 Location: Springfield, IL
Digg It |
Posted: Fri Jan 26, 2007 2:35 am Post subject: |
|
|
| Use the Wiimote's pitch for up and down. |
|
| Back to top |
|
 |
|