Author Topic: Keybind to switch mouse steering/keyboard steering instantly  (Read 541 times)

Would a keybind that switches from mouse steering to keyboard steering(or vice versa) be possible?

Code: [Select]
function steeringSwitch(%state)
{
    if (%state)
    {
        $Pref::Input::UseStrafeSteering = !$Pref::Input::UseStrafeSteering;
        ServerConnection.transmitSteeringPrefs();
    }
}

if (!$RemapAddedSteeringSwitch)
{
  $RemapAddedSteeringSwitch = true;
  $RemapDivision[$RemapCount] = "Steering Switch";
  $RemapCmd[$RemapCount] = "steeringSwitch";
  $RemapName[$RemapCount] = "Steering Switch";
  $RemapCount++;
}

Do I just copy/paste that into a CS file?

Yes. If it's not an add-on, then you'd need to exec it manually in the console.



Did that and I don't see anything under "controls". Zero experience in add-on making, so I'm probably missing something.

rename it server.cs
client.cs

add a namecheck.txt that says Client_Controlswitch
nvm you dont need to do this

Rename it to client.cs and add a file called description.txt

Rename it to client.cs and add a file called description.txt
since you have extentions disabled, don't bother putting the .cs and .txt parts as they are already in that format.