dragonslayer770
Refugee
high all, I'm trying to add in some custom ammo like exploding 9mm. and trying to change the hunting rifle's magazine size to 3
I have the ammo in but cant get it to load in the gun this is what im using. does these need to go at the top of the xml?
got the ammo to load but when I spawned in a zombie I couldn't move, I died and I could move again but my fire Butten was reload and no ammo was being loaded. here is my ammo code.
and the ammo
thanks for any help.
I have the ammo in but cant get it to load in the gun this is what im using. does these need to go at the top of the xml?
Code:
<set xpath="/items/item[@name='gunHuntingRifle']/property[@class='Action1']/passive_effect[@name='MagazineSize'][@value='1']/@value">3</set>
Code:
<set xpath="/items/item/property[@class='Action0']/property[@name='Magazine_items'][@value='ammo9mmBullet,ammo9mmBulletSteel']/@value">ammo9mmBullet,ammo9mmBulletSteel,ammo9mmBulletExp</set>
and the ammo
Code:
<item name="ammo9mmBulletExp">
<property name="DisplayType" value="ammoBullet"/>
<property name="HoldType" value="45"/>
<property name="Meshfile" value="Items/Misc/sackPrefab"/>
<property name="DropMeshfile" value="Items/Misc/sack_droppedPrefab"/>
<property name="Material" value="Mbrass"/>
<property name="Stacknumber" value="500"/> <!-- STK ammo -->
<property name="CraftingSkillGroup" value="craftSkillGuns"/>
<property name="EconomicValue" value="14"/>
<property name="Group" value="Ammo/Weapons"/>
<property class="Action1">
<property name="Class" value="Projectile"/>
<property name="Gravity" value="-7"/>
<property name="Explosion.ParticleIndex" value="4"/> <!-- which Prefab/particle is used -->
<property name="Explosion.RadiusBlocks" value="2"/> <!-- damage radius for blocks -->
<property name="Explosion.BlockDamage" value="75"/> <!-- damage for blocks in the center of the explosion -->
<property name="Explosion.RadiusEntities" value="2"/> <!-- damage radius for entities -->
<property name="Explosion.EntityDamage" value="50"/> <!-- damage for entities in the center of the explosion. Zombies take 2x this damage. -->
<property name="Explosion.DamageBonus.stone" value="15"/>
<property name="Explosion.DamageBonus.metal" value="7"/>
<property name="Explosion.DamageBonus.earth" value="25"/> <!-- should work? -->
<property name="Explosion.DamageBonus.wood" value="35"/>
<property name="Explosion.DamageBonus.water" value="0"/>
</property>
<property name="CraftingSkillGroup" value="craftSkillScience"/>
<property name="Group" value="Ammo/Weapons"/>
<effect_group name="Base Effects" tiered="false">
<passive_effect name="EntityDamage" operation="base_set" value="25"/>
<passive_effect name="BlockDamage" operation="base_set" value="7"/>
<passive_effect name="ProjectileVelocity" operation="base_set" value="60"/>
<display_value name="ExRadius" value="5" />
</effect_group>
</item>