Jump to content

anime Dayz Problem Again


Dimmitry007

Recommended Posts

hey guys i have bought decompiled for my dayz server but the anime problem is still on when i eat or use medkit or any thing ;/

so here's my SurvivorSystem.lua

  
---- DeCompiled Dayz 0.6.0 ----------------------
-- Bought from Ahfoof99---------------------
-----------------------------------------------------
-----------------------------------------------------
-----------------------------------------------------
 
local vehicleDataTableForTent = {
  {"Wood Pile"},
  {"Bandage"},
  {
    "Bouteille"
  },
  {"Pasta Can"},
  {"Beans Can"},
  {"Burger"},
  {
    "Box of Matches"
  },
  {"M911 Mag"},
  {"M9 SD Mag"},
  {
    "Desert Eagle Mag"
  },
  {"M911"},
  {"M9 SD"},
  {
    "Winchester 1866"
  },
  {"PDW"},
  {
    "Hunting Knife"
  },
  {"Morphine"},
  {"Hatchet"},
  {"Pizza"},
  {
    "Soda Bottle"
  },
  {
    "Empty Gas Canister"
  },
  {
    "Full Gas Canister"
  },
  {"Roadflare"},
  {"Milk"},
  {"PDW Mag"},
  {"MP5A5 Mag"},
  {"AK Mag"},
  {"M4 Mag"},
  {"Tear Gas"},
  {"Grenade"},
  {
    "Desert Eagle"
  },
  {
    "Sawn-Off Shotgun"
  },
  {
    "SPAZ-12 Combat Shotgun"
  },
  {"MP5A5"},
  {"Watch"},
  {"Medic Kit"},
  {"Heat Pack"},
  {
    "Lee Enfield"
  },
  {"AK-47"},
  {"Blood Bag"},
  {"GPS"},
  {"Map"},
  {"Toolbox"},
  {"Wire Fence"},
  {"Tire"},
  {"Engine"},
  {"Tank Parts"},
  {"CZ 550 Mag"},
  {
    "Lee Enfield Mag"
  },
  {"M4"},
  {"CZ 550"},
  {"Satchel"},
  {
    "Infrared Goggles"
  },
  {
    "Night Vision Goggles"
  },
  {"Tent"},
  {"Raw Meat"},
  {
    "Cooked Meat"
  },
  {
    "Camouflage[M] Clothing"
  },
  {
    "Ghillie[M] Suit"
  },
  {
    "Civilian[M] Clothing"
  },
  {
    "Survivor[M] Clothing"
  },
  {
    "Survivor[F] Clothing"
  },
  {
    "Civilian[F] Clothing"
  },
  {
    "Camouflage[F] Clothing"
  },
  {
    "Ghillie[F] Suit"
  },
  {"Painkiller"},
  {"Binoculars"},
  {
    "Empty Water Bottle"
  },
  {
    "Empty Soda Cans"
  },
  {
    "Scruffy Burgers"
  },
  {"1866 Slug"},
  {"2Rnd. Slug"},
  {
    "SPAZ-12 Pellet"
  },
  {
    "Assault Pack (ACU)"
  },
  {"Alice Pack"},
  {
    "Radio Device"
  },
  {
    "Coyote Backpack"
  },
  {
    "Czech Backpack"
  },
  {
    "Baseball Bat"
  },
  {"Shovel"},
  {"Golf Club"}
}
weaponAmmoTable = {
  ["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}
  },
  ["M4 Mag"] = {
    {"M4", 31}
  },
  ["1866 Slug"] = {
    {
      "Winchester 1866",
      25
    }
  },
  ["2Rnd. Slug"] = {
    {
      "Sawn-Off Shotgun",
      26
    }
  },
  ["SPAZ-12 Pellet"] = {
    {
      "SPAZ-12 Combat Shotgun",
      27
    }
  },
  ["CZ 550 Mag"] = {
    {"CZ 550", 34}
  },
  ["Lee Enfield Mag"] = {
    {
      "Lee Enfield",
      33
    }
  },
  ["M136 Rocket"] = {
    {
      "Heat-Seeking RPG",
      36
    },
    {
      "M136 Rocket Launcher",
      35
    }
  },
  ["others"] = {
    {"Parachute", 46},
    {"Satchel", 39},
    {"Tear Gas", 17},
    {"Grenade", 16},
    {"Hunting Knife", 4},
    {"Hatchet", 8},
    {"Binoculars", 43},
    {"Baseball Bat", 5},
    {"Shovel", 6},
    {"Golf Club", 2},
    {"Radio Device", 1}
  }
}
function getWeaponAmmoType(weaponName, notOthers)
  if not notOthers then
    for i, weaponData in ipairs(weaponAmmoTable.others) do
      if weaponName == weaponData[1] then
        return weaponData[1], weaponData[2]
      end
    end
  end
  for i, weaponData in ipairs(weaponAmmoTable["M1911 Mag"]) do
    if weaponName == weaponData[1] then
      return "M1911 Mag", weaponData[2]
    end
  end
  for i, weaponData in ipairs(weaponAmmoTable["M9 SD Mag"]) do
    if weaponName == weaponData[1] then
      return "M9 SD Mag", weaponData[2]
    end
  end
  for i, weaponData in ipairs(weaponAmmoTable["Desert Eagle Mag"]) do
    if weaponName == weaponData[1] then
     
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...