[REL] Fixing glitched trails
When a wrist or an ankle breaks the trails stretches a lot.
This script will fix that glitch. Place the "startup.lua" attachment to your script folder. It will replace the original but won't do any harm to your computer or the game. You need to replace the original "startup.lua" if you wish to use other scripts and still have the trails fixed.
If you need the code only:
function __disable_trails()
for __ii=0,1 do
if (get_joint_dismember(__ii,10))then
set_separate_trail_color(__ii,1,0)
end
if (get_joint_dismember(__ii,11))then
set_separate_trail_color(__ii,0,0)
end
if (get_joint_dismember(__ii,18))then
set_separate_trail_color(__ii,3,0)
end
if (get_joint_dismember(__ii,19))then
set_separate_trail_color(__ii,2,0)
end
end
end
add_hook("enter_frame","__d_t",__disable_trails)
DOWNLOAD:
Last edited by Zas; Mar 16, 2010 at 06:29 PM.