Browse Source

added run multiplier

Dave Schuyler 21 years ago
parent
commit
cb73abbfb0
1 changed files with 2 additions and 1 deletions
  1. 2 1
      direct/src/controls/DevWalker.py

+ 2 - 1
direct/src/controls/DevWalker.py

@@ -23,6 +23,7 @@ class DevWalker(DirectObject.DirectObject):
 
     notify = DirectNotifyGlobal.directNotify.newCategory("DevWalker")
     wantDebugIndicator = base.config.GetBool('want-avatar-physics-indicator', 0)
+    runMultiplier = base.config.GetFloat('dev-run-multiplier', 4.0)
 
     # Ghost mode overrides this:
     slideName = "slide-is-disabled"
@@ -94,7 +95,7 @@ class DevWalker(DirectObject.DirectObject):
         slideRight = inputState.isSet("slideRight")
         levitateUp = inputState.isSet("levitateUp")
         levitateDown = inputState.isSet("levitateDown")
-        run = inputState.isSet("run") and 4.0 or 1.0
+        run = inputState.isSet("run") and self.runMultiplier or 1.0
         # Determine what the speeds are based on the buttons:
         self.speed=(
                 (forward and self.avatarControlForwardSpeed or