The Gang Garrison 2 Forum
June 19, 2013, 04:18:15 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Chat with us on IRC: http://ganggarrison.com/irc.html
Server: irc.esper.net, Channel: #gg2
 
   Home   Help Search Login Register  
Pages: 1 2 »
  Print  
Author Topic: Gang Garrison Glovepie Scripts (PLAY GG2 WITH A WIIMOTE)  (Read 1380 times)
Orangestar
Hero Member
*****
Offline Offline

Posts: 4822


Base names, yo.


WWW
« on: December 18, 2010, 01:49:05 pm »

Step 1: Connect your Wiimote to your bluetooth that you totally already have on your computer.
How to Connect a Wii Remote to a Computer Running Vista


Step 2: Download GlovePIE

Step 3: Copypasta this in your glovepie window

Code: (Wiimote Only)
// Orangestar's Gang Garrison Script
// Controls are Cave-Story-or-Contra-style. Up makes you aim up,
// Down aims down, etc, etc.
// 2 = Primary Fire
// 1 = Secondary Fire
// + = Call for Medic
// Home = Scores
// - = Taunt
// B = 2 (for engy menu)
// A = 1 (for engy menu
// Complain? MAKE YOUR OWN!

Key.A = Wiimote1.Up
Key.S = Wiimote1.Left
Key.D = Wiimote1.Down
Key.W = Wiimote1.Right
key.F = Wiimote1.Minus
Mouse.LeftButton = Wiimote.Two
Mouse.RightButton = Wiimote.One
if Wiimote1.right = true then Mouse.CursorPosY = 2
if wiimote1.left = true then Mouse.CursorposY = 1080
if Wiimote1.left = False and wiimote1.Right = false and (wiimote1.up = true or Wiimote1.down=true) then Mouse.CursorPosY = 540
if Wiimote1.Up = true then Mouse.CursorPosX = 2
if wiimote1.Down = true then Mouse.CursorposX = 1920
if wiimote1.down = false and wiimote1.left = false and wiimote1.up = false and wiimote1.right = true then mouse.CursorPosY = 2
if wiimote1.down = false and wiimote1.left = false and wiimote1.up = false and wiimote1.right = true then mouse.CursorPosX = 960
if wiimote1.down = false and wiimote1.left = true and wiimote1.up = false and wiimote1.right = false then mouse.CursorPosY = 1080
if wiimote1.down = false and wiimote1.left = true and wiimote1.up = false and wiimote1.right = false then mouse.CursorPosX = 960
key.One = wiimote1.B
key.Two = wiimote1.A
Key.E = Wiimote1.plus
Key.Shift = Wiimote1.Home

Code: (Nagn's Classic Controller script)
//Mouse
If var.active=True and var.freeze=false
Mouse.x=Smooth((1/(screen.Width/var.x)), 2)
Mouse.y=Smooth((1/(screen.Height/var.y)), 2)
Else
var.x = MapRange(Mouse.x, 0, 1, 1, screen.Width)
var.y = MapRange(Mouse.y, 0, 1, 1, screen.Height)
Endif

var.speedy=Smooth((abs(wiimote.Classic.Joy2y)*var.top))
var.speedx=Smooth((abs(wiimote.Classic.Joy2x)*var.top))
if (-var.minim<(wiimote.Classic.Joy2y or wiimote.Classic.Joy2x) )
//Joys
If Wiimote.Classic.Joy2y < -var.minim Then var.y=var.y-var.speedy
If Wiimote.Classic.Joy2y > var.minim Then var.y=var.y+var.speedy
If Wiimote.Classic.Joy2X < -var.minim Then var.x=var.x-var.speedx
If Wiimote.Classic.Joy2X > var.minim Then var.x=var.x+var.speedx

var.speed = Classic.Joy2

var.speed = var.speed * 15
end if

mouse.DirectInput2D += var.speed
//Buttons
Mouse.LeftButton = Classic.ZL
Mouse.RightButton = Classic.ZR
//Keyboard stuff
 

Key.A= Wiimote1.Classic.Left
Key.D = Wiimote1.Classic.Right
Key.W = Wiimote1.Classic.Up
Key.S = Wiimote1.Classic.Down
Key.F = Wiimote1.Classic.RFull
Key.B = Wiimote1.Classic.b
Key.E = Wiimote1.Classic.LFull
Key.Shift = Wiimote1.Classic.Plus
Key.Escape = Wiimote1.Classic.Home
Key.M = Wiimote1.Classic.x
Key.N = Wiimote1.Classic.y

Step 4: Run the script (the mouse will still work) and join a server.

Step 5 :Have fun!

Some ideas for future ones: Wiimote+nunchuck and WiiMotion Plus Mouse Tracking

P.S. If you were playing recently and saw a guy named "v Using Wiimote v" that was me.
« Last Edit: December 18, 2010, 03:16:39 pm by lol i saw u on the bus lasf week, » Logged

♫Ozoh
Hero Member
*****
Offline Offline

Posts: 4065



WWW
« Reply #1 on: December 18, 2010, 02:11:02 pm »

Cheesy
I just don't have bluetooth on this  z7
Logged

stop flaming ajf ffs
if they named one winter storm oic you would probably go on a shooting spree at the atlanta headquarters
I used to report posts until uber got mad and signed me up for gay politics sites (mod abuse!!)
NAGN
Developer
******
Offline Offline

Posts: 16904


Yeah so now I have an idea


« Reply #2 on: December 18, 2010, 02:43:14 pm »

mien is superior
http://www.ganggarrison.com/forums/index.php?topic=20218.0
Logged



[im
Orangestar
Hero Member
*****
Offline Offline

Posts: 4822


Base names, yo.


WWW
« Reply #3 on: December 18, 2010, 02:54:31 pm »

Yours uses Wiimote Classic Controlololololler. Mien uses Plain ol' wiimote.

Hey, mind if I add that here?
« Last Edit: December 18, 2010, 02:55:26 pm by lol i saw u on the bus lasf week, » Logged

NAGN
Developer
******
Offline Offline

Posts: 16904


Yeah so now I have an idea


« Reply #4 on: December 18, 2010, 03:03:14 pm »

sure most people don't know how to hook up the wiimote to computer anyways lol Drolling
Logged



[im
AJF
Guest
« Reply #5 on: December 18, 2010, 03:19:37 pm »

Cheesy
I just don't have bluetooth on this  z7
Get a mini dongle thing. Like €7 on ebay.
Logged
AJF
Guest
« Reply #6 on: December 18, 2010, 03:20:02 pm »

sure most people don't know how to hook up the wiimote to computer anyways lol Drolling
I'll tell them then:
Hold down 1 and 2.
Add like any other bluetooth device on PC.
Done.
Logged
Orangestar
Hero Member
*****
Offline Offline

Posts: 4822


Base names, yo.


WWW
« Reply #7 on: December 18, 2010, 03:20:48 pm »

sure most people don't know how to hook up the wiimote to computer anyways lol Drolling
I'll tell them then:
Hold down 1 and 2.
Add like any other bluetooth device on PC.
Done.
Why do you think I added the video. Tongue
Logged

zhengman777
Sr. Member
****
Offline Offline

Posts: 322


« Reply #8 on: December 19, 2010, 12:20:01 am »

Needs more waggle.
Logged
Orangestar
Hero Member
*****
Offline Offline

Posts: 4822


Base names, yo.


WWW
« Reply #9 on: December 19, 2010, 01:51:38 pm »

Needs more waggle.
wut

@Nagn: what's up with your script? The analog stick won't stop the mouse after it's started, and... well, whatever made
Code:
Mouse.LeftButton = Classic.ZL
Mouse.RightButton = Classic.ZR
a good idea?
« Last Edit: December 19, 2010, 01:58:23 pm by Who's that Pokémon? » Logged

One
Guest
« Reply #10 on: December 19, 2010, 02:05:02 pm »

Controlololololler
never say words again
« Last Edit: December 19, 2010, 02:06:04 pm by [pyropooch] » Logged
NAGN
Developer
******
Offline Offline

Posts: 16904


Yeah so now I have an idea


« Reply #11 on: December 19, 2010, 02:09:47 pm »

Needs more waggle.
wut

@Nagn: what's up with your script? The analog stick won't stop the mouse after it's started, and... well, whatever made
Code:
Mouse.LeftButton = Classic.ZL
Mouse.RightButton = Classic.ZR
a good idea?
Since you had to use dual analog control there isn't really any other buttons that I could possibally use for shooting (both thumbs are on the joystick at all times)
Logged



[im
Orangestar
Hero Member
*****
Offline Offline

Posts: 4822


Base names, yo.


WWW
« Reply #12 on: December 19, 2010, 03:00:23 pm »

Needs more waggle.
wut

@Nagn: what's up with your script? The analog stick won't stop the mouse after it's started, and... well, whatever made
Code:
Mouse.LeftButton = Classic.ZL
Mouse.RightButton = Classic.ZR
a good idea?
Since you had to use dual analog control there isn't really any other buttons that I could possibally use for shooting (both thumbs are on the joystick at all times)
Yes, because taunting and calling for a medic is WAAY more important than firing at your enemy.
Logged

NAGN
Developer
******
Offline Offline

Posts: 16904


Yeah so now I have an idea


« Reply #13 on: December 19, 2010, 03:36:22 pm »

you don't understand if it were binded to a button then there'd be no way to move aim and shoot at the same time
Logged



[im
Orangestar
Hero Member
*****
Offline Offline

Posts: 4822


Base names, yo.


WWW
« Reply #14 on: December 19, 2010, 03:44:29 pm »

you don't understand if it were binded to a button then there'd be no way to move aim and shoot at the same time
You don't understand. R would've been a better bet for fire, L for alt-fire, and then ZL and ZR for what L and R are currently set to.

Also what's with the right button. It goes, but doesn't stop.
Logged

Pages: 1 2 »
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.402 seconds with 19 queries.