1. Trouble with the game?
    Try the troubleshooter!

    Dismiss Notice
  2. Issues with the game?
    Check the Known Issues list before reporting!

    Dismiss Notice

How to enable slo-mo on the controller?

Discussion in 'General Discussion' started by AndroidVageta, Nov 21, 2013.

  1. AndroidVageta

    AndroidVageta
    Expand Collapse

    Joined:
    Nov 4, 2013
    Messages:
    4
    Can anyone tell me how to map slow motion to the controller? Using a PS3 controller through Better DS3 (MotionJoy) and it acts as a 360 controller (that's how the PC recognizes it).

    Possibly map the D-pad "right" as the slow motion on/off.

    Any help is appreciated, thanks!

    EDIT: Found the controller bindings but none of my changes seem to work.

    I've replaced: %mm.bindCmd(%device, dpadr, "beamNGTogglePhysics();", "");

    With: %mm.bindCmd(%device, dpadr, "bullettime.set(6)", ""); (D-pad right to enable slow motion) %mm.bindCmd(%device, dpadl, "bullettime.set(100)", ""); (D-pad left to disable slow motion)
     
    #1 AndroidVageta, Nov 21, 2013
    Last edited: Nov 21, 2013
  2. Ghost187

    Ghost187
    Expand Collapse

    Joined:
    Sep 1, 2013
    Messages:
    409
    i also use motioninjoy with a ps3 pad...

    locate the 02A1045E.inputmap and try to change ONLY the MARKED in the picture of a "succsessfully edited" one:
    (youll have to arrange them to not double-bind something)

    worked for me :D hope i could help
     

    Attached Files:

    • Custom 02A1045E.inputmap.jpg
  3. Ltp0wer

    Ltp0wer
    Expand Collapse

    Joined:
    Apr 14, 2013
    Messages:
    162
    I made a modification to bullettime.lua to make it toggle with one button.
    It might help some people:

    Add below to bullettime.lua in lua/vehicle, after the slowMotion function ends on line 82.
    Code:
    local bulletToggle = false; --Add to bullettime.lua
    local function toggle()
    	bulletMode = 2
    	if bulletToggle == false then
    		bulletToggle = true
    		simulationSpeed = 7 -- Set this to whatever your prefered slowdown percent is
    	elseif bulletToggle == true then
    		bulletToggle = false
    		simulationSpeed = 100
    	end
    end
    M.toggle = toggle
    Then add this to your input map, with your appropriate button, device name, etc.
    Code:
    %mm.bindVLuaCmd(%device, "btn_l", "bullettime.toggle()", "");
    Dunno if it's the best way to do it as I'm no professional programmer, but it's simple enough.
     
  4. Kamil_

    Kamil_
    Expand Collapse

    Joined:
    Mar 17, 2013
    Messages:
    691
    Just add a parameter to the toggle function, being the slow-mo speed ;)
    You could also do it with TorqueScript, so you could put it in the inputmap, but it's fine

    Also, here's code for a hold-to-slowmo:
    Code:
    moveMap.bindVLuaCmd(%device, button2, "bullettime.set(5)", "bullettime.set(100)");
    Holding down a button works good on the wheel, I guess toggle is better on the controller :p
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice