﻿debug = "On:" + Wiimote1.Exists + " Wiimote Battery Level:" + Wiimote1.Battery

var.count = 0

Key.E = Classic.A // interact 

Key.LeftShift = Classic.ZL // run

Key.LeftControl = Classic.B // Crouch

Key.X = Classic.ZR // jog  


Key.1  = Classic.Up // Use Item 1 
Key.2  = Classic.Right // Use Item 2 
Key.3  = Classic.Down // Use Item 3  
Key.4 = Classic.Left // Rifle Scope

Mouse.WheelDown = Classic.ZL // Select Items in Inventory

Mouse.RightButton = Classic.R // Block

Mouse.LeftButton  = Classic.L // Melee Attack

Key.M = Classic.Plus // map 

Key.F = Classic.Home // flashlight 

//Movement controls 


Key.W = Classic.LeftStickY < -0.4

Key.S = Classic.LeftStickY > 0.4

Key.A = Classic.LeftStickX < -0.4

Key.D = Classic.LeftStickX > 0.4

while  Classic.Y = true {
var.count++
if var.count =1
Key.E = true
wait 13ms
Key.E = false
wait 10ms
var.count=0

end if 
end while 
 
// Camera + Flight Controls

mouse.DirectInputX = mouse.DirectInputX + 30*deadzone(Classic.RightStickX)

mouse.DirectInputY = mouse.DirectInputY + 30*deadzone(Classic.RightStickY)

mouse.DirectInputX = mouse.DirectInputX

mouse.DirectInputY = mouse.DirectInputY




                      // change roll forward shortcut to shift

//Key.LeftControl = Classic.Home  // Crouch (use left stick)
//Key.LeftShift = Classic.Plus  // Walk (use left stick)
                                              // to remain on your back for attacking from the ground


// Attack Controls 



If Classic.L = true
var.count++
wiimote.rumble = true
wait 400 ms
wiimote.rumble = false
endif


Key.LeftControl = Classic.ZL // Crouch
Key.LeftShift = Classic.ZR // Select Previous

Key.9 = Classic.Plus        // toggle first and third person


Key.R = Classic.Y					// Reload
Key.E = Classic.X					// Take Item
Key.Space = Classic.B				// Jump
Key.F = Classic.A 				// Flashlight
Key.F12 = Wiimote.A                              // preset for console command

 

