Page 1 of 1
question about int files
Posted: Wed Jun 29, 2011 5:02 pm
by StOnEd-SnIpEr
how to make a .int for a multiskinned model
cuz i got it to load the model but i get notexture on the skin in player menu but ingame it has its textures
Re: question about int files
Posted: Wed Jun 29, 2011 5:39 pm
by .:..:
You have to do that in the code of your custom PlayerPawn class. As example, lets say you have one main skin named "BlaBlaSkin", then you have rest of the multiskins named "BlaBlaSkin_A", "BlaBlaSkin_B" etc...
Then all you need to do in code is:
Code: Select all
static function SetMultiSkin( Actor SkinActor, string SkinName, string FaceName, byte TeamNum )
{
local Texture NewSkin;
local string MeshName;
if ( SkinActor.Mesh!=None )
MeshName = string(SkinActor.Mesh.Name);
if ( InStr(SkinName, ".") == -1 )
SkinName = MeshName$"Skins."$SkinName;
if ( Left(SkinName, Len(MeshName)) ~= MeshName )
{
NewSkin = texture(DynamicLoadObject(SkinName, class'Texture',True));
if ( NewSkin != None )
{
SkinActor.Skin = NewSkin;
SkinActor.MultiSkins[1] = texture(DynamicLoadObject(SkinName$"_A", class'Texture',True));
SkinActor.MultiSkins[2] = texture(DynamicLoadObject(SkinName$"_B", class'Texture',True));
SkinActor.MultiSkins[3] = texture(DynamicLoadObject(SkinName$"_C", class'Texture',True));
}
}
}
Re: question about int files
Posted: Wed Jun 29, 2011 6:13 pm
by StOnEd-SnIpEr
if that works thank you very mutch dots:)
Re: question about int files
Posted: Thu Jun 30, 2011 12:27 am
by Gizzy
Issue already fixed, I remapped the model for him since I couldn't get the code to work.
Re: question about int files
Posted: Thu Jun 30, 2011 4:07 pm
by StOnEd-SnIpEr
srry gizzy good attempt but not quite
Re: question about int files
Posted: Fri Jul 01, 2011 11:54 am
by Gizzy
Gat damn, I'll try and get on tonight after work and show me what's wrong with it.