Log in to reply
 

First person look left camera


  • Banned

    Is there a mod or settings for camera that stops a person from turning their head more than 90 degrees? I have a controller setup when I turn my head while driving it stays in the max angle, so when I look right i'm looking in the back seat of my car instead of the passenger. I'm looking to make the max turn 90 degrees.



  • @InfiniteQuestion
    The 'cameras.ymt' file you need to edit is uneditable at the moment afaik (unless someone has figured a way to get it back into the game in PSO format after editing), but I think I've got a pretty good workaround for ya :thumbsup: (bit of work, nothing too bad tho, especially if you use a wildcard replace to do all the lines at once etc)

    Basically, you need to edit the 'vehicles.meta' '<povCameraName>' line for each vehicle you want to change the camera for & replace it with this:

          <povCameraName>HELI_HUNTER_POV_CAMERA</povCameraName>
    

    It's the best default camera I could find for the job. Both turn angles are the same (or very close), pretty close to 90° (turn right looks pretty much dead on 90°, turn left looks the same as default).

    Caveat:
    Given it's meant to be used in a helicopter, the camera view elevates slightly when you turn to about 45°, nothing too bad, it stays horizontal, just rises up slightly.
    No clipping in the car I tested it in, but you might get some in vehicles with a very low roof, so keep an eye on that.
    Test it out & see what you think anyway :thumbsup:


  • Banned

    @a63nt-5m1th Thank you! Yes, I used codewalker and exported cameras to XML. Was a good guess, and there probably is a value, but the thing is huge and there is no direct evidence I can find for limiting the left or right. Replacing the camera was my next guess but I would have never thought about a helicopter! Gotta try this out, thank you!



  • @InfiniteQuestion
    No probs :thumbsup:
    There may well be more at play than just this, but I compared the 'default_pov_camera' & 'heli_savage_pov_camera' sections in 'cameras.ymt' against each other.
    I couldn't find the Hunter one in 'cameras.ymt', but 'heli_savage_pov_camera' also has the same 90° left/90° right turn restriction (but with a much more pronounced & less acceptable rise/elevation of camera on turn).
    Presumably, there's a chance one of these highlighted variations maybe has something to do with lateral turn restrictions (just in case you wanted to investigate further at some point, might be a place to start etc, if the game engine accepts the edited file :thumbsup:).


  • Banned

    @a63nt-5m1th Thanks for the info. Now that I know it's gonna kill me till I figure it out. Gonna do some tests.



  • @InfiniteQuestion
    Might save you a bit of time finding them :thumbsup:

    'default_pov_camera' = 'hash_3FE7388D'
    'heli_savage_pov_camera' = 'hash_93DDDE85'


  • Banned

    @a63nt-5m1th You have no clue how much time you saved, wow, how did you find those hash? I know nothing on hashes and am trying to learn as much as I can. Audio hashes.....anyways. I see a bunch of test values i'm gonna try. Also see a line about camera shake amplitude? Could this be the mystery line I need to stop camera shaking when flying? Test time.



  • @InfiniteQuestion
    I was just lucky to have collected a different partially decrypted 'cameras.ymt' (from v1.0.1365.1) that I found on the web somewhere, so had the ability to confirm the hash generated was correct (comparing other values etc).
    If you take a look at it, you'll see it happens to have the names ('default_pov_camera' etc) decrypted as well.
    I then threw the name 'default_pov_camera' into OpenIV's Hash Generator (OpenIV > Tools > Hash Generator) & converted it to hex ('Output format:', bottom left of Hash Generator box) & then removed the '0x' at the start to get '3FE7388D' & searched for that in the 'cameras.ymt.pso.xml' :thumbsup:

    As long as you know what something is called, the process above will usually work to identify & find it in a file when it's in hash form.

    I wish I could find a way to go the other way & convert hex hashes to words. That would be damn useful.


  • Banned

    @a63nt-5m1th Ya that would be useful. Seems like i can't edit ymt files? Every little change i make and game crash. Why are some files only ymt and some decoded into meta (explosions and pedpersonalities). Any way to make the game read the meta instead of the ymt?



  • @InfiniteQuestion
    Not for 'cameras.ymt' afaik. Wasn't sure, think you just confirmed it tho, just going by what I read on the net here (2 yr old post, was hoping things might have changed), 'cameras.ymt' is one of the PSO '.ymt' files that the games engine explicitly requires to be in PSO format to work, or the game won't accept it.

    What, if any other '.ymt' files are you having trouble editing & getting the game to accept?

    @InfiniteQuestion said in First person look left camera:

    camera shaking when flying

    What sort of camera shake do you have while flying?

    Like a proper juddering & shaking effect or more like the wind/flying ability thing that makes your plane/helicopter feel all wonky, like someone is moving the stick/camera around while you try to fly it straight?


  • Banned

    @a63nt-5m1th Ya sadly the only reason a ymt file is decrypted was because of OpenIv (pedpersonality.ymt). So that goes nowhere, thanks for trying. Gonna try every camera the game has, or just go with your suggestion as that does what I want.

    I like flying, like hancock flying, not noclip flying. The only way I can do it without the camera shaking is to fire off rounds on the minigun, the guns camera shake prevents the flying camera shake. I joke in order to fly it requires an act of violence. Without firing the gun, its like drunk flying. With firing the gun, and it feels normal. Trainers don't work, nor does deleting the camera shake animation.



  • @InfiniteQuestion

    So your character is flying about like Hancock & that's the only time you get the camera shake?
    What mod is it you're using to do that?


  • Banned

    @a63nt-5m1th I found the perfect camera.
    <povCameraName>SUB_POV_CAMERA</povCameraName>

    0_1598512025513_1.jpg

    I use this mod to fly.
    https://www.gta5-mods.com/scripts/nice-fly
    The camera shake in first person is horrible, third person not so bad.




  • Banned

    @a63nt-5m1th Found one problem, the character disappears when using this camera because of this line in the cameras.ymt

      <ShouldMakeFollowPedHeadInvisible value="true" />
      <ShouldMakePedInAttachSeatInvisible value="true" />
    

    Damned if I do, damned if I dont. Better than before. Thanks for the help.



  • @InfiniteQuestion
    No probs bud :thumbsup:

    Yeah, that's a bit annoying :unamused:
    I checked out the Nice Fly mod & I'm pretty sure the shake is the same as the sky diving shake.
    Guess where that is kept? :pensive: Yeah, found this in the 'cameras.ymt' I linked to earlier:

        <Item type="camShakeMetadata">
          <Name>sky_diving_shake</Name>
          <collision_4b26a279_pdk3o9>string_z2ya7ei</collision_4b26a279_pdk3o9>
          <collision_5520aae0_ljya16 value="true" />
          <collision_cf6f3d4c_8rci8dd value="false" />
          <collision_7d57e25f_gxghoc>
            <Item>
              <Component>enum_7c9153cd_b2hxh8</Component>
              <collision_e67973fb_8g05kt7>string_7m1ejh</collision_e67973fb_8g05kt7>
              <EnvelopeRef />
            </Item>
            <Item>
              <Component>enum_7c9153cd_b2hxh8</Component>
              <collision_e67973fb_8g05kt7>string_85afh8h</collision_e67973fb_8g05kt7>
              <EnvelopeRef />
            </Item>
            <Item>
              <Component>enum_2e4e3748_whkw3l</Component>
              <collision_e67973fb_8g05kt7>string_7m1eji</collision_e67973fb_8g05kt7>
              <EnvelopeRef />
            </Item>
            <Item>
              <Component>enum_470e68c8_7z6fois</Component>
              <collision_e67973fb_8g05kt7>string_7m1ejj</collision_e67973fb_8g05kt7>
              <EnvelopeRef />
            </Item>
            <Item>
              <Component>enum_cbdbd35c_m82o3p</Component>
              <collision_e67973fb_8g05kt7>string_96d2umq</collision_e67973fb_8g05kt7>
              <EnvelopeRef />
            </Item>
            <Item>
              <Component>enum_e19efee2_7as3tkl</Component>
              <collision_e67973fb_8g05kt7>string_96d2umr</collision_e67973fb_8g05kt7>
              <EnvelopeRef />
            </Item>
            <Item>
              <Component>enum_e19efee2_7as3tkl</Component>
              <collision_e67973fb_8g05kt7>string_96d2ums</collision_e67973fb_8g05kt7>
              <EnvelopeRef />
            </Item>
          </collision_7d57e25f_gxghoc>
          <Vibration value="0.000000" />
        </Item>
    

    It's a longshot, but if we can find the file that applies it, there might be a way to disable it.

    Also, don't know if you've seen this, or how well it works, but I found a couple of comments by razpotnik in the Nice Fly comments section (might save you some Minigun ammo?):

    razpotnik
    Hello! I just tried this mod, I think it is wonderful, but shaking camera during the flight is very annoying to me (especially in the first person), but I found how to stop it.

    1. Go into first person.
    2. Get all weapons.
    3. Choose minigun.
    4. Hold L-SHIFT and W and shoot once.
    5. Still hold L-SHIFT and W and rotate mouse wheel down to get grenade.
    6. Still hold L-SHIFT and W and when the grenade is shown, press SPACEBAR (jump) and then S.

    razpotnik
    A similar option, how to stop shaking camera:

    1. Go into first person.
    2. Choose assault rifle.
    3. Hold L-SHIFT and W and shoot once.
    4. Still hold L-SHIFT and press SPACEBAR (jump) and then S.

  • Banned

    @a63nt-5m1th Ya i read those comments, don't know why grenades are needed, but just firing one round of any heavy weapon will do the trick. Then you have about 4 seconds to jump into fly mode before the no shake effect wares off. Just aim, fire gun once, run and jump. Its just fun to destroy a bunch of shit to fly.



  • @InfiniteQuestion
    I think I might have a solution for your camera shake issue, you'll need to test it to confirm, but it works perfectly in my game :thumbsup:

    Instructions:

    • Grab yourself a copy of CheatEngine & install it (Note: decline the additional software when installing).
    • Run CheatEngine & GTA V (order doesn't matter & you don't need to be flying or have Hancock mode ON or anything, just having the game loaded is enough)
    • Alt+Tab out of GTA to access CheatEngine
    • In CheatEngine select 'File' tab > 'Open Process' > Select 'Grand Theft Auto V' from the list (alternatively hit the TV/Monitor symbol (top left) & select GTA V) & then hit '[Open]'
    • Check the 'Hex' tickbox right of the 'Value' box & insert '7DC36678' into the 'Value' box
    • Hit the '[First Scan]/[New Scan]' button & any values found should appear in the box on the left
    • Highlight them all & then right-click & select 'Change value of selected addresses' (Ctrl+E shortcut does the same)
    • Paste 'E410D82E' into the box that appears & then hit '[OK]'

    Your screen should then look like this (without all the red stuff obvs):

    CheatEngine

    That's it :thumbsup:, tab back into GTA V & try having a fly in Hancock mode

    Method:
    Basically, what this does is find the GTA V address values in your PC's memory for '7DC36678' ('sky_diving_shake') & change them all to 'E410D82E' ('parachuting_shake') on the fly. The only caveat, if it can be called that, is no shaking camera when also skydiving.

    Additional Info:
    As I'm sure you've figured out, this method will have a heap of other uses.
    As long as the memory address/es can be identified correctly (which can be difficult sometimes, especially for non-editable booleans, like your invisible player sub camera ones), it can pretty much allow access to any uneditable value in the game, whether the file that controls those values is editable or not.

    There is also most likely a way to save the edits & allow you to load them quickly rather than having to enter the values each time you load GTA. I've hardly ever used CheatEngine, but a CheatEngine focused Google search should be able to help there :thumbsup:

    Test it manually at first anyway & let me know how it goes :slight_smile: :thumbsup:


  • Banned

    @a63nt-5m1th Wow, you have went above and beyond helping me, thank you. I have just started using cheat engine in black ops 3 so I have a basic understanding of it, but didn't think of using it for gta. If I could remove the camera shake entirely I would, but this should work.



  • @InfiniteQuestion said in First person look left camera:

    If I could remove the camera shake entirely I would

    I think you'll be pleasantly surprised with the result :slight_smile: :thumbsup:


Log in to reply
 

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