Jump to content

Full And Half Speed Throttle Commands


9 replies to this topic

#1 Joshua L Cohn

    Rookie

  • 5 posts

Posted 22 December 2012 - 03:51 AM

We have an all stop command. I really would like to see a full speed keyboard command, as well as a half speed one. Just a thought.

#2 Vanja

    Rookie

  • Ace Of Spades
  • 3 posts

Posted 27 December 2012 - 04:57 PM

I would like to see all percentages of trottle like 0,10,20...100% Also a reverse command would be a blessing. Also the possibility of using the mouse wheel to precisely adjust your speeed while keeping your keyboard's arms fingers on turn left and right buttons would be awesome.

#3 wickwire

    Member

  • PipPipPipPipPipPipPip
  • 741 posts
  • LocationIgnoring The Meta Since 2012

Posted 27 December 2012 - 07:16 PM

Yes, please!

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 evilC

    Member

  • PipPipPipPipPipPipPipPip
  • Legendary Founder
  • Legendary Founder
  • 1,298 posts
  • LocationLondon, UK

Posted 01 January 2013 - 07:16 AM

The only way I can think of to do this is using PPJoy or a similar programmable virtual joystick.
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 evilC

    Member

  • PipPipPipPipPipPipPipPip
  • Legendary Founder
  • Legendary Founder
  • 1,298 posts
  • LocationLondon, UK

Posted 01 January 2013 - 07:23 AM

View PostVanja, on 27 December 2012 - 04:57 PM, said:

I would like to see all percentages of trottle like 0,10,20...100% Also a reverse command would be a blessing. Also the possibility of using the mouse wheel to precisely adjust your speeed while keeping your keyboard's arms fingers on turn left and right buttons would be awesome.

Again, possible with PPJoy or maybe GlovePIE.
Same deal as above, but you control the axis with the mouse wheel.

#6 evilC

    Member

  • PipPipPipPipPipPipPipPip
  • Legendary Founder
  • Legendary Founder
  • 1,298 posts
  • LocationLondon, UK

Posted 01 January 2013 - 08:29 AM

View Postwickwire, on 27 December 2012 - 07:16 PM, said:

Yes, please!

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 evilC

    Member

  • PipPipPipPipPipPipPipPip
  • Legendary Founder
  • Legendary Founder
  • 1,298 posts
  • LocationLondon, UK

Posted 01 January 2013 - 08:58 AM

View PostVanja, on 27 December 2012 - 04:57 PM, said:

I would like to see all percentages of trottle like 0,10,20...100% Also a reverse command would be a blessing. Also the possibility of using the mouse wheel to precisely adjust your speeed while keeping your keyboard's arms fingers on turn left and right buttons would be awesome.

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 evilC

    Member

  • PipPipPipPipPipPipPipPip
  • Legendary Founder
  • Legendary Founder
  • 1,298 posts
  • LocationLondon, UK

Posted 01 January 2013 - 09:05 AM

Actually, thinking about the mouse wheel one, it would not stay in synch.
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 wickwire

    Member

  • PipPipPipPipPipPipPip
  • 741 posts
  • LocationIgnoring The Meta Since 2012

Posted 01 January 2013 - 09:35 AM

still, great work evilc!

#10 evilC

    Member

  • PipPipPipPipPipPipPipPip
  • Legendary Founder
  • Legendary Founder
  • 1,298 posts
  • LocationLondon, UK

Posted 15 January 2013 - 04:40 AM

I have now gotten virtual axes to work with MWO.
See this thread - substitute the code from that thread, with the code from this thread and it will work.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users