Log in to reply
 

Disabling auto-center camera - thoughts and rambling


  • MODERATOR

    So, I have a pretty simple script that uses the idea from a user (UnearthedOx) over at GTAForums to trick the game into thinking you are moving your mouse every 100 ms.

    It disables the camera from auto-centering on-foot and in-vehicle, but the catch is it only works with Mouse&Keyboard controls, so it is kinda useless lol.

    I tried a couple ideas, such as pressing keys virtually to fake the game into thinking you are using the keyboard, but it ends up messing with the gamepad controls (ex: pressing Reverse while in a vehicle will make the player start aiming).
    I also tried messing around with the GameplayCamera's relative heading, but the best I can do is lock the camera direction to face a certain side of the vehicle, rather than a certain direction relative to the world itself. So I scrapped that code in the end.

    If anyone is still interested in using it, the code is here; you can just place it into a text file in your scripts folder and rename the extension to .cs.

    But if anyone is able to figure this out, maybe using the RelativeHeading function and some math (and preferably not memory editing, which will probably require updating every game update), that would be cool :D

    TL;DR issues with getting this to work for gamepads. If anyone is interested in working it out, feel free!



  • YES!!! I needed this for my motion blur script, thanks so much!!!!



  • @stillhere
    "I tried a couple ideas, such as pressing keys virtually to fake the game into thinking you are using the keyboard, but it ends up messing with the gamepad controls (ex: pressing Reverse while in a vehicle will make the player start aiming)"

    Now please continue this mega-useful mod because i find an easy way to totally fix this aiming bug:
    you need just set "Alternate" in gamepad settings of game menu!

    I always play ONLY mouse+gamepad simultaneously. It's my topic:
    http://gtaforums.com/topic/871081-new-playing-method-and-bug-of-using-mousegamepad-simultaneously


  • MODERATOR

    @big-dude glad you've found a use for it! I'm primarily a gamepad user for driving controls, and Extended Camera Settings already works well for me, so I don't see much point in continuing this. Actually I still have auto-center enabled 99% of the time lol



  • @stillhere why don't you use mouse and gamepad in two different hands like i offered in topic higher? It's easy and give you all advantages of every input device simultaneously, any mouse and gamepad supported


  • MODERATOR

    @big-dude I don't have a need, I'm comfortable as it is :smiley:


Log in to reply
 

Looks like your connection to GTA5-Mods.com Forums was lost, please wait while we try to reconnect.