Jump to content

DayZ - change name of weapon


Recommended Posts

inventory:

elseif itemName == "M4A1 CCO" or itemName == "AK-47" or itemName == "CZ 550" or itemName == "Winchester 1866" or itemName == "SPAZ-12 Combat Shotgun" or itemName == "Sawn-Off Shotgun" or itemName == "Heat-Seeking RPG" or itemName == "M136 Rocket Launcher" or itemName == "Lee Enfield" then 

weaponAmmoTable = { 
["G17 Mag"] = { 
{"G17", 22}},  
["M1911 Mag"] = { 
{"M1911", 22}},  
["M9 SD Mag"] = { 
{"M9 SD", 23}},  
["Desert Eagle Mag"] = { 
{"Desert Eagle", 24}},  
["PDW Mag"] = { 
{"PDW", 28}},  
["MP5A5 Mag"] = { 
{"MP5A5", 29}},  
["AK Mag"] = { 
{"AK-47", 30}},  
["STANAG Mag"] = { 
{"M4A1 CCO", 31}},  

pickups:

{"M4A1 CCO",356,1,90,2.4}, 

on itemTable

["STANAG Mag"] = { 
{"M4A1 CCO",31}, 
}, 

WeaponAmmoTable

elseif itemName == "M4A1 CCO" or itemName == "AK-47" or itemName == "CZ 550" or itemName == "Winchester 1866" or itemName == "SPAZ-12 Combat Shotgun" or itemName == "Sawn-Off Shotgun" or itemName == "Heat-Seeking RPG" or itemName == "M136 Rocket Launcher" or itemName == "Lee Enfield" then 
    removeBackWeaponOnDrop()     

And in the others i change "M4" TO "M4A1 CCO" - easy change, but not work.

Link to comment

I have this in survivor system:

--Weapon Property 
  
setWeaponProperty ("m4","poor","maximum_clip_ammo",30) 
setWeaponProperty ("m4","std","maximum_clip_ammo",30) 
setWeaponProperty ("m4","pro","maximum_clip_ammo",30) 

"m4" change to "m4a1 cco" ? (standard name of m4 is "M4")

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...