



r_populik napisał(a):Jak wziąłeś te bronie z ogsm_weapons_pack to po prostu ściągnij sobie cały ten mod - będziesz miał ltx-y. A co do oryginalnych plików - jak miałeś wypakowaną gamedatę raz ale zanieczyściłeś ją, to wypakuj sobie drugi raz.




















--[[
local item_id = item:id()
local item_in_slot = npc:item_in_slot(2)
if item_in_slot ~= nil and item_in_slot:id() == item_id then
--' Ňóň íŕäî óěĺíüřčňü ęîíäčří îđóćč˙
item:set_condition((math.random(40)+40)/100)
return
end
item_in_slot = npc:item_in_slot(3)
if item_in_slot ~= nil and item_in_slot:id() == item_id then
--' Ňóň íŕäî óěĺíüřčňü ęîíäčří îđóćč˙
item:set_condition((math.random(40)+40)/100)
return
end
-- npc:mark_item_dropped(item)
local item_in_slot = npc:item_in_slot(4)
if item_in_slot ~= nil and item_in_slot:id() == item_id then
return
end
if not npc:marked_dropped(item) then
-- printf("releasing object ["..item:name().."]")
alife():release(alife():object(item:id()), true)
end
]]
end
function set_weapon_drop_condition(item)
local condition = (math.random(40)+40)/100
--printf("condition [%s]", tostring(condition))
item:set_condition(condition)
end--[[
local item_id = item:id()
local item_in_slot = npc:item_in_slot(2)
if item_in_slot ~= nil and item_in_slot:id() == item_id then
--' Ňóň íŕäî óěĺíüřčňü ęîíäčří îđóćč˙
item:set_condition((math.random(15)+5)/100)
return
end
item_in_slot = npc:item_in_slot(3)
if item_in_slot ~= nil and item_in_slot:id() == item_id then
--' Ňóň íŕäî óěĺíüřčňü ęîíäčří îđóćč˙
item:set_condition((math.random(15)+5)/100)
return
end
-- npc:mark_item_dropped(item)
local item_in_slot = npc:item_in_slot(4)
if item_in_slot ~= nil and item_in_slot:id() == item_id then
return
end
if not npc:marked_dropped(item) then
-- printf("releasing object ["..item:name().."]")
alife():release(alife():object(item:id()), true)
end
]]
end
function set_weapon_drop_condition(item)
local condition = (math.random(15)+5)/100
--printf("condition [%s]", tostring(condition))
item:set_condition(condition)
end
kasjusz21996.











Użytkownicy przeglądający to forum: Brak zarejestrowanych użytkowników oraz 0 gości