The following list contains all the default actions a player can do. Note that // starts a comment and is explanatory only.
Actions
These are binded to buttons. Let's look at the console names of all Wii Remote buttons too:
Wii Remote Buttons
Binding
In order to bind actions to buttons we need the
Note that same buttons can be binded to multiple actions without causing problems. By default, sprinting and interacting is set to the same button:
In fact, we could also place multiple actions into the parentheses separated by semicolon:
If we now wanted to wait a certain period of time before execution continues we could use the
Shaking the Wii Remote or Nunchuk can also be binded to something like reloading. For this
Controller Gestures
It is popular to use Nunchuk shaking to reload so the code would look like this:
Unbinding
In order to delete all bindings involving a certain button
Instead of unbinding every single button one can also use
To unbind gestures
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
- Code:
twistbind
- 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
- 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
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
- 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
To unbind gestures
- Code:
unbindgesture
- Code:
unbindgesture WIIMOTE_ANY // Deletes all binded Wii Remote gestures