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
» Dropped Out of College to Pursue Web Dev and Life Pursuits in General
Button Binding & Unbinding Empty5/16/2024, 8:25 am by Bully@WiiPlaza

» Bully Made It Into a BIG Video 400K Views
Button Binding & Unbinding Empty4/7/2024, 6:58 am by Bully@WiiPlaza

» Wii Play Tanks
Button Binding & Unbinding Empty3/24/2024, 2:46 pm by helpmeout

» [Bypass Paywalls] (Global) @magnolia1234 - GitLab
Button Binding & Unbinding Empty3/18/2024, 3:55 am by Seth@WiiPlaza

» [Download] Mary Shelley's Frankenhole
Button Binding & Unbinding Empty3/16/2024, 8:29 am by Seth@WiiPlaza

» Completely Custom Modded Controllers (Undetectable)
Button Binding & Unbinding Empty3/5/2024, 1:55 pm by Shadow@BWH

» (Zombies) Drink perks code?
Button Binding & Unbinding Empty3/5/2024, 1:24 pm by Shadow@BWH

» Die Rückkehr zu STEAM und WARFACE
Button Binding & Unbinding Empty3/2/2024, 3:54 am by Seth@WiiPlaza

» First person hand model change?
Button Binding & Unbinding Empty2/28/2024, 4:53 am by Ad3lamac611

» {RELEASE} Field Raider Firefox v1.72 by Seth@WiiPlaza
Button Binding & Unbinding Empty2/21/2024, 8:52 am by naxil

Search
 
 

Display results as :
 


Rechercher Advanced Search

May 2024
MonTueWedThuFriSatSun
  12345
6789101112
13141516171819
20212223242526
2728293031  

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