Sehlor wrote:
good work ghouly =) now can you solve the granny scaling problem ? a granny scaling filters will be so good i think =)
the old current grannyloader already supports scaling :
Code:
lib.bodygfx.lua : MakeBodyPartGfx : ...
local myscalex = forcescalex or modelinfo.scalex * gGrannyScaleFactor
local myscaley = forcescaley or modelinfo.scaley * gGrannyScaleFactor
local myscalez = forcescalez or modelinfo.scalez * gGrannyScaleFactor
if (myscalex ~= 1 or myscaley ~= 1 or myscalez ~= 1) then
partgfx:SetScale(myscalex,myscaley,myscalez)
partgfx:SetNormaliseNormals(true)
end
but the scalefactor is only loaded from the model-info files in the uo/Models/ dir so far.
So i just added a filter option to trunk/unstable, to allow overriding this :
in the file lua/filter/filter.granny.lua , for custom scaling use gGrannyFilter[400] ={scale={x=2,y=2,z=2}}
please test =)