Costume: Difference between revisions

From OuroDev
pc>Herald
No edit summary
pc>Herald
No edit summary
Line 13: Line 13:
         F32 fScale;      // ranges from -9 to 9. Yields approx +/-20% size change
         F32 fScale;      // ranges from -9 to 9. Yields approx +/-20% size change
F32 fBoneScale; // -1 = skinniest guy, 0 = normal guy, 1 = fattest guy
F32 fBoneScale; // -1 = skinniest guy, 0 = normal guy, 1 = fattest guy
void costume_PartSetTexture1(Costume* costume, int iIdxBone, const char *pchTex);
void costume_PartSetTexture2(Costume* costume, int iIdxBone, const char *pchTex);
void costume_PartSetFx(Costume* costume, int iIdxBone, const char *pchFx);
// Sets the primary/secondary base texture name for a body part.
// This name will be magically munged with the bodytype's texture prefix.
void costume_PartSetGeometry(Costume* costume, int iIdxBone, const char *pchGeom);
// Sets the geometry to be used for a body part.
// This name will be magically munged with the bodytype's entname prefix.
</source>
</source>

Revision as of 13:32, 1 June 2019

        kBodyType_Male        = 0,  // All the values in body type MUST match the
	kBodyType_Female      = 1,  // ones which are read in the menu file.
	kBodyType_BasicMale   = 2,
	kBodyType_BasicFemale = 3,
	kBodyType_Huge        = 4,
	kBodyType_Enemy       = 5,
	kBodyType_Villain     = 6, // Except this one. This one is only set by code.
	kBodyType_Enemy2	  = 7, // Except this one. This one is only set by code.
	kBodyType_Enemy3	  = 8, // Except this one. This one is only set by code.

		
        F32 fScale;       // ranges from -9 to 9. Yields approx +/-20% size change
	F32 fBoneScale;	// -1 = skinniest guy, 0 = normal guy, 1 = fattest guy

void costume_PartSetTexture1(Costume* costume, int iIdxBone, const char *pchTex);
void costume_PartSetTexture2(Costume* costume, int iIdxBone, const char *pchTex);
void costume_PartSetFx(Costume* costume, int iIdxBone, const char *pchFx);
// Sets the primary/secondary base texture name for a body part.
// This name will be magically munged with the bodytype's texture prefix.

void costume_PartSetGeometry(Costume* costume, int iIdxBone, const char *pchGeom);
// Sets the geometry to be used for a body part.
// This name will be magically munged with the bodytype's entname prefix.