Author Topic: Accent node name?  (Read 850 times)

What is the node name for that little feather you can put on some hats? I tried "accent" but it isn't working.


Code: [Select]
%obj.hideNode("plume");Doesn't work. Hiding the head works though.

Code: [Select]
function AIPlayer::ApplyBotParts(%this, %client) {
hideAllNodes(%this);
if(%client.hat == 1 && %client.accent == 1)
%this.unhidenode($Accent[4]);
else if($Accent[%client.accent] !$= "none")
%this.unhidenode($Accent[%client.accent]);
%this.unhidenode($Chest[%client.chest]);
if($hat[%client.hat] !$= "none")
%this.unhidenode($hat[%client.hat]);
%this.unhidenode($hip[%client.hip]);
if(%client.hip == 0) {
%this.unhidenode($LLeg[%client.lleg]);
%this.unhidenode($RLeg[%client.rleg]);
}
else {
%this.unhidenode(skirtTrimLeft);
%this.unhidenode(skirtTrimRight);
}
%this.unhidenode($LArm[%client.larm]);
%this.unhidenode($LHand[%client.lhand]);
if($pack[%client.pack] !$= "none")
%this.unhidenode($pack[%client.pack]);
%this.unhidenode($RArm[%client.rarm]);
%this.unhidenode($RHand[%client.rhand]);
if($SecondPack[%client.secondpack] !$= "none")
%this.unhidenode($SecondPack[%client.secondpack]);
}

function AIPlayer::ApplyBotColors(%this, %client) {
if(%client.hat == 1 && %client.accent == 1)
%this.setnodecolor($Accent[4], %client.accentColor);
else if($Accent[%client.accent] !$= "none")
%this.setnodecolor($Accent[%client.accent], %client.accentColor);
%this.setnodecolor($Chest[%client.chest], %client.chestColor);
if($hat[%client.hat] !$= "none")
%this.setnodecolor($hat[%client.hat], %client.hatColor);
%this.setnodecolor(headskin, %client.headColor);
if($hip[%client.hip] !$= "none")
%this.setnodecolor($hip[%client.hip], %client.hipColor);
if(%client.hip == 0) {
%this.setnodecolor($LLeg[%client.lleg], %client.llegColor);
%this.setnodecolor($RLeg[%client.rleg], %client.rlegColor);
}
else {
%this.setnodecolor(skirtTrimLeft, %client.llegColor);
%this.setnodecolor(skirtTrimRight, %client.rlegColor);
}
%this.setnodecolor($LArm[%client.larm], %client.larmColor);
%this.setnodecolor($LHand[%client.lhand], %client.lhandColor);
if($pack[%client.pack] !$= "none")
%this.setnodecolor($pack[%client.pack], %client.packColor);
%this.setnodecolor($RArm[%client.rarm], %client.rarmColor);
%this.setnodecolor($RHand[%client.rhand], %client.rhandColor);
if($SecondPack[%client.secondpack] !$= "none")
%this.setnodecolor($SecondPack[%client.secondpack], %client.secondpackColor);
%this.setdecalname(%client.decalname);
%this.setfacename(%client.facename);
}

I use the above code for making bots match a given player. You could pick out of that anything you need. I assume if you're messing with plume, you're likely messing with other player look commands, so this might help there, as well.

I use the above code for making bots match a given player. You could pick out of that anything you need. I assume if you're messing with plume, you're likely messing with other player look commands, so this might help there, as well.
Thanks. That really nudged me in the right direction. After fiddling with the code a bit and remembering some Java I got it all figured out.

Code: [Select]
for(%i = 0;$hat[%i] !$= "";%i++)
{
%obj.hideNode($hat[%i]); //Hides all hats.
}
for(%n = 0;$accent[%n] !$= "";%n++)
{
%obj.hideNode($accent[%n]); //Hides all accents.
}




Ah, okay. Sorry to bother you?