Announcement

Collapse
No announcement yet.

Alias to toggle mouse speed. What am i doing wrong?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Alias to toggle mouse speed. What am i doing wrong?

    Trying to set up this mouse sensitivity toggle. I know the alias is correct but i probably got something else wrong.

    Aliases[..]=(Command="setSensitivity 1.500000 | set input x nsens",Alias="lsens")
    Aliases[..]=(Command="setSensitivity 2.500000 | set input x lsens",Alias="nsens")

    Now if i bind X=nsens then it should toggle sensitivity but it doesnt. I'm thinking "SetSensitivity" is probably the wrong command.

    Any ideas?

    #2
    Re: Alias to toggle mouse speed. What am i doing wrong?

    This should do it for ya

    Aliases[..]=(Command="set engine.playerinput MouseSensitivity 1.500000 | set input x nsens",Alias="lsens")
    Aliases[..]=(Command="set engine.playerinput MouseSensitivity 2.500000 | set input x lsens",Alias="nsens")

    If there's a simpler way, someone will probably post it.
    This way has worked for me online as well as off

    Comment


      #3
      Thanks Kel. That worked. Where did you get the information of the engine.playerinput part? I googled for binds / aliases but didn't find that.

      Comment


        #4
        Just look in your user/ut2004.ini basically it's:

        [Section]
        Property=Value

        Example:

        [Engine.PlayerInput]
        MouseSensitivity=3.000000

        Setting it:

        set Engine.PlayerInput MouseSensitivity 3.000000

        Getting it:

        set Engine.PlayerInput MouseSensitivity

        Value will be echoed to the console.

        Thats realy all you need to know to make binds that change stuff, not sure if these things are blocked by anti tcc, probably are.

        Comment


          #5
          Ah ofcourse. I was thinking too far. Thanks

          Comment


            #6
            Originally posted by I_LoveToKill
            Just look in your user/ut2004.ini basically it's:

            [Section]
            Property=Value

            Example:

            [Engine.PlayerInput]
            MouseSensitivity=3.000000

            Setting it:

            set Engine.PlayerInput MouseSensitivity 3.000000

            Getting it:

            set Engine.PlayerInput MouseSensitivity

            Value will be echoed to the console.

            Thats realy all you need to know to make binds that change stuff, not sure if these things are blocked by anti tcc, probably are.
            What he said is correct, but when you want to change a property from the Engine section, you don't have to add it to the set command, because it's the default section. That's also why set input works.

            Comment


              #7
              Ya, you did look too far The ini's have all the information for binding n stuff, and if you run a server, they have the information for admin setting commands.

              Comment


                #8
                Originally posted by I_LoveToKill
                not sure if these things are blocked by anti tcc, probably are.
                I've never had trouble with it, I play DM most of the time on a server with AntiTCC, updated to the latest version, etc.

                I use this:
                Code:
                KeyA=set PlayerInput MouseSensitivity 1.1
                KeyB=set PlayerInput MouseSensitivity 2.25

                Comment


                  #9
                  Naw, AntiTCC should allow binds like that.

                  Comment

                  Working...
                  X