Full And Half Speed Throttle Commands
#1
Posted 22 December 2012 - 03:51 AM
#2
Posted 27 December 2012 - 04:57 PM
#3
Posted 27 December 2012 - 07:16 PM
Shift + W could be full speed
Shift + S half speed
Shift + X full speed backwards
Edited by wickwire, 29 December 2012 - 08:26 PM.
#4
Posted 01 January 2013 - 07:16 AM
Bind the keys such that it sets a virtual axis to the desired amount, then configure the game to use that virtual axis for speed control.
If you have a real throttle plugged into the game and set the speed with that, then you use the keyboard to adjust speed, it obeys the keyboard adjust and does not go back to the joystick setting until you move the stick.
Therefore, if you use a virtual stick, it will only change the speed when you set a new value for the virtual axis, so you should bge able to use normal keyboard, plus the input from the virtual stick in perfect harmony.
TLDR: As the game stands, it is perfectly possible.
Edited by evilC, 01 January 2013 - 07:18 AM.
#5
Posted 01 January 2013 - 07:23 AM
Vanja, on 27 December 2012 - 04:57 PM, said:
Again, possible with PPJoy or maybe GlovePIE.
Same deal as above, but you control the axis with the mouse wheel.
#6
Posted 01 January 2013 - 08:29 AM
wickwire, on 27 December 2012 - 07:16 PM, said:
Shift + W could be full speed
Shift + S half speed
Shift + X full speed backwards
Here is the GlovePIE / PPJoy script to do this:
var.throttle = 0 if key.Shift+W then var.throttle = 1 else if key.Shift+S then var.throttle = 0.5 else if key.Shift+X then var.throttle = -1 end ppjoy.Analog3 = var.throttle
Unfortunately, I could not get this to work with MWO. It did not recognise the joystick input in the options menu.
It could maybe be hacked in using the actionmaps file or something, When I test it with other stuff, it works fine.
#7
Posted 01 January 2013 - 08:58 AM
Vanja, on 27 December 2012 - 04:57 PM, said:
Here is the GlovePIE/PPJoy code for mouse wheel speed:
if key.shift then if mouse.WheelUp then var.throttle = 1 else if mouse.WheelDown then var.throttle = -1 end else if mouse.WheelUp then var.throttle += .1 else if mouse.WheelDown then var.throttle -= .1 else if mouse.MiddleButton then var.throttle = 0 end if var.throttle > 1 var.throttle = 1 else if var.throttle < -1 var.throttle = -1 end ppjoy.Analog3 = var.throttle
wheel up/down = +/- 10% speed.
shift+up or down = full speed forwards or backwards
MMB (Normally wheel click) = stop.
Again, unfortunately it does not work for me as MWO does not seem to recognise the virtual joystick, but if someone solves that issue you are good to go!
Edited by evilC, 01 January 2013 - 09:00 AM.
#8
Posted 01 January 2013 - 09:05 AM
ie you are at full stop and use the wheel to accelerate to 100%. Then use the normal keyboard stop and you are at 0%.
Roll the wheel down once and you would be at 90%, which is wrong.
The only way I see it working with wheel and keyboard is to unmap w and s from the game, and modify the script so that w and s alter the virtual axis by say 1%.
So like this:
if key.shift then if mouse.WheelUp then var.throttle = 1 else if mouse.WheelDown then var.throttle = -1 end else if mouse.WheelUp then var.throttle += .1 else if mouse.WheelDown then var.throttle -= .1 else if mouse.MiddleButton then var.throttle = 0 else if key.W then var.throttle += .01 else if key.S then var.throttle -= .01 end if var.throttle > 1 var.throttle = 1 else if var.throttle < -1 var.throttle = -1 end
#9
Posted 01 January 2013 - 09:35 AM
#10
Posted 15 January 2013 - 04:40 AM
See this thread - substitute the code from that thread, with the code from this thread and it will work.
3 user(s) are reading this topic
0 members, 3 guests, 0 anonymous users