home *** CD-ROM | disk | FTP | other *** search
- # This script is written automatically in the config controls
- # and is really for defining key asociations with Actions
-
- #pdb.set_trace()
- ON_RELEASE=0
- ON_PRESS=1 # default
-
-
-
-
- import BInput
-
- InputManager=BInput.GetInputManager()
- InputManager.SetInputActionsSet("Default") # Me aseguro de definir las acciones en el grupo correcto
-
-
- Bladex.AddInputAction("Testa",0)
- Bladex.AddInputAction("Testb",0)
- Bladex.AddInputAction("Test2",0)
-
-
- ##def PrintTest():
- ## print "Dual key released"
- ##
- ##Bladex.AssocKey("Testa", "Keyboard", "Z", ON_RELEASE)
- ##Bladex.AssocKey("Testb", "Keyboard", "X", ON_RELEASE)
- ##
- ##Bladex.Bind2("Test2", "Testa", "Testb",500)
- ##Bladex.AddBoundFunc("Test2", PrintTest)
-
-
- ON_RELEASE=0
- ON_PRESS=1 # default
-
-
- # simple attack
- Bladex.AssocKey("Attack","Keyboard","RCtrl")
- Bladex.AssocKey("Attack Release","Keyboard","RCtrl",ON_RELEASE)
- Bladex.AssocKey("Attack","Mouse","LeftButton")
- Bladex.AssocKey("Attack Release","Mouse","LeftButton",ON_RELEASE)
-
-
- # simple block
- Bladex.AssocKey("Block","Keyboard","RAlt")
- Bladex.AssocKey("Block Release","Keyboard","RAlt",ON_RELEASE)
-
- # throws
- Bladex.AssocKey("Throw","Keyboard","Delete")
- Bladex.AssocKey("Throw Release","Keyboard","Delete", ON_RELEASE)
-
-
-
- Bladex.AssocKey("Forwards","Keyboard","Up")
- Bladex.AssocKey("FrwdDown","Keyboard","Up")
- Bladex.AssocKey("FrwdUp","Keyboard","Up",ON_RELEASE)
- Bladex.AssocKey("Backwards","Keyboard","Down")
- Bladex.AssocKey("BrwdDown","Keyboard","Down")
- Bladex.AssocKey("BrwdUp","Keyboard","Down",ON_RELEASE)
-
- Bladex.AssocKey("Swim Up","Keyboard","4")
- Bladex.AssocKey("Swim Down","Keyboard","5")
- Bladex.AssocKey("Turn Left","Keyboard","Left")
- Bladex.AssocKey("Turn Right","Keyboard","Right")
- Bladex.AssocKey("Look Up","Keyboard","O")
- Bladex.AssocKey("Look Down","Keyboard","L")
- Bladex.AssocKey("ToggleStats","Keyboard","T")
- Bladex.AssocKey("ToggleSampling","Keyboard","V")
- Bladex.AssocKey("Use","Keyboard","Enter")
- Bladex.AssocKey("SelectObj","Keyboard","Next")
- #Bladex.AssocKey("UnSelectObj","Keyboard","0")
- Bladex.AssocKey("Select Enemy","Keyboard","Numpad0")
- #Bladex.AssocKey("UnSelectEnemy","Keyboard","C")
- Bladex.AssocKey("Jump","Keyboard","Slash")
- Bladex.AssocKey("Jump","Mouse","RightButton")
- Bladex.AssocKey("Sneak","Keyboard","RShift")
- Bladex.AssocKey("Run","Keyboard","K")
- Bladex.AssocKey("Toggle Weapons","Keyboard","End")
-
- Bladex.AssocKey("Free Look","Keyboard","Space")
- Bladex.AssocKey("Next View","Keyboard","Add")
- Bladex.AssocKey("Last View","Keyboard","Subtract")
-
- #Bladex.AssocKey("Dodge","Keyboard","")
- Bladex.AssocKey("Camera Left","Keyboard","F5")
- Bladex.AssocKey("Camera Right","Keyboard","F6")
- Bladex.AssocKey("Change Camera","Keyboard","F7")
- Bladex.AssocKey("Fixed Camera","Keyboard","F8")
- Bladex.AssocKey("Camera Dist","Keyboard","F9")
- Bladex.AssocKey("Change Mov","Keyboard","P")
- #Bladex.AssocKey("Toggle Sound","Keyboard","I")
- Bladex.AssocKey("Bigger FOV","Keyboard","F11")
- Bladex.AssocKey("Smaller FOV","Keyboard","F12")
- Bladex.AssocKey("Toggle BB","Keyboard","F4")
- Bladex.AssocKey("Cycle Weapons","Keyboard","Prior")
- Bladex.AssocKey("Cycle Shields","Keyboard","Insert")
- Bladex.AssocKey("Cycle Objects","Keyboard","Begin")
- Bladex.AssocKey("Screen Shot","Keyboard","F2")
- Bladex.AssocKey("ToggleProfiling","Keyboard","F3")
-
- #Bladex.AssocKey("KillEnemy","Keyboard","")
- #Bladex.AssocKey("NextPOV","Keyboard","")
-
- Bladex.AssocKey("RotateX","Mouse","X_Axis")
- Bladex.AssocKey("RotateY","Mouse","Y_Axis")
-
- # Network Keys
- Bladex.AssocKey("Show Scorer","Keyboard","Tab")
-
-
-
-
- print "Executed DefControl.py"
-
-
- def MataEnemigoEncarado():
- Bladex.GetEntity(char.Data.selected_enemy[0]).Life=0
-
-
- Bladex.AddInputAction("Mata", 0)
- Bladex.AssocKey("Mata", "Keyboard", "M")
- Bladex.AddBoundFunc("Mata", MataEnemigoEncarado)
-