BullyWiiHacks
Welcome dear guest! Very Happy

To start posting and being part of the BWH community, you simply need to register an account or log into an existing one.

If you do not wish to register at all, that's fine but there will be more advertisements. :/

You can probably see and download most content provided for regular members even without an account.

Your contributions will be greatly appreciated though, give it a shot and register today! thumbsup

Join the forum, it's quick and easy

BullyWiiHacks
Welcome dear guest! Very Happy

To start posting and being part of the BWH community, you simply need to register an account or log into an existing one.

If you do not wish to register at all, that's fine but there will be more advertisements. :/

You can probably see and download most content provided for regular members even without an account.

Your contributions will be greatly appreciated though, give it a shot and register today! thumbsup
BullyWiiHacks
Would you like to react to this message? Create an account in a few clicks or log in to continue.
BullyWiiHacks

Gaming, Modding & Programming

Important reminders:

- Click *HERE* for advanced forum search or check out the text field below on the front page for Google before posting
- NO support via private message (use the forum)
- Write meaningful topic titles
Site Translation
Latest topics
» Animal Crossing Wii: An Issue With Seth's "Grass Can't Be Trampled" Gecko code
Button Binding & Unbinding EmptyToday at 3:35 pm by SnB@BWH

» [Code Request] Final Fantasy Fables: Chocobo's Dungeon (R7FEGD)
Button Binding & Unbinding Empty11/19/2024, 4:04 pm by ShashooPooka

» Lego Stars Wars: The Complete Saga [RLGE64]
Button Binding & Unbinding Empty11/12/2024, 3:19 am by SnB@BWH

» JMaster Duel Bot: A Yu-Gi-Oh! Master Duel Bot and Trainer for Steam
Button Binding & Unbinding Empty11/10/2024, 5:26 am by Bully@WiiPlaza

» Error Injecting Drool Links Saliva Mod Menu
Button Binding & Unbinding Empty11/10/2024, 5:24 am by Bully@WiiPlaza

» USB Gecko problems with some games
Button Binding & Unbinding Empty10/16/2024, 1:59 pm by Reclaimer Shawn

» Metal Gear Solid V The Phantom Pain X Flashpoint Batman Gameplay unedited [Seth@WiiPlaza]
Button Binding & Unbinding Empty9/23/2024, 12:48 pm by Seth@WiiPlaza

» Dropped Out of College to Pursue Web Dev and Life Pursuits in General
Button Binding & Unbinding Empty8/9/2024, 7:09 am by SnB@BWH

» ASM <> Gecko Code Converter
Button Binding & Unbinding Empty7/29/2024, 11:15 am by Mac11ngAround

» German With a Jackhammer
Button Binding & Unbinding Empty7/28/2024, 3:42 pm by SnB@BWH

Search
 
 

Display results as :
 


Rechercher Advanced Search

November 2024
MonTueWedThuFriSatSun
    123
45678910
11121314151617
18192021222324
252627282930 

Calendar Calendar

Country Statistics
Free counters!

You are not connected. Please login or register

Button Binding & Unbinding

Go down  Message [Page 1 of 1]

1Button Binding & Unbinding Empty Button Binding & Unbinding 10/30/2014, 11:12 am

Bully@WiiPlaza

Bully@WiiPlaza
 
 

The following list contains all the default actions a player can do. Note that // starts a comment and is explanatory only.

Actions
Code:
+sprint_and_cameralock // Performs a sprint and locks the camera if enabled
+activate // Interacts
+attack // Shoots
+reload // Reloads your current gun
+frag // Throws your lethal
+stance // Changes the current stance
+speed_throw // Aims down the sights
+gostand // Stands up, jumps up
+melee // Uses the knive
weapnext // Switches the gun
+actionslot_carousel // Uses the inventory item
+smoke // Uses the tactical grenade
togglescores // Toggle scoreboard visibility

These are binded to buttons. Let's look at the console names of all Wii Remote buttons too:

Wii Remote Buttons
Code:
WII_Z // Nunchuk Z
WII_B // Wii Remote B
WII_MINUS // Wii Remote -
WII_PLUS // Wii Remote +
WII_C // Nunchuk C
WII_A // Wii Remote A
WII_DPAD_UP // Wii Remote DPAD-UP
WII_DPAD_DOWN // Wii Remote DPAD-DOWN
WII_DPAD_RIGHT // Wii Remote DPAD-RIGHT
WII_DPAD_LEFT // Wii Remote DPAD-LEFT
WII_HOME // Wii Remote Home
WII_2 // Wii Remote 2
WII_1 // Wii Remote 1

Binding

In order to bind actions to buttons we need the
Code:
bind
or
Code:
twistbind
command. The difference between those two is that bind is for button presses as long as the Wii Remote is not twisted.

Code:
bind WII_A "+sprint_and_cameralock" // Binds Wii Remote A to sprinting and eventually locking the camera
twistbind WII_PLUS "+smoke" // Binds Wii Remote twisting and pressing + to throwing a tactical grenade

Note that same buttons can be binded to multiple actions without causing problems. By default, sprinting and interacting is set to the same button:
Code:
bind WII_A "+sprint_and_cameralock"
bind WII_A "+activate"

In fact, we could also place multiple actions into the parentheses separated by semicolon:
Code:
bind WII_A "+sprint_and_cameralock; +activate"

If we now wanted to wait a certain period of time before execution continues we could use the
Code:
wait
command which takes the amount of seconds as argument:
Code:
bind WII_A "+sprint_and_cameralock; wait 0.5; +activate"

Shaking the Wii Remote or Nunchuk can also be binded to something like reloading. For this
Code:
bindgesture
is used with 2 arguments. The controller and the action.

Controller Gestures
Code:
WIIMOTE_ANY
NUNCHUK_ANY

It is popular to use Nunchuk shaking to reload so the code would look like this:

Code:
bindgesture NUNCHUK_ANY "+reload"

Unbinding

In order to delete all bindings involving a certain button
Code:
unbind
is used. The syntax is rather easy once again:
Code:
unbind WII_2 // Remove all bindings for the Wii Remote 2 button

Instead of unbinding every single button one can also use
Code:
unbindall
without any arguments.

To unbind gestures 
Code:
unbindgesture
is needed with a controller gesture argument.

Code:
unbindgesture WIIMOTE_ANY // Deletes all binded Wii Remote gestures


_________________
Button Binding & Unbinding YBjg74I

Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum