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)
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 hope i could help
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.
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