Jump to content

Ayuda Animaciones DayZ


sossa

Recommended Posts

Hola,

tengo el dayz Version 0.8

y tengo un pequeño problema, Al usar algun item Que Tenga Animacion El Cj sigue haciendo esa Animacion Y No

para de hacerlo

Alguien Sabe Donde esta el Error?

En Otro post vi que el error estaba en survivorSystem_client

pero no se en que linea Si Alguien me Pudiera Ayudar se los Agradeceria Muchisimo

  
 
 
addEventHandler("onClientResourceStart", getResourceRootElement(), function()
  dayzVersion = "ArkydiA Dayz 0.8"
  versionLabel = guiCreateLabel(1, 1, 0.3, 0.3, dayzVersion, true)
  guiSetSize(versionLabel, guiLabelGetTextExtent(versionLabel), guiLabelGetFontHeight(versionLabel), false)
  x, y = guiGetSize(versionLabel, true)
  guiSetPosition(versionLabel, 1 - x, 1 - y * 1.8, true)
  guiSetAlpha(versionLabel, 0.5)
end)
snipertxd = engineLoadTXD("mods/camuflagem.txd")
engineImportTXD(snipertxd, 287)
sniperdff = engineLoadDFF("mods/camuflagem.dff", 287)
engineReplaceModel(sniperdff, 287)
snipertxd = engineLoadTXD("mods/sniper.txd")
engineImportTXD(snipertxd, 285)
sniperdff = engineLoadDFF("mods/sniper.dff", 285)
engineReplaceModel(sniperdff, 285)
snipertxd = engineLoadTXD("mods/civilian.txd")
engineImportTXD(snipertxd, 179)
sniperdff = engineLoadDFF("mods/civilian.dff", 179)
engineReplaceModel(sniperdff, 179)
snipertxd = engineLoadTXD("mods/bandit3.txd")
engineImportTXD(snipertxd, 180)
sniperdff = engineLoadDFF("mods/bandit3.dff", 180)
engineReplaceModel(sniperdff, 180)
snipertxd = engineLoadTXD("mods/bandit2.txd")
engineImportTXD(snipertxd, 288)
sniperdff = engineLoadDFF("mods/bandit2.dff", 288)
engineReplaceModel(sniperdff, 288)
snipertxd = engineLoadTXD("mods/standart.txd")
engineImportTXD(snipertxd, 73)
sniperdff = engineLoadDFF("mods/standart.dff", 73)
engineReplaceModel(sniperdff, 73)
snipertxd = engineLoadTXD("mods/sniperkinwoman.txd")
engineImportTXD(snipertxd, 251)
sniperdff = engineLoadDFF("mods/sniperkinwoman.dff", 251)
engineReplaceModel(sniperdff, 251)
snipertxd = engineLoadTXD("mods/civilianwoman.txd")
engineImportTXD(snipertxd, 190)
sniperdff = engineLoadDFF("mods/civilianwoman.dff", 190)
engineReplaceModel(sniperdff, 190)
snipertxd = engineLoadTXD("mods/armyfemale.txd")
engineImportTXD(snipertxd, 194)
sniperdff = engineLoadDFF("mods/armyfemale.dff", 194)
engineReplaceModel(sniperdff, 194)
snipertxd = engineLoadTXD("mods/femalestandard.txd")
engineImportTXD(snipertxd, 191)
sniperdff = engineLoadDFF("mods/femalestandard.dff", 191)
engineReplaceModel(sniperdff, 191)
snipertxd = engineLoadTXD("mods/hero.txd")
engineImportTXD(snipertxd, 210)
sniperdff = engineLoadDFF("mods/hero.dff", 210)
engineReplaceModel(sniperdff, 210)
itemTXD = engineLoadTXD("items/army_clothes.txd")
engineImportTXD(itemTXD, 1247)
itemDFF = engineLoadDFF("items/army_clothes.dff", 1247)
engineReplaceModel(itemDFF, 1247)
itemTXD = engineLoadTXD("items/sniper_clothes.txd")
engineImportTXD(itemTXD, 1213)
itemDFF = engineLoadDFF("items/sniper_clothes.dff", 1213)
engineReplaceModel(itemDFF, 1213)
itemTXD = engineLoadTXD("items/civilian_clothes.txd")
engineImportTXD(itemTXD, 1241)
itemDFF = engineLoadDFF("items/civilian_clothes.dff", 1241)
engineReplaceModel(itemDFF, 1241)
itemTXD = engineLoadTXD("items/standard_clothes.txd")
engineImportTXD(itemTXD, 1577)
itemDFF = engineLoadDFF("items/standard_clothes.dff", 1577)
engineReplaceModel(itemDFF, 1577)
itemTXD = engineLoadTXD("items/beans_can.txd")
engineImportTXD(itemTXD, 2601)
itemDFF = engineLoadDFF("items/beans_can.dff", 2601)
engineReplaceModel(itemDFF, 2601)
itemTXD = engineLoadTXD("items/first_aid_kit.txd")
engineImportTXD(itemTXD, 2891)
itemDFF = engineLoadDFF("items/first_aid_kit.dff", 2891)
engineReplaceModel(itemDFF, 2891)
itemTXD = engineLoadTXD("items/heat_pack.txd")
engineImportTXD(itemTXD, 1576)
itemDFF = engineLoadDFF("items/heat_pack.dff", 1576)
engineReplaceModel(itemDFF, 1576)
itemTXD = engineLoadTXD("items/pain_killers.txd")
engineImportTXD(itemTXD, 2709)
itemDFF = engineLoadDFF("items/pain_killers.dff", 2709)
engineReplaceModel(itemDFF, 2709)
itemTXD = engineLoadTXD("items/pasta_can.txd")
engineImportTXD(itemTXD, 2770)
itemDFF = engineLoadDFF("items/pasta_can.dff", 2770)
engineReplaceModel(itemDFF, 2770)
itemTXD = engineLoadTXD("items/pistol_ammo.txd")
engineImportTXD(itemTXD, 3013)
itemDFF = engineLoadDFF("items/pistol_ammo.dff", 3013)
engineReplaceModel(itemDFF, 3013)
itemTXD = engineLoadTXD("items/shotgun_ammo.txd")
engineImportTXD(itemTXD, 2358)
itemDFF = engineLoadDFF("items/shotgun_ammo.dff", 2358)
engineReplaceModel(itemDFF, 2358)
itemTXD = engineLoadTXD("items/backpack_small.txd")
engineImportTXD(itemTXD, 3026)
itemDFF = engineLoadDFF("items/backpack_small.dff", 3026)
engineReplaceModel(itemDFF, 3026)
itemTXD = engineLoadTXD("items/smg_ammo.txd")
engineImportTXD(itemTXD, 2041)
itemDFF = engineLoadDFF("items/smg_ammo.dff", 2041)
engineReplaceModel(itemDFF, 2041)
itemTXD = engineLoadTXD("items/sniper_ammo.txd")
engineImportTXD(itemTXD, 2358)
itemDFF = engineLoadDFF("items/sniper_ammo.dff", 2358)
engineReplaceModel(itemDFF, 2358)
itemTXD = engineLoadTXD("items/soda_can.txd")
engineImportTXD(itemTXD, 2647)
itemDFF = engineLoadDFF("items/soda_can.dff", 2647)
engineReplaceModel(itemDFF, 2647)
itemTXD = engineLoadTXD("items/water_bottle.txd")
engineImportTXD(itemTXD, 2683)
itemDFF = engineLoadDFF("items/water_bottle.dff", 2683)
engineReplaceModel(itemDFF, 2683)
itemTXD = engineLoadTXD("items/assault_ammo.txd")
engineImportTXD(itemTXD, 1271)
itemDFF = engineLoadDFF("items/assault_ammo.dff", 1271)
engineReplaceModel(itemDFF, 1271)
itemTXD = engineLoadTXD("items/backpack_alice.txd")
engineImportTXD(itemTXD, 1248)
itemDFF = engineLoadDFF("items/backpack_alice.dff", 1248)
engineReplaceModel(itemDFF, 1248)
itemTXD = engineLoadTXD("items/backpack_coyote.txd")
engineImportTXD(itemTXD, 1252)
itemDFF = engineLoadDFF("items/backpack_coyote.dff", 1252)
engineReplaceModel(itemDFF, 1252)
itemTXD = engineLoadTXD("items/backpack_czech.txd")
engineImportTXD(itemTXD, 1575)
itemDFF = engineLoadDFF("items/backpack_czech.dff", 1575)
engineReplaceModel(itemDFF, 1575)
itemTXD = engineLoadTXD("items/tent.txd")
engineImportTXD(itemTXD, 3243)
itemDFF = engineLoadDFF("items/tent.dff", 3243)
engineReplaceModel(itemDFF, 3243)
itemTXD = engineLoadTXD("items/wirefence.txd")
engineImportTXD(itemTXD, 983)
itemDFF = engineLoadDFF("items/wirefence.dff", 983)
engineReplaceModel(itemDFF, 983)
weaponTXD = engineLoadTXD("items/camera.txd")
engineImportTXD(weaponTXD, 367)
weaponDFF = engineLoadDFF("items/camera.dff", 367)
engineReplaceModel(weaponDFF, 367)
weaponTXD = engineLoadTXD("items/katana.txd")
engineImportTXD(weaponTXD, 339)
weaponDFF = engineLoadDFF("items/katana.dff", 339)
engineReplaceModel(weaponDFF, 339)
function playerStatsClientSite()
  if getElementData(getLocalPlayer(), "logedin") then
    toggleControl("radar", false)
    showPlayerHudComponent("clock", false)
    showPlayerHudComponent("radar", false)
    showPlayerHudComponent("money", false)
    showPlayerHudComponent("health", false)
    showPlayerHudComponent("breath", false)
    showPlayerHudComponent("weapon", false )
    showPlayerHudComponent("ammo", false)
    if getElementData(getLocalPlayer(), "Map") >= 1 then
      toggleControl("radar", true)
    end
    if 1 <= getElementData(getLocalPlayer(), "GPS") then
      showPlayerHudComponent("radar", true)
    end
    if getElementData(getLocalPlayer(),"Watch") >= 1 then
          local hour, minutes = getTime()
          local hour, mins = getTime ()
          time = hour .. ":" .. (((mins < 10) and "0"..mins) or mins)
          dxDrawText(tostring (time), 1168, 718, 1248, 740, tocolor(255, 246, 0, 255), 1.30, "default-bold", "left", "top", false, false, true, false, false)
 end
  end
end
setTimer(playerStatsClientSite, 1000, 0)
function playerZoom(key, keyState)
  if key == "n" then
    if getElementData(getLocalPlayer(), "Night Vision Goggles") > 0 then
      if nightvision then
        nightvision = false
        setCameraGoggleEffect("normal")
        do
          local hour, minutes = getTime()
          if gameplayVariables.enablenight then
            setClientNight(hour, minutes)
          end
        end
      else
        nightvision = true
        setCameraGoggleEffect("nightvision")
        setFarClipDistance(1000)
      end
    end
  elseif key == "i" and 0 < getElementData(getLocalPlayer(), "Infrared Goggles") then
    if infaredvision then
      infaredvision = false
      setCameraGoggleEffect("normal")
      if gameplayVariables.enablenight then
        setClientNight(hour, minutes)
      end
    else
      infaredvision = true
      setCameraGoggleEffect("thermalvision")
      if gameplayVariables.enablenight then
        setClientNight(hour, minutes)
      end
    end
  end
end
bindKey("n", "down", playerZoom)
bindKey("i", "up", playerZoom)
 
function getGroundMaterial(x, y, z)
  local hit, hitX, hitY, hitZ, hitElement, normalX, normalY, normalZ, material = processLineOfSight(x, y, z, x, y, z - 10, true, false, false, true, false, false, false, false, nil)
  return material
end
function isInBuilding(x, y, z)
  local hit, hitX, hitY, hitZ, hitElement, normalX, normalY, normalZ, material = processLineOfSight(x, y, z, x, y, z + 10, true, false, false, true, false, false, false, false, nil)
  if hit then
    return true
  end
  return false
end
function isObjectAroundPlayer2(thePlayer, distance, height)
  material_value = 0
  local x, y, z = getElementPosition(thePlayer)
  for i = math.random(0, 360), 360 do
    local nx, ny = getPointFromDistanceRotation(x, y, distance, i)
    local hit, hitX, hitY, hitZ, hitElement, normalX, normalY, normalZ, material = processLineOfSight(x, y, z + height, nx, ny, z + height, true, false, false, false, false, false, false, false)
    if material == 0 then
      material_value = material_value + 1
    end
    if material_value > 40 then
      return 0, hitX, hitY, hitZ
    end
  end
  return false
end
function isObjectAroundPlayer(thePlayer, distance, height)
  local x, y, z = getElementPosition(thePlayer)
  for i = math.random(0, 360), 360 do
    local nx, ny = getPointFromDistanceRotation(x, y, distance, i)
    local hit, hitX, hitY, hitZ, hitElement, normalX, normalY, normalZ, material = processLineOfSight(x, y, z + height, nx, ny, z + height)
    if material == 0 then
      return material, hitX, hitY, hitZ
    end
  end
  return false
end
function getPointFromDistanceRotation(x, y, dist, angle)
 
Link to comment
  • Recently Browsing   0 members

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