The place to discuss all things
Receiver.
-
Lyc@n
- Posts: 5
- Joined: Wed Apr 03, 2013 7:09 am
Post
by Lyc@n » Fri Aug 16, 2013 7:21 pm
Hello everybody! Recently I started playing Receiver and I told myself "This game is so freakin' realistic with the guns! It would be even better with a Wiimote!", so I started a small GlovePIE script, so everything goes well for the keyboard, but it doesn't works for the mouse, and I don't understand why because I can move the cursor around on Windows. So here's my script:
Code: Select all
if Wiimote.PointerVisible then
Mouse.x = Wiimote.PointerX
Mouse.y = Wiimote.PointerY
endif
//mouse.CursorPosX = 1920-round((Wiimote.dot1x/1012)*1920)
//mouse.CursorPosY = round((Wiimote.dot1y/800)*1080)
Key.D=Wiimote.Right
Key.A=Wiimote.Left
Key.W=Wiimote.Up
Key.S=Wiimote.Down
Key.Space=Wiimote.Two
Key.C=Wiimote.One
Key.Divide=Wiimote.Home
Mouse.LeftButton=Wiimote.B
Key.LeftShift=Wiimote.A
Key.R=Wiimote.SwingHorizontal
Key.Q=Wiimote.SwingUp
Key.E=Wiimote.SwingDown
Can anybody help me please? Thanks!
PS: I use an azerty keyboard.
-
AmorphousGamer
- Posts: 832
- Joined: Sat Jul 06, 2013 2:41 am
- Location: Montgomery, Alabama
Post
by AmorphousGamer » Fri Aug 16, 2013 8:19 pm
I can't really help with your problem, but I would like to say Receiver with movement controls sounds fucking amazing.
-
Lyc@n
- Posts: 5
- Joined: Wed Apr 03, 2013 7:09 am
Post
by Lyc@n » Sat Aug 17, 2013 5:54 pm
I did it! It is a bit hard to aim but it's cool:
Code: Select all
debug = Wiimote.dot1y
//if Wiimote.PointerVisible then
// Mouse.DirectInputX = 1920-round((Wiimote.dot1x/1016)*1920)
// Mouse.DirectInputY = round((Wiimote.dot1y/760)*1080)
//endif
if Wiimote.PointerVisible and Wiimote.Nunchuk.ZButton then
Key.X=TRUE
mouse.DirectInputX = mouse.DirectInputX + 50*(Wiimote1.pointerX - 1/2)
mouse.DirectInputY = mouse.DirectInputY + 35*(Wiimote1.pointerY - 1/2)
elseif not Wiimote.Nunchuk.ZButton then
Key.X=FALSE
mouse.DirectInputX = mouse.DirectInputX + 12.5*(Nunchuck.JoyX)
mouse.DirectInputY = mouse.DirectInputY + 8.75*(Nunchuck.JoyY)
endif
//mouse.CursorPosX = 1920-round((Wiimote.dot1x/1012)*1920)
//mouse.CursorPosY = round((Wiimote.dot1y/800)*1080)
Key.D=Wiimote.Right
Key.A=Wiimote.Left
Key.W=Wiimote.Up
Key.S=Wiimote.Down
Key.Space=Wiimote.Two
Key.C=Wiimote.One
Key.Divide=Wiimote.Home
Key.Tab=Nunchuck.ZButton
Key.G=Nunchuck.C
Key.LeftShift=Wiimote.A
Key.R=Wiimote.SwingHorizontal
Key.Q=Wiimote.SwingUp OR Wiimote.Plus
Key.E=Wiimote.SwingDown
Mouse.LeftButton=Wiimote.B
if Wiimote.B=true then
wiimote.rumble = true
wait 10 ms
wiimote.rumble = false
endif
You move with the arrows and aim with the Nunckuck, but if you hold the Nunchuck Z button, you'll aim with the Wiimote. This is still not finished, you'll see that's it's not really playable, but I'm working on it!