0 of 0

File information

Last updated

Original upload

Created by

yakuzadeso

Uploaded by

yakuzadeso

Virus scan

Safe to use

Tags for this mod

71 comments

  1. GODKADE
    GODKADE
    • supporter
    • 4 kudos
    Locked
    Sticky
    Work's great!

    /// 2.0
  2. SnowBunnyDaemon
    SnowBunnyDaemon
    • member
    • 0 kudos
    Trying to use this with Dark Future and I'm not getting great results.

    I've tried editing this files lua file to my desired ammo caps, I've also tried turning on and off ammo weight within dark future but I think there's a conflict somewhere.

    I love that dark future can make ammo a physical object again, like it used to be, but trying to find a method where it all works together nicely, or even works at all. 

    If anyone else has this mod combo or has any other input I'll keep toying with it. 
    1. TheRealGibbon
      TheRealGibbon
      • premium
      • 34 kudos
      What isn't working? I'm running this mod and Dark Future together no problems.
      Though, I found through comments on HC22 mod page that the values can become offset from 100 in some circumstances. Take my values as an example:

      MaxHandgunAmmo = -36
      MaxRifleAmmo = -14
      MaxShotgunAmmo = -84
      MaxSniperRifleAmmo = -92

      This gives me:


      • Pistol: 64
      • Rifle: 86
      • Shotgun: 16
      • Sniper: 8
  3. KILLEXLIN
    KILLEXLIN
    • member
    • 0 kudos
    I try this with Survival System

    刪除r6/tweaks/AmmoUtils.yaml這檔案,在Survival System 設定中,"可購買彈藥數量"將會沒有用處。(建議設定0)

    而這個mod"init.lua"裡面的數值,將會取代AmmoUtils.yaml(無論在撿拾還是購買上)的作用。

    但由於Survival System預設子彈是100,兩者互相影響下,init.lua數值+100=真實持有數

    For example:
    MaxHandgunAmmo you want 200. Set 100=200)
    MaxSniperRifleAmmo you want 100.  Set 0=100)


    Patch 2.13
    1. demonslayr763
      demonslayr763
      • supporter
      • 1 kudos
      Can confirm this worked for me. In English:

      Delete the file r6/tweaks/AmmoUtils.yaml from the mod. Custom max ammo will take its place.

      I believe it will break any changes the survival system mod made to ammo such as vendor availability and price changes. YMMV. As far as setting the ammo to account for the 100 that is subtracted, just have your init.lua look like this:

      -- The values on the left are the values you want to set as the max ammo.
      -- Subtracting 100 from all makes it work properly.

      MaxHandgunAmmo = 45-100

      MaxRifleAmmo = 180-100

      MaxShotgunAmmo = 40-100

      MaxSniperRifleAmmo = 25-100

      That way you don't have to do any math.
    2. KILLEXLIN
      KILLEXLIN
      • member
      • 0 kudos
      Wow 我不知道還可以這樣

      謝謝你的補充👍
    3. Raidley
      Raidley
      • premium
      • 5 kudos
      Thank you! Was wondering why all my maximum ammo counts were off!
    4. 1992toyotaCamry
      1992toyotaCamry
      • supporter
      • 3 kudos
      thank you! this is still saving people.

      To keep more of the survival system settings, you only need to edit the following lines from the above .yaml:

      #Items.AmmoQuantity:
      #  $type: gamedataConstantStatModifier_Record
      #  value: 9999999
      #  modifierType: Additive
      #  statType: BaseStats.Quantity


      and for each of the Ammo.[weapon type] entries:

      #  statModifiers:
      # - Items.AmmoQuantity


      (adding a # at the beginning of the line disables it, you can alternatively delete the above lines entirely)
  4. Knottypine
    Knottypine
    • member
    • 1 kudos
    While it works in 2.21, inventory (specifically the backpack) and venders don't have the up-to-date ammo count.  For example, currently in my game I spent a few shotgun shells and at the moment have 584 rounds.  However, my inventory lists my shotgun ammo count at 591, which is what it was when I loaded my game.  The count will fix itself after a reload, but only until it changes again.  On the main inventory screen and in the crafting menu the ammo count is correct.
  5. qqqcd
    qqqcd
    • member
    • 0 kudos
    work in 2.21
  6. Shadlyr
    Shadlyr
    • member
    • 0 kudos
    Work's on 2.2
    1. Nerovox
      Nerovox
      • premium
      • 1 kudos
      Can confirm, working great for me as well on 2.2!
    2. GoalCreeper
      GoalCreeper
      • member
      • 0 kudos
      Me as well, the mod works with the game version 2.21 GOG.
  7. ansellx
    ansellx
    • member
    • 1 kudos
    i tried to reduce the values but nothing changes in game, everything is on the right install path
  8. Valour549
    Valour549
    • premium
    • 84 kudos
    Default vanilla values

    Max ammo: 1000 (handgun), 1000 (heavy), 200 (shotgun), 175 (sniper)

    Ammo per craft: 90 (handgun), 90 (heavy), 40 (shotgun), 20 (sniper)
  9. xCrYox
    xCrYox
    • member
    • 1 kudos
    MaxHandgunAmmo = -52 -- mag size 48 
    MaxRifleAmmo = -4 -- mag size 96
    MaxShotgunAmmo = -76 -- mag size 24
    MaxSniperRifleAmmo = -84 --  mag size 16
    --------------------------------------------------------------------------------
    registerForEvent("onInit", function()
        --
        TweakDB:SetFlat("Ammo.HandgunAmmo_inline0.value", MaxHandgunAmmo)
        TweakDB:SetFlat("Ammo.RifleAmmo_inline0.value",  MaxRifleAmmo)
        TweakDB:SetFlat("Ammo.ShotgunAmmo_inline0.value",  MaxShotgunAmmo)
        TweakDB:SetFlat("Ammo.SniperRifleAmmo_inline0.value",  MaxSniperRifleAmmo)

        TweakDB:SetFlat("Ammo.RecipeHandgunAmmo_inline0.amount",  24) -- crafting ammo amount reduction
        TweakDB:SetFlat("Ammo.RecipeRifleAmmo_inline0.amount",  48)
        TweakDB:SetFlat("Ammo.RecipeShotgunAmmo_inline0.amount",  12)
        TweakDB:SetFlat("Ammo.RecipeSniperRifleAmmo_inline0.amount",  8)
    end)

    This does seem to fix problem with ammo crafting. 
    1. yakuzadeso
      yakuzadeso
      • premium
      • 486 kudos
      Issue with ammo crafting?
    2. xCrYox
      xCrYox
      • member
      • 1 kudos
      If you want lower maximum of magazines. Default is about 80 ammo per craft. So even with your maximum at 48, it will add more i think. Not sure now, i could not craft ammo or it goes over limit.
    3. Inv3rseCipher
      Inv3rseCipher
      • supporter
      • 0 kudos
      Same.

      If I modify TweakDB:SetFlat("Ammo.RecipeHandgunAmmo_inline0.amount", 24)to give 24 handgun ammo when crafting a single box, the game still gives the default 90 bullets when crafting a single box; it doesn’t get modified for some reason.

      The only thing that changes is the slider, which displays the correct number of boxes based on the max ammo limit you have set. Still, even here, it gives the default 90 bullets instead of the modified amount.

      If anyone could help fix this problem that would be greatly appreciated
    4. pianistamoeba
      pianistamoeba
      • member
      • 0 kudos
      Has anyone found out how to adjust the crafting amounts? Been hitting my head to brick wall for a couple of hours trying to figure it out. I suspect it's somehow connected to the ammo loot table minimums (they correllate with the crafting stack values, i.e. 90,90,40,20), but can't get it to work.

      Would be greatly appreciated indeed if someone more experienced in CP2077 modding would chime in.
    5. felixformia
      felixformia
      • supporter
      • 2 kudos
      Worked for me. Thanks.
  10. demonslayr763
    demonslayr763
    • supporter
    • 1 kudos
    Such a small mod, but has a huge impact on how I play the game. One of my favs.
  11. dillinger111
    dillinger111
    • member
    • 0 kudos
    So is there any new workaround to get this mod working with Survival System? methods posted in comments below, do not work anymore
    1. demonslayr763
      demonslayr763
      • supporter
      • 1 kudos
      see my reply above, that should work