I recently found and fixed the rainbow player mod, it surprisingly doesn't lag servers. I've been fiddling around with the script and I'm trying to change the colors that it changes your avi to. Can someone help? Sorry, I'm not a pro at scripting.
-Answered
Currently I have the color set to shades of black.
Current Code:
//Colored Avatar
//by boomlinde
//Edited by Tylerman
//Re-edited by Erif/Baeshra/BL_ID 19049
if (!$RainbowAvatarBindings)
{
$remapDivision[$remapCount] = "Rainbow Avatar";
$remapName[$remapCount] = "Activate/Deactivate";
$remapCmd[$remapCount] = "RainbowAvatarToggle";
$remapCount++;
$RainbowAvatarBindings=true;
}
$RainbowAvatarCount=0;
$RainbowAvatarFlag=0;
$RainbowAvatarTempPack=$pref::Avatar::PackColor;
$RainbowAvatarTempHat=$pref::Avatar::HatColor;
$RainbowAvatarTempLLeg=$pref::Avatar::LLegColor;
$RainbowAvatarTempRLeg=$pref::Avatar::RLegColor;
$RainbowAvatarTempAccent=$pref::Avatar::AccentColor;
$RainbowAvatarTempHead=$pref::Avatar::HeadColor;
$RainbowAvatarTempTorso=$pref::Avatar::TorsoColor;
$RainbowAvatarTempHip=$pref::Avatar::HipColor;
$RainbowAvatarTempLArm=$pref::Avatar::LArmColor;
$RainbowAvatarTempLHand=$pref::Avatar::LHandColor;
$RainbowAvatarTempRArm=$pref::Avatar::RArmColor;
$RainbowAvatarTempRHand=$pref::Avatar::RHandColor;
$RainbowAvatarTempSecondPack=$pref::Avatar::SecondPackColor;
function RainbowAvatarToggle(%val)
{
if(%val) {
if($RainbowAvatarFlag==0)
{
$RainbowAvatarFlag=1;
$RainbowAvatarTempPack=$pref::Avatar::PackColor;
$RainbowAvatarTempHat=$pref::Avatar::HatColor;
$RainbowAvatarTempLLeg=$pref::Avatar::LLegColor;
$RainbowAvatarTempRLeg=$pref::Avatar::RLegColor;
$RainbowAvatarTempAccent=$pref::Avatar::AccentColor;
$RainbowAvatarTempHead=$pref::Avatar::HeadColor;
$RainbowAvatarTempTorso=$pref::Avatar::TorsoColor;
$RainbowAvatarTempHip=$pref::Avatar::HipColor;
$RainbowAvatarTempLArm=$pref::Avatar::LArmColor;
$RainbowAvatarTempLHand=$pref::Avatar::LHandColor;
$RainbowAvatarTempRArm=$pref::Avatar::RArmColor;
$RainbowAvatarTempRHand=$pref::Avatar::RHandColor;
$RainbowAvatarTempSecondPack=$pref::Avatar::SecondPackColor;
RainbowAvatarLoop();
}
else if($RainbowAvatarFlag==1)
{
$RainbowAvatarFlag=0;
cancel($RainbowAvatar);
$pref::Avatar::PackColor=$RainbowAvatarTempPack;
$pref::Avatar::HatColor=$RainbowAvatarTempHat;
$pref::Avatar::LLegColor=$RainbowAvatarTempLLeg;
$pref::Avatar::RLegColor=$RainbowAvatarTempRLeg;
$pref::Avatar::AccentColor=$RainbowAvatarTempAccent;
$pref::Avatar::HeadColor=$RainbowAvatarTempHead;
$pref::Avatar::TorsoColor=$RainbowAvatarTempTorso;
$pref::Avatar::HipColor=$RainbowAvatarTempHip;
$pref::Avatar::LArmColor=$RainbowAvatarTempLArm;
$pref::Avatar::LHandColor=$RainbowAvatarTempLHand;
$pref::Avatar::RArmColor=$RainbowAvatarTempRArm;
$pref::Avatar::RHandColor=$RainbowAvatarTempRHand;
$pref::Avatar::SecondPackColor=$RainbowAvatarTempSecondPack;
clientcmdupdateprefs();
}
}
}
function rainbowreset() {
cancel($RainbowAvatar);
$pref::Avatar::PackColor=$RainbowAvatarTempPack;
$pref::Avatar::HatColor=$RainbowAvatarTempHat;
$pref::Avatar::LLegColor=$RainbowAvatarTempLLeg;
$pref::Avatar::RLegColor=$RainbowAvatarTempRLeg;
$pref::Avatar::AccentColor=$RainbowAvatarTempAccent;
$pref::Avatar::HeadColor=$RainbowAvatarTempHead;
$pref::Avatar::TorsoColor=$RainbowAvatarTempTorso;
$pref::Avatar::HipColor=$RainbowAvatarTempHip;
$pref::Avatar::LArmColor=$RainbowAvatarTempLArm;
$pref::Avatar::LHandColor=$RainbowAvatarTempLHand;
$pref::Avatar::RArmColor=$RainbowAvatarTempRArm;
$pref::Avatar::RHandColor=$RainbowAvatarTempRHand;
$pref::Avatar::SecondPackColor=$RainbowAvatarTempSecondPack;
clientcmdupdateprefs();
}
function RainbowAvatarLoop()
{
if($RainbowAvatarCount > 63) $RainbowAvatarCount=0;
//Grejer
$R=0.5+0.5*mSin($RainbowAvatarCount*3.14/16.0);
$G=0.5+0.5*mSin($RainbowAvatarCount*3.14/16.0);
$B=0.5+0.5*mSin($RainbowAvatarCount*3.14/16.0);
$pref::Avatar::PackColor=$R SPC $G SPC $B SPC "1";
$pref::Avatar::HatColor=$R SPC $G SPC $B SPC "1";
$pref::Avatar::LLegColor=$R SPC $G SPC $B SPC "1";
$pref::Avatar::RLegColor=$R SPC $G SPC $B SPC "1";
$pref::Avatar::AccentColor=$R SPC $G SPC $B SPC "1";
$pref::Avatar::HeadColor=$R SPC $G SPC $B SPC "1";
$pref::Avatar::TorsoColor=$R SPC $G SPC $B SPC "1";
$pref::Avatar::HipColor=$R SPC $G SPC $B SPC "1";
$pref::Avatar::LArmColor=$R SPC $G SPC $B SPC "1";
$pref::Avatar::LHandColor=$R SPC $G SPC $B SPC "1";
$pref::Avatar::RArmColor=$R SPC $G SPC $B SPC "1";
$pref::Avatar::RHandColor=$R SPC $G SPC $B SPC "1";
$pref::Avatar::SecondPackColor=$R SPC $G SPC $B SPC "1";
clientcmdupdateprefs();
$RainbowAvatarCount++;
$RainbowAvatar=schedule(250,0,RainbowAvatarLoop);
}