Log in to reply
 

What file controls the regular sniper rifle's scope and aim settings?



  • I want to remove the scope from a sniper rifle mod and have it aim like a normal rifle. I saw another user here already accomplished this a year ago with the regular sniper rifle (the same rifle the mod replaces) and before him someone else ( a now banned user) did it with the marksman rifle by editing like two lines in the marksmanrifle.meta file(s). Couldn't find a meta file for the regular sniper though so a little confused



  • @welp
    Default sniper is in this 'weapons.meta' here:

    ...\mods\update\update.rpf\common\data\ai\weapons.meta

    If you search for:

              <Name>WEAPON_SNIPERRIFLE</Name>
    

    you'll find it :thumbsup:

    Then if you scroll down a bit & find this:

              <DefaultCameraHash>SNIPER_LOW_ZOOM_AIM_CAMERA</DefaultCameraHash>
              <CoverCameraHash>MELEE_AIM_IN_COVER_CAMERA</CoverCameraHash>
              <CoverReadyToFireCameraHash>SNIPER_LOW_ZOOM_AIM_CAMERA</CoverReadyToFireCameraHash>
              <RunAndGunCameraHash>DEFAULT_THIRD_PERSON_PED_RUN_AND_GUN_CAMERA</RunAndGunCameraHash>
    

    & change it to this:

              <DefaultCameraHash>DEFAULT_THIRD_PERSON_PED_AIM_CAMERA</DefaultCameraHash>
              <CoverCameraHash>DEFAULT_THIRD_PERSON_PED_AIM_IN_COVER_CAMERA</CoverCameraHash>
              <CoverReadyToFireCameraHash />
              <RunAndGunCameraHash>DEFAULT_THIRD_PERSON_PED_RUN_AND_GUN_CAMERA</RunAndGunCameraHash>
              <CinematicShootingCameraHash>DEFAULT_THIRD_PERSON_PED_CINEMATIC_SHOOTING_CAMERA</CinematicShootingCameraHash>
    

    & then scroll even further down to find this:

                <Item>
                  <AttachBone>WAPScop</AttachBone>
                  <Components>
                    <Item>
                      <Name>COMPONENT_AT_SCOPE_LARGE</Name>
                      <Default value="true" />
                    </Item>
                    <Item>
                      <Name>COMPONENT_AT_SCOPE_MAX</Name>
                      <Default value="false" />
                    </Item>
                  </Components>
                </Item>
    

    & change it to this:

                <Item>
                  <AttachBone>WAPScop</AttachBone>
                  <Components>
                    <Item>
                      <Name>COMPONENT_AT_SCOPE_LARGE</Name>
                      <Default value="false" />
                    </Item>
                    <Item>
                      <Name>COMPONENT_AT_SCOPE_MAX</Name>
                      <Default value="false" />
                    </Item>
                  </Components>
                </Item>
    

    you will get this:

    No scope sniper 1st

    No scope sniper 3rd

    I hope that's what you are looking for :thumbsup:



  • @a63nt-5m1th Thank You!


Log in to reply
 

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