Page 1 of 1

Question regarding Multiskins

Posted: Wed Oct 13, 2010 2:17 am
by ShinDarkfox
Okay, say I have a player model that uses two textures as opposed to one, and I wanted to have a skin selectable in the menu that uses both of these for slots "Multiskins[0]" and "Multiskins[1]" as opposed to just "Skin". Is there something I must put in the *skins.int package? Or what?

Re: Question regarding Multiskins

Posted: Thu Oct 14, 2010 5:20 am
by ShinDarkfox
Update: Well that was easy, how silly of me. Fixed it by adding this to the script.

[code]exec function SetSkin (string SkinName)
{
  SetMultiSkin(self,SkinName,"None",255);
}

static function SetMultiSkin (Actor SkinActor, string SkinName, string FaceName, byte TeamNum)
{
  SkinActor.MultiSkins[0] = Texture(DynamicLoadObject(SkinName $ string(1),Class'Texture'));
  SkinActor.MultiSkins[1] = Texture(DynamicLoadObject(SkinName $ string(2),Class'Texture'));
}[/code]

Now it functions conveniently. If I were to make team colors though I'll just need to add some to the multiskins thing, but for now it works towards my goal. Sorry to bug ya'll with a simple fixer upper. Just thought I was missing something relatively simple.

Re: Question regarding Multiskins

Posted: Thu Oct 14, 2010 6:29 am
by Smirftsch
mhmhm....sorry for not answering yet. Have to admit I didn't mess much with multiskins yet. What are you planning to do? :)

Re: Question regarding Multiskins

Posted: Thu Oct 14, 2010 7:29 am
by ShinDarkfox
Once upon a time I had a little mod that allowed one to play as the RTNP non-playables, namely the Space Marines but also a working Spinner. I've decided to recreate those mods with improvements based on my bettered knowledge on how the code works over the years. The downside of the Space Marine is that he has a crouch animation but not duck walking frames so he kinda slides along for crouch walk. Funny to watch. [smiley=laugh.gif] That was to get the skins to work, Arctic, Desert, Jungle, and Space. Next may have it say a random quote when doing gestures.

Re: Question regarding Multiskins

Posted: Thu Oct 14, 2010 7:26 pm
by Unodir
Shin,

Thanks for posting your resolution, even though you caught no response- It really helps newbies such as myself!