How to adjust the magazine size of blaster guns?

Hello comrades!

I am working on my zombies mod. What i need for that is to adjust the magazine size of a blaster gun from infinite (100.000) to 30.

This is the working code for the gun already, i just dont know how to get the gun magazine to 30…
blaster


blaster_zombie_magazine{
  _use:t="item_magazine"
  animchar__res:t="p08_luger_ammo_char"
  item__template:t="blaster_zombie_magazine"
  item__proto:t="blaster_zombie_magazine"
  item__locDetails:t=""
  ammo_holder__templateName:t="blaster_zombie_magazine"
  ammo_holder__ammoCount:i=30
  item__weight:r=0.2
  item__volume:r=0.1
  item__name:t="items/blaster_zombie_magazine"
  collres__res:t="p08_luger_ammo_collision"
}
blaster_zombie_gun{
  _use:t="equipable_gun"
  _use:t="pistol_ww2_preset"
  _use:t="mauser_c96"
  _use:t="space_blaster_muzzle_preset"
  _use:t="hit_effect_group_14_20mm"
  _use:t="gun_overheat"
  _use:t="gun_overheat_visual"
  _use:t="rifle_gun_aim_sound"
  _use:t="gun_with_initial_ammo"
  _use:t="paid_loot_ressuply"
  paid_loot__ressuplyCost:i=250
  animchar__res:t="blaster_zombie_char"
  item__name:t="items/blaster_pistol_germany"
  item__template:t="blaster_zombie_gun_item"
  item__weapTemplate:t="blaster_zombie_gun"
  gun__blk:t="content/enlisted/gamedata/templates/zombie/blaster_zombie.blk"
  item__proto:t="content/enlisted/gamedata/templates/zombie/blaster_zombie.blk"
  item__weapType:t="pistol"
  item__weight:r=1.2
  weap__sprintLerpFactor:r=1.0
  gun__adsSpeedMult:r=0.8
  gun__overheatReduce:r=0.05
  gun__overheatReduceOnOverheat:r=0.5
  gun__overheatPerShot:r=1.0
  gun__ignoreWeaponVelocity:b=yes
  gun__shotFreq:r=8.0
  gun__recoilAmount:r=0.35
  gun__recoilControlMult:r=0.0
  gun__recoilDirAmount:r=0.6
  gun__recoilDir:r=0.0
  gun__visualRecoilMult:r=1.0
  gun_spread__maxDeltaAngle:r=0.8
  gun_deviation__omegaRange:p2=30.0, 90.0
  gun_deviation__omegaDevInc:p2=0.1, 0.7
  gun_deviation__movementRange:p2=2.1, 4.0
  gun_deviation__movementDevInc:p2=0.0, 15.0
  gun_deviation__onShotDeviationChange:r=0.0
  gun_deviation__shotTau:r=0.1
  gun_deviation__extraDeviationTau:r=0.15
  gun_deviation__maxDeviation:r=15.0
  gun__reloadTime:r=2.0

  "gun__canPierceHPEntity:tag"{
  }

  "gun__ammoHolders:array"{
    ammoHolders:t="blaster_zombie_magazine"
  }

  "gun__shells:array"{
    shells:t="content/enlisted/gamedata/weapons/bullets/14.5x114_bs41.blk"
  }

  "gun__firingModes:array"{

    "mode:object"{
      modeType:t="burst"
      burstSize:i=1
    }
  }

  "gun__firingModeNames:array"{
    mode:t="semi_auto"
  }

  _group{
    _tags:t="sound"
    gun_sound__forceOneshot:b=yes
  }

  "gun_sound__shotPath:shared:object"{
    _tags:t="sound"
    hero:t="events/moonbase/player/weapon/laser_mg"
    enemy:t="events/moonbase/enemy/weapon/laser_mg"
  }

  "sound_irqs:shared:object"{
    _tags:t="sound"

    "reload1:object"{
      hero:t="events/moonbase/player/weapon/laser_rifle/reload1/change_ammo"
      enemy:t="enemy/weapon/rifle/svt40/reload1/change_ammo"
    }

    "reload2:object"{
      hero:t="events/moonbase/player/weapon/laser_rifle/reload2/change_ammo"
      enemy:t="enemy/weapon/rifle/svt40/reload2/change_ammo"
    }

    "reload3:object"{
      hero:t="events/moonbase/player/weapon/laser_rifle/reload3/change_ammo"
      enemy:t="enemy/weapon/rifle/svt40/reload3/change_ammo"
    }

    "reload4:object"{
      hero:t="events/moonbase/player/weapon/laser_rifle/reload4/change_ammo"
      enemy:t="enemy/weapon/rifle/svt40/reload4/change_ammo"
    }

    "boltAction:object"{
      hero:t="events/moonbase/player/weapon/laser_rifle/bolt_action"
      enemy:t="enemy/weapon/rifle/svt40/bolt_action"
    }
  }
}

blaster_zombie_gun_item{
  _use:t="item_gun"
  _use:t="blaster_zombie_gun"
  collres__res:t="blaster_zombie_collision"

  _group{
    _tags:t="server"

    "gun__initialAmmoHoldersCount:list<i>"{
      item:i=1
    }
  }
}

if you get dizzy about data, just copy the first one,

and add this inside your ussr[…] gun

  "gun__ammoHolders:array"{
    ammoHolders:t="blaster_zombie_magazine"
  }
3 Likes