Jump to content

Unload All Firearms


berticus0001

Recommended Posts

Unload All Firearms

 

Got 4 pistols, 3 are junk but the fourth isn't too bad.

Shame I haven't read the book yet, there's 45 rounds in those other three. The games just teasing me now!

 

Copy the item block below to the end of your items.xml (change id="xxx" to the next free index) to add a new (fake) ammo type that will allow you to unload your guns without the need to read the books first, then replace the lines that follow in each weapon to add the unload option to your weapons. (All line numbers are from a vanilla items.xml)

The new "ammo" uses the 44 cylinder icon to show an empty chamber in your radial ammo options and will replace the bullet icon on your HUD to show the weapon is empty.

 

Unload.jpg.e97db82407f1336597f686a54fa2d267.jpg

 

<item id="xxx" name="Unload">

<property name="CustomIcon" value="44MagnumCylinder" />

<property name="CustomIconTint" value="617075" />

<property name="Meshfile" value="Items/Weapons/Ranged/Pistol/9mm_bullet" />

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

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

<property name="Stacknumber" value="500" />

<property name="Weight" value="5" />

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

<property class="Preview">

<property name="Zoom" value="18" />

<property name="Pos" value="0.1,0" />

<property name="Rot" value="10,-45,0" />

</property>

<property class="Attributes">

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

<property name="EntityDamage" value="0,0" />

</property>

<property name="ActionSkillGroup" value="Pistols"/>

<property name="CraftingSkillGroup" value="Gun Smithing"/>

</item>

 

 

Pistol Line 1014¬

<property name="Magazine_items" value="9mmBullet,Unload" />

 

44 Magnum Line 1072¬

<property name="Magazine_items" value="44MagBullet,Unload" />

 

 

Sawed-Off Shotgun Line 1130¬

<property name="Magazine_items" value="shotgunShell,Unload" />

 

 

mp5 Line 1196¬

<property name="Magazine_items" value="10mmBullet,Unload" />

 

 

AK47 Line 1262¬

<property name="Magazine_items" value="762mmBullet,Unload" />

 

 

Sniper Rifle Line 1146¬

<property name="Magazine_items" value="762mmBullet,Unload" />

 

Pump Shotgun Line 2968¬

<property name="Magazine_items" value="shotgunShell, shotgunSlug,Unload" />

 

Hunting Rifle Line 3142¬

<property name="Magazine_items" value="762mmBullet,Unload" />

 

-------------------------------------------------------------------------------

 

Extra!

-----------

 

<item id="xxx" name="EmptyTank">

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

<property name="CustomIconTint" value="617075" />

<property name="Meshfile" value="Items/Weapons/Ranged/Pistol/9mm_bullet" />

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

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

<property name="Stacknumber" value="500" />

<property name="Weight" value="5" />

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

<property class="Preview">

<property name="Zoom" value="18" />

<property name="Pos" value="0.1,0" />

<property name="Rot" value="10,-45,0" />

</property>

<property class="Attributes">

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

<property name="EntityDamage" value="0,0" />

</property>

<property name="ActionSkillGroup" value="Pistols"/>

<property name="CraftingSkillGroup" value="Gun Smithing"/>

</item>

 

--------

 

Chainsaw Line 1403¬

<property name="Magazine_items" value="gasCan,EmptyTank" />

 

 

Auger Line 1466¬

<property name="Magazine_items" value="gasCan,EmptyTank" />

 

 

NOTE: Didn't bother with the Blunderbus, if you're that desperate for 1 more round in that, my friend, you are in a bad way!!

 

berticus0001

Link to comment
Share on other sites

This works great for unloading guns. The only problem that I have is that every time you try and manual reload you stop moving for a breif moment, longer if your not quick about the release. Which is very bad if you are running for your life, such as backpedaling while shooting at a horde. Not a terrible problem if you just remember not to manual reload when in danger.

Obviously this is due to no delay on the ammo swap menu. Not sure how easy this is to fix, just thought I would put the warning out there for anyone else using this.

Link to comment
Share on other sites

  • 1 year later...

I tried "R and hold" but get nothing

 

<item id="1466" name="Unload">

<property name="CustomIcon" value="44MagnumCylinder" />

<property name="CustomIconTint" value="617075" />

<property name="Meshfile" value="Items/Weapons/Ranged/Pistol/9mm_bullet" />

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

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

<property name="Stacknumber" value="500" />

<property name="Weight" value="5" />

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

<property class="Preview">

<property name="Zoom" value="18" />

<property name="Pos" value="0.1,0" />

<property name="Rot" value="10,-45,0" />

</property>

<property class="Attributes">

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

<property name="EntityDamage" value="0,0" />

</property>

<property name="ActionSkillGroup" value="Pistols"/>

<property name="CraftingSkillGroup" value="Gun Smithing"/>

</item>

Link to comment
Share on other sites

  • 1 year later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...