function wounded(obj,img_xml_ref)
if blood_var == nil then
blood_var = 0
local hud = get_hud()
hud:AddCustomStatic(img_xml_ref, true)
else
if blood_var ~= obj then
if obj >= 0 then
local hud = get_hud()
hud = hud:GetCustomStatic(img_xml_ref):wnd()
local xa = return_argb_csx(0,255,0.7,0.0,obj)
local xr = 255
local xg = 50
local xb = 75
hud:SetColor(GetARGB(xa,xr,xg,xb,obj))
blood_var = obj
end
end
end
if (obj < 0.3) then
if (effector_wound_set ~= nil) then
local eff_power = return_argb_csx(0,100,0.3,0.1,obj)/100
if eff_power > 0.01 then
level.set_pp_effector_factor(5442,eff_power)
end
else
level.add_pp_effector("critical.ppe", 5442, true)
level.set_pp_effector_factor(5442,0.01)
effector_wound_set = true
end
else
if (effector_wound_set ~= nil) then
level.remove_pp_effector(5442)
effector_wound_set = nil
end
end
end
Użytkownicy przeglądający to forum: Brak zarejestrowanych użytkowników oraz 2 gości