Forums Index >> Modding >> GlobalActionMap.bindCmd question



Page : <1> :


Anyone know what the proper command is to bind the scrollwheel on my mouse?

GlobalActionMap.bindCmd(mouse, button1, "",""); is for the right mouse button, but I have no clue what the wheel would be (up, down & click are all available).

Any help would be most appreciated.

Thanks,
TMO

Sunday, November 07, 2004 at 4:45:58 AM

Good question, got me stumped. :S

 

Sunday, November 07, 2004 at 10:21:54 AM

Hmm if I remember right it were for me "button0". If that wont work you can try "button2" too.

You don't have to let go of one rope before grabbing the other. But you'll have to let go of one if you want to swing forward.

Sunday, November 07, 2004 at 12:23:17 PM

Rule #1: Don't bind button0. That's your left mouse button. Binding it means you can't click on any of the menu options...

Sunday, November 07, 2004 at 2:29:27 PM

Zaxis

Sunday, November 07, 2004 at 5:13:43 PM

Heh, what are you trying to edit TMO? Chat Hotkeys?

Sunday, November 07, 2004 at 9:43:38 PM

TMO - do you mean by rolling the middle mouse or hitting it? Zaxis is for scrolling and button2 (I'm pretty sure) is for clicking.

[Ishbuu]

Sunday, November 07, 2004 at 9:50:53 PM

Actually what I've done is set up my scrollwheel to switch my tanks in Dash's mods (and other servers that support it). I can just dial up the tank I want without having to look at the keyboard.

Ishbuu - thx for the clarification on the clicking. I may want to hook something onto that someday.

Monday, November 08, 2004 at 6:07:30 PM

On a related note, is there anyway I can find out what *type* of game I'm currently in? For instance, if I'm in Team Scrum, can I determine that in the cs code? If so, then I can program it to automatically load the hotkeys appropriate to the game I'm playing without having to cycle through them all manually (and possibly flooding the chat server)

Monday, November 08, 2004 at 6:09:33 PM


 

If($Game::MissionType $= "Team Scrum")
{
//code goes here
}

 

EDIT: This won't work - Go to the thread after the next one and ull find the working ones

 


Last edited: Tuesday, November 09, 2004 at 4:55:30 PM

Tuesday, November 09, 2004 at 12:56:03 PM

Many thanks!

Tuesday, November 09, 2004 at 2:31:22 PM

Hey that wont work. I've created the list with the working ones:

Normal Types: (will be Team and non-team battle)

 

Scrum:
if($Game::MissionType $= "Scrum")
{
//code here
}

Battlemode:
if($Game::MissionType $= "DeathMatch")
{
//code here
}

 

Team Types:

 

Scrum:
if($Game::MissionType $= "Scrum" && $Game::TeamGame)
{
//code here
}

Battlemode:
if($Game::MissionType $= "DeathMatch" && $Game::TeamGame)
{
//code here
}

 

Non-Team Types:

 

Scrum:
if($Game::MissionType $= "Scrum" && !$Game::TeamGame)
{
//code here
}

Battlemode:
if($Game::MissionType $= "DeathMatch" && !$Game::TeamGame)
{
//code here
}

 

 


Last edited: Tuesday, November 09, 2004 at 4:52:37 PM

Tuesday, November 09, 2004 at 4:51:19 PM

Most excellent! Thanks! I'll add this capability to my Message Hotkey scripts and publish it as well. Look for it later this week.

Tuesday, November 09, 2004 at 6:24:29 PM

Nope. Hope that helped!


Wednesday, November 10, 2004 at 12:13:20 PM

I'm thinking on creating a selection script so you press your scroll wheel button on something visible, and it'll send out a grappling hook to retreive it (powerups/health powerups) You can even grapple trees + rocks with it I hope

(useful for campers lol!)
Yours
Leeds(SA²) (GHL [Grand High Leader])

Saturday, January 08, 2005 at 2:25:25 AM

Soooo... For example, GlobalActionMap.bind(mouse, button0, "","%tank.setTransform(however you get the position of the tank+("0 0 "+mouse.ZAXIS), 0 0 0);"); would make you jump into the air if you hold down the scroll wheel and scroll with it?
~¥~DJ Wings~¥~

Saturday, January 08, 2005 at 5:43:10 AM

Page : <1> :

insert quote insert url insert email insert image bold italic underline superscript subscript horizontal rule : : Help on using forum codes

Add comment:

HTML is disabled within comments, but ZBB Code is enabled.

Back to the top

Web site designed, maintained and funded by -z- and Dan MacDonald