Mibaranu
Joined: 13 Jan 2007 Posts: 3
Digg It |
Posted: Sun Jan 14, 2007 8:33 am Post subject: CS/Half Life Classic Controller, No PPJoy |
|
|
I know a mouse is better and all, but i have a laptop, and im a native console gamer.
| Code: | //This is my counterstrike/halflife code for use with the classic
//controller. button layout is mostly default, but it may be wise
//to make sure everything lines up. Similar to Halo controls, reload
//jump, weapon switch. you may want to tweak the sensitivity for
//the mouse
//Version 1.0 Written by Steve, aka Mibaranu
Wiimote.Leds = 1 //shows when on
Mouse.LeftButton = Wiimote.Classic.R //shoot
Mouse.RightButton = Wiimote.Classic.L //weapon special
Q = Wiimote.Classic.X //quickswitch
Space = Wiimote.classic.B //jump
Z = Wiimote.Classic.ZL //crouch
X = Wiimote.Classic.ZR //walk
E = Wiimote.Classic.A //action
R = Wiimote.Classic.Y //reload
B = Wiimote.Classic.Start //buy menu
Esc = Wiimote.Classic.Home //menu
Tab = Wiimote.Classic.Minus //scores
G = Wiimote.Classic.a + Wiimote.Classic.x //drop weapon
F = Wiimote.Classic.Up //flash light
N = Wiimote.Classic.Down //night vision
M = Wiimote.Classic.Left //Switch weapon down
Comma = Wiimote.Classic.Right //Switch weapon up
//WSAD
var.Lx = Wiimote.Classic.Joy1X
var.Ly = Wiimote.Classic.Joy1Y
Keyboard.A = var.Lx < -0.3
Keyboard.D = var.Lx > 0.3
Keyboard.W = var.Ly < -0.3
Keyboard.S = var.Ly > 0.3
//mouse control
var.Rx = Wiimote.Classic.Joy2X
var.Ry = Wiimote.Classic.Joy2Y
if var.Rx > .05 or var.Rx < -.05
mouse.x = mouse.x + var.Rx/50
endif
if var.Ry > .05 or var.Ry < -.05
mouse.y = mouse.y + var.Ry/30
endif
|
Enjoy! |
|