• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

Problem with new ammo

Antari-kun

New member
Hello. I make a new type of ammo, it is Burning 12 gauge shells. For PumpShotgun.

Its works fine its burn zombies when hit it, but it have bug i can`t fix it.

When i shot by standart shells and slugs, its work just like original (code Shells and Slugs i don`t touch)

But when i load Burning Shells, shoot and burn and load slugs/shells back and they have burn buffs just like Burning Shells. After restart game, shells and slugs go back to normal util when i load burn shells and shoot.

That what happen when i shoot with burning 12 gauge shells:

20180110223249_1.jpg

But i made 2 of types 7.62 ammo

1: Impulse 7.62 - When hit zombies they got electrical shock

2: Steel 7.62 - Double Damage

But in 7.62 all 3 types of ammo don`t have any problems an Sniper Rifle don`t have many Shock Effects when i load Impulse Bullets.

I copypaste from 7.62 Impulse to Burning Shells, and no changes, i make Burning Shells loadable to SawedOffShotgun and it have same problem.

There is code of Burning 12 Gauge Shells and Standart and Slugs.

<item id="156" name="shotgunShell">

<property name="Meshfile" value="Items/Weapons/Ranged/SawedOffPumpShotgun/shotgunShellPrefab"/>

<property name="Material" value="lead"/>

<property name="HoldType" value="21"/>

<property name="Stacknumber" value="250"/> <!-- STK ammo -->

<property name="DropScale" value="4"/>

<property name="EconomicValue" value="17"/>

<property class="Attributes">

<property name="GetQualityFromWeapon" value="true"/>

<property name="EntityDamage" value="6,10"/>

<property name="BlockDamage" value="5.4,13.5"/>

</property>

<property name="CraftingSkillGroup" value="craftSkillGuns"/>

<property name="Group" value="Ammo/Weapons"/>

</item>

<item id="157" name="shotgunSlug">

<property name="Meshfile" value="Items/Weapons/Ranged/SawedOffPumpShotgun/shotgunShellPrefab"/>

<property name="Material" value="brass"/>

<property name="HoldType" value="21"/>

<property name="Stacknumber" value="128"/> <!-- STK ammo -->

<property name="EconomicValue" value="56"/>

<property class="Attributes">

<property name="GetQualityFromWeapon" value="true"/>

<property name="EntityDamage" value="100,150"/>

<property name="BlockDamage" value="100,150"/>

</property>

<property name="CraftingSkillGroup" value="craftSkillGuns"/>

<property name="Group" value="Ammo/Weapons"/>

</item>

<item id="158" name="shellBurn">

<property name="Meshfile" value="Items/Weapons/Ranged/SawedOffPumpShotgun/shotgunShellPrefab"/>

<property name="Material" value="lead"/>

<property name="HoldType" value="21"/>

<property name="CustomIcon" value="burning12gauge" />

<property name="Stacknumber" value="150"/> <!-- STK ammo -->

<property name="DropScale" value="4"/>

<property name="EconomicValue" value="17"/>

<property class="Attributes">

<property name="GetQualityFromWeapon" value="true"/>

<property name="EntityDamage" value="6,10"/>

<property name="BlockDamage" value="5,13"/>

<property name="ApplyBuff" value="1,1" param1="burning"/>

</property>

<property name="CraftingSkillGroup" value="craftSkillGuns"/>

<property name="Group" value="Ammo/Weapons"/>

</item>

 
Back
Top