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 

CS/Half Life Classic Controller, No PPJoy

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



Joined: 13 Jan 2007
Posts: 3

Digg It
PostPosted: 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!
Back to top
View user's profile Send private message AIM Address
KCBlack



Joined: 25 Dec 2006
Posts: 35

Digg It
PostPosted: Sun Jan 14, 2007 3:35 pm    Post subject:

Will this work on Halo? Past FPS scripts haven't worked on Halo; the Wiimote couldn't act as the mouse in game.

EDIT:NVM Didnt see it was classic.
Back to top
View user's profile Send private message
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