SeppelSchlamm
Refugee
- Version
- v2.1 & V2.0
- Platform
- Windows
With the following line inside the items.xml of my mod I'm changing the PipeMachinneGun to use 9mm ammo and being a SMG like the Model it suggests (that small magazine would never fit a 7.63 x39 Round in but 9mm should fit fine
)
Similar To that I also change the LeverAction to use .44Mag and it das have the same bug.
Even though the Game UI shows the correct calculated Entity Damage, when I shoot a Zombie, I only do 1 HP Damage to the Zombie instead of 76,5 like shown in the Game UI.
You can find the whole mod on my GitHub if you want to reproduce it.

XML:
<setattribute xpath="/items/item[@name='gunMGT0PipeMachineGun']/effect_group/passive_effect[@name='MagazineSize' and @operation='base_set']" name="value">25</setattribute>
<!-- Why only 1 DMG with 9mmAmmo ??? -->
<setattribute xpath="/items/item[@name='gunMGT0PipeMachineGun']/property/property[@name='Magazine_items']" name="value">ammo9mmBulletBall,ammo9mmBulletHP,ammo9mmBulletAP,ammo9mmBulletFMJINC</setattribute>
<append xpath="/items/item[@name='gunMGT0PipeMachineGun']/effect_group">
<passive_effect name="EntityDamage" operation="perc_add" value="-.13" tags="perkMachineGunner"/>
</append>
<setattribute xpath="/items/item[@name='gunMGT0PipeMachineGun']/effect_group/passive_effect[@name='RoundsPerMinute' and @operation='base_set']" name="value">450</setattribute>
<setattribute xpath="/items/item[@name='gunMGT0PipeMachineGun']/effect_group/passive_effect[@name='ReloadSpeedMultiplier']" name="value">1,1.33</setattribute>
<setattribute xpath="/items/item[@name='gunMGT0PipeMachineGun']/effect_group/passive_effect[@name='ReloadSpeedMultiplier']" name="tier">1,6</setattribute>
Similar To that I also change the LeverAction to use .44Mag and it das have the same bug.
Even though the Game UI shows the correct calculated Entity Damage, when I shoot a Zombie, I only do 1 HP Damage to the Zombie instead of 76,5 like shown in the Game UI.
You can find the whole mod on my GitHub if you want to reproduce it.
- Reproduction Steps
- Replace the Magazine Items of a Gun using the setattribute-modlet