WiiLi Wiki frontpage Include your post in the News Get links Hoteles Quito
WiiLi.org Forum Index WiiLi.org
a new revolution
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Awesome F.E.A.R. Glovepie Script! With Nunchuk Support.

 
Post new topic   Reply to topic    WiiLi.org Forum Index -> Wii Scripts
View previous topic :: View next topic  
Author Message
Vaughan14



Joined: 28 Jan 2007
Posts: 32
Location: Australia

Digg It
PostPosted: Wed Jan 31, 2007 10:05 am    Post subject: Awesome F.E.A.R. Glovepie Script! With Nunchuk Support.

After about three days work and a few hours of testing I came up with this script which works really well once you get used to it!

Also this is my first Script so please leave feedback.

Code:

//Wii Remote F.E.A.R. Script By Vaughan Wellington. v0.51 final
//Includes All movenment and buttons, also a few surprises
//All buttons are writeen below, go to bottom for more instructions

//Wii Remote
//Action/Open doors/Hit Switches
Key.F = wiimote.A
//Fire Weapon
Mouse.LeftButton = Wiimote.B
//Zoom
Key.Shift = wiimote.Plus
//Crouch
Key.C = wiimote.Minus
//Use Medikit
Key.Z = wiimote.Home
//SlowMo
Key.Ctrl = wiimote.One
//FlashLight
Key.X = wiimote.Two
//Change Weapon Up
Mouse.WheelUp = wiimote.Up
//Change Weapon Down
Mouse.WheelDown = wiimote.Down
//Lean Left
Key.Q = wiimote.Left
//Lean Right
Key.E = wiimote.Right
//Wii Nunchuk
//Walk Left
Key.A = (-1.2 < wiimote.Nunchuk.JoyX < -0.5)
//Walk Right
Key.D = (0.5 < wiimote.Nunchuk.JoyX < 1.2)
//Walk Up
Key.W = (-1.2 < wiimote.Nunchuk.JoyY < -0.5)
//Walk Down
Key.S = (0.5 < wiimote.Nunchuk.JoyY < 1.2)
//Grenade
Key.G = Wiimote.Nunchuk.CButton
//Jump
Key.Space = Wiimote.Nunchuk.ZButton
//Wii Remote Leds flash when you shoot
wiimote.led1,wiimote.led2,wiimote.led3,wiimote.led4 = wiimote.B
//Makes Wii Remote Rumble when shooting
wiimote.Rumble = Mouse.LeftButton
//Nunchuck Reload when thrusting any direction (It's supposed to be left)
Key.R = wiimote.nunchuk.RawforceX + 30 > -8
//Wii Remote Aiming, (mouse)
//Aim Up (tilt the wii remote upwards)
Key.Up = Wiimote.smoothPitch > -17.5 degrees
//Aim Left (tilt the wii remote so the buttons are facing the left)
Key.Left = Wiimote.smoothroll < -17.5 degrees
//Aim Down (tilt the wii remote downwards)
Key.Down = Wiimote.smoothPitch < 15 degrees
//Aim Right (tilt the wii remote so the buttons are facing the right)
Key.Right = Wiimote.smoothroll > 17.5 degrees

//In Game settings: Change to these settings for best results

//Change your in game buttons to the default, Do so if you changed them.
//Click options, Controls and Restore Defaults.

//Make Y axis inverted, This is in the script:
//Go to //Wii Remote Aiming, (mouse), and change the arrows (>)(<)
//Only change the Up and Down Arrows. NOTE! you can do this to the X axis also.
//END.

_________________


Last edited by Vaughan14 on Thu Feb 01, 2007 6:54 am; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Wiitards-co-uk



Joined: 30 Jan 2007
Posts: 19

Digg It
PostPosted: Wed Jan 31, 2007 2:14 pm    Post subject:

nice job on that. Smile
Back to top
View user's profile Send private message Visit poster's website
CarlKenner
Site Admin


Joined: 29 Nov 2006
Posts: 614

Digg It
PostPosted: Thu Feb 01, 2007 1:53 am    Post subject:

You need to have BBCode enabled, or at least not disabled, in the checkboxes below if you want to mark things as code.
Back to top
View user's profile Send private message Send e-mail
Vaughan14



Joined: 28 Jan 2007
Posts: 32
Location: Australia

Digg It
PostPosted: Thu Feb 01, 2007 6:57 am    Post subject:

Thanks Carl!

I made changes to the script not major so I will post it here you could test both! Also I made the script for the Classic Controller, I will post that below the new and improved Wii Remote/Nunchuk script.

new and improved Wii Remote/Nunchuk script:
Code:

//Wii Remote F.E.A.R. Script By Vaughan Wellington. v0.52 final x 2
//Includes All movenment and buttons, also a few surprises
//All buttons are writeen below, go to bottom for more instructions

//Wii Remote
//Action/Open doors/Hit Switches
Key.F = wiimote.A
//Fire Weapon
Mouse.LeftButton = Wiimote.B
//Zoom
Key.Shift = wiimote.Plus
//Crouch
Key.C = wiimote.Minus
//Use Medikit
Key.Z = wiimote.Home
//SlowMo
Key.Ctrl = wiimote.One
//FlashLight
Key.X = wiimote.Two
//Change Weapon Up
Mouse.WheelUp = wiimote.Up
//Change Weapon Down
Mouse.WheelDown = wiimote.Down
//Lean Left
Key.Q = wiimote.Left
//Lean Right
Key.E = wiimote.Right
//Wii Nunchuk
//Walk Left
Key.A = (-1.2 < wiimote.Nunchuk.JoyX < -0.5)
//Walk Right
Key.D = (0.5 < wiimote.Nunchuk.JoyX < 1.2)
//Walk Up
Key.W = (-1.2 < wiimote.Nunchuk.JoyY < -0.5)
//Walk Down
Key.S = (0.5 < wiimote.Nunchuk.JoyY < 1.2)
//Grenade
Key.G = Wiimote.Nunchuk.CButton
//Jump
Key.Space = Wiimote.Nunchuk.ZButton
//Wii Remote Leds flash when you shoot
If wiimote.B then
wiimote.led1 = 0
wait 10 ms
wiimote.led1 = 1
wait 10 ms
wiimote.led2 = 1
wait 10 ms
wiimote.led3 = 1
wait 10 ms
wiimote.led4 = 1
wait 10 ms
wiimote.leds = 0
wait 10 ms
wiimote.led4 = 1
wait 10 ms
wiimote.led3 = 1
wait 10 ms
wiimote.led2 = 1
wait 10 ms
wiimote.led1 = 1
wait 10 ms
wiimote.leds = 0
endif
//Makes Wii Remote Rumble when shooting
if Mouse.LeftButton then
wiimote.Rumble = 1
endif
if Released(Wiimote.B)
wiimote.Rumble = 0
endif
//Nunchuck Reload when thrusting any direction (It's supposed to be left)
Key.R = wiimote.nunchuk.RawforceX + 30 > -8
//Wii Remote Rumble Timer Throwing a grenade
if wiimote.nunchuk.CButton then
wiimote.led4 = 1
wiimote.led3 = 1
wiimote.led2 = 1
wiimote.led1 = 1
wait .8 s
wiimote.led4 = 0
wait .6 s
wiimote.Led3 = 0
wait .6 s
wiimote.led2 = 0
wait .6 s
wiimote.led1 = 0
wiimote.rumble = 1
wait .75 s
wiimote.rumble = 0
endif
//Wii Remote Aiming, (mouse)
//Aim Up (tilt the wii remote upwards)
Key.Up = Wiimote.smoothPitch > -17.5 degrees
//Aim Left (tilt the wii remote so the buttons are facing the left)
Key.Left = Wiimote.smoothroll < -17.5 degrees
//Aim Down (tilt the wii remote downwards)
Key.Down = Wiimote.smoothPitch < 15 degrees
//Aim Right (tilt the wii remote so the buttons are facing the right)
Key.Right = Wiimote.smoothroll > 17.5 degrees

//In Game settings: Change to these settings for best results

//Change your in game buttons to the default, Do so if you changed them.
//Click options, Controls and Restore Defaults.

//Make Y axis inverted, This is in the script:
//Go to //Wii Remote Aiming, (mouse), and change the arrows (>)(<)
//Only change the Up and Down Arrows. NOTE! you can do this to the X axis also.
//END.


Classic Controller Script:
Code:

//F.E.A.R. Wii Classic Controller Script v0.3 By Vaughan Wellington
//Includes All movenment and buttons, also a few surprises
//All buttons are writeen below, go to bottom for more instructions

//Wii Classic Controller Instructions
//Action/Open doors/Hit Switches
Key.F = wiimote.classic.B
//Fire Weapon
Mouse.LeftButton = wiimote.classic.R
//Melee
Mouse.RightButton = wiimote.classic.X
//Zoom
Key.Shift = wiimote.classic.Plus
//Crouch
Key.C = wiimote.classic.Minus
//Use Medikit
Key.Z = wiimote.classic.Y
//SlowMo
Key.Ctrl = wiimote.classic.ZL
//Change Weapon Up/Down
Mouse.WheelUp = wiimote.classic.Up
Mouse.WheelDown = wiimote.classic.Down
//Lean Left/Right
Key.Q = wiimote.classic.Left
Key.E = wiimote.classic.Right
//Grenade
Key.G = wiimote.classic.L
//Jump
Key.Space = wiimote.classic.a
//Reload
Key.R = wiimote.classic.ZR
//Pause
Key.Escape = Wiimote.classic.home
//Classic right stick. aiming
//Up
Key.Up = (0.5 < Wiimote.Classic.joy2Y < 1.2)
//Left
Key.Left = (-1.2 < Wiimote.Classic.joy2X < -0.5)
//Down
Key.Down = (-1.2 < Wiimote.Classic.joy2Y < -0.5)
//Right
Key.Right = (0.5 < Wiimote.Classic.joy2X < 1.2)
//Classic left stick. moving
//Up
Key.W = (-1.2 < Wiimote.Classic.joy1Y < -0.5)
//Left
Key.A = (-1.2 < Wiimote.Classic.joy1X < -0.5)
//Down
Key.S = (0.5 < Wiimote.Classic.joy1Y < 1.2)
//Right
Key.D = (0.5 < Wiimote.Classic.joy1X < 1.2)

//In Game settings: Change to these settings for best results

//Change your in game buttons to the default, Do so if you changed them.
//Click options, Controls and Restore Defaults.

//Make Y axis normal, This is in the script:
//Go to //Classic right stick. moving, and change swap the Key.Up and Key.Down
//Only change the Up and Down Keys.
//END.

_________________
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    WiiLi.org Forum Index -> Wii Scripts All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group