def disableAvatarJump(self): """ prevent """ assert self.forceAvJumpToken is None self.forceAvJumpToken=inputState.force( "jump", 0, 'ControlManager.disableAvatarJump')
def disableControls(self): self.forceTokens = [inputState.force('jump', 0, 'ToontownControlManager.disableWASD'), inputState.force('forward', 0, 'ToontownControlManager.disableWASD'), inputState.force('turnLeft', 0, 'ToontownControlManager.disableWASD'), inputState.force('slideLeft', 0, 'ToontownControlManager.disableWASD'), inputState.force('reverse', 0, 'ToontownControlManager.disableWASD'), inputState.force('turnRight', 0, 'ToontownControlManager.disableWASD'), inputState.force('slideRight', 0, 'ToontownControlManager.disableWASD')]
def disableWASD(self): if self.wantWASD: self.forceTokens = [ inputState.force("jump", 0, 'ControlManager.disableWASD'), inputState.force("forward", 0, 'ControlManager.disableWASD'), inputState.force("turnLeft", 0, 'ControlManager.disableWASD'), inputState.force("slideLeft", 0, 'ControlManager.disableWASD'), inputState.force("reverse", 0, 'ControlManager.disableWASD'), inputState.force("turnRight", 0, 'ControlManager.disableWASD'), inputState.force("slideRight", 0, 'ControlManager.disableWASD') ] print 'disableWASD()'
def disableWASD(self): if self.wantWASD: # Forces all keys to return 0. This won't affect chat input. self.forceTokens = [ inputState.force("jump", 0, "ControlManager.disableWASD"), inputState.force("forward", 0, "ControlManager.disableWASD"), inputState.force("turnLeft", 0, "ControlManager.disableWASD"), inputState.force("slideLeft", 0, "ControlManager.disableWASD"), inputState.force("reverse", 0, "ControlManager.disableWASD"), inputState.force("turnRight", 0, "ControlManager.disableWASD"), inputState.force("slideRight", 0, "ControlManager.disableWASD"), ]
def disableWASD(self): if self.wantWASD: # Forces all keys to return 0. This won't affect chat input. self.forceTokens = [ inputState.force("jump", 0, 'ControlManager.disableWASD'), inputState.force("forward", 0, 'ControlManager.disableWASD'), inputState.force("turnLeft", 0, 'ControlManager.disableWASD'), inputState.force("slideLeft", 0, 'ControlManager.disableWASD'), inputState.force("reverse", 0, 'ControlManager.disableWASD'), inputState.force("turnRight", 0, 'ControlManager.disableWASD'), inputState.force("slideRight", 0, 'ControlManager.disableWASD') ]
def disableWASD(self): #Disables WASD for when chat is open. if self.wantWASD: self.forceTokens = [ #Forces all keys to return 0. This won't affect chat input. inputState.force("jump", 0, 'ControlManager.disableWASD'), inputState.force("forward", 0, 'ControlManager.disableWASD'), inputState.force("turnLeft", 0, 'ControlManager.disableWASD'), inputState.force("slideLeft", 0, 'ControlManager.disableWASD'), inputState.force("reverse", 0, 'ControlManager.disableWASD'), inputState.force("turnRight", 0, 'ControlManager.disableWASD'), inputState.force("slideRight", 0, 'ControlManager.disableWASD') ] print 'disableWASD()'
def disableWASD(self): # Disables WASD for when chat is open. # Forces all keys to return 0. This won't affect chat input. if self.wantWASD: self.forceTokens = [ inputState.force('jump', 0, 'ToontownControlManager.disableWASD'), inputState.force('forward', 0, 'ToontownControlManager.disableWASD'), inputState.force('turnLeft', 0, 'ToontownControlManager.disableWASD'), inputState.force('slideLeft', 0, 'ToontownControlManager.disableWASD'), inputState.force('reverse', 0, 'ToontownControlManager.disableWASD'), inputState.force('turnRight', 0, 'ToontownControlManager.disableWASD'), inputState.force('slideRight', 0, 'ToontownControlManager.disableWASD') ]
def disableWASD(self): if self.wantWASD: self.forceTokens=[ inputState.force( "jump", 0, 'ControlManager.disableWASD'), inputState.force( "forward", 0, 'ControlManager.disableWASD'), inputState.force( "turnLeft", 0, 'ControlManager.disableWASD'), inputState.force( "slideLeft", 0, 'ControlManager.disableWASD'), inputState.force( "reverse", 0, 'ControlManager.disableWASD'), inputState.force( "turnRight", 0, 'ControlManager.disableWASD'), inputState.force( "slideRight", 0, 'ControlManager.disableWASD') ] print 'disableWASD()'
def disableWASD(self):#Disables WASD for when chat is open. if self.wantWASD: self.forceTokens=[#Forces all keys to return 0. This won't affect chat input. inputState.force( "jump", 0, 'ControlManager.disableWASD'), inputState.force( "forward", 0, 'ControlManager.disableWASD'), inputState.force( "turnLeft", 0, 'ControlManager.disableWASD'), inputState.force( "slideLeft", 0, 'ControlManager.disableWASD'), inputState.force( "reverse", 0, 'ControlManager.disableWASD'), inputState.force( "turnRight", 0, 'ControlManager.disableWASD'), inputState.force( "slideRight", 0, 'ControlManager.disableWASD') ] print 'disableWASD()'
def disableAvatarJump(self): self.forceAvJumpToken = inputState.force( 'jump', 0, 'ControlManager.disableAvatarJump')