mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-05-25 02:23:51 +00:00
Added code for 64x64 skins
Added code for 64x64 classic and slim skins. Also added the remaining default skins.
This commit is contained in:
parent
d3412aaae7
commit
69983c51ad
31 changed files with 811 additions and 139 deletions
|
|
@ -4,7 +4,7 @@
|
|||
class HumanoidModel : public Model
|
||||
{
|
||||
public:
|
||||
ModelPart *head, *hair, *body, *arm0, *arm1, *leg0, *leg1, *ear, *cloak;
|
||||
ModelPart *head, *hair, *body, *jacket, *arm0, *sleeve0, *arm1, *sleeve1, *leg0, *pants0, *leg1, *pants1, *ear, *cloak;
|
||||
//ModelPart *hat;
|
||||
|
||||
int holdingLeftHand;
|
||||
|
|
@ -17,6 +17,7 @@ public:
|
|||
float eating_swing; // 4J added
|
||||
unsigned int m_uiAnimOverrideBitmask; // 4J added
|
||||
float m_fYOffset; // 4J added
|
||||
bool m_isArmor;
|
||||
enum animbits
|
||||
{
|
||||
eAnim_ArmsDown =0,
|
||||
|
|
@ -37,7 +38,22 @@ public:
|
|||
eAnim_DisableRenderLeg0,
|
||||
eAnim_DisableRenderLeg1,
|
||||
eAnim_DisableRenderHair,
|
||||
eAnim_SmallModel // Maggie Simpson for riding horse, etc
|
||||
eAnim_SmallModel, // Maggie Simpson for riding horse, etc
|
||||
eAnim_ClassicModel,
|
||||
eAnim_SlimModel,
|
||||
// Hide overlay/second layer on 64x64 skins
|
||||
eAnim_DisableRenderSleeve1,
|
||||
eAnim_DisableRenderSleeve0,
|
||||
eAnim_DisableRenderPants1,
|
||||
eAnim_DisableRenderPants0,
|
||||
eAnim_DisableRenderJacket,
|
||||
eAnim_RenderArmorHead,
|
||||
eAnim_RenderArmorArm0,
|
||||
eAnim_RenderArmorArm1,
|
||||
eAnim_RenderArmorTorso,
|
||||
eAnim_RenderArmorLeg0,
|
||||
eAnim_RenderArmorLeg1,
|
||||
eAnim_Dinnerbone
|
||||
|
||||
};
|
||||
|
||||
|
|
@ -47,13 +63,20 @@ public:
|
|||
(1<<HumanoidModel::eAnim_DisableRenderTorso) |
|
||||
(1<<HumanoidModel::eAnim_DisableRenderLeg0) |
|
||||
(1<<HumanoidModel::eAnim_DisableRenderLeg1) |
|
||||
(1<<HumanoidModel::eAnim_DisableRenderHair);
|
||||
(1<<HumanoidModel::eAnim_DisableRenderHair) |
|
||||
(1<<HumanoidModel::eAnim_DisableRenderSleeve1) |
|
||||
(1<<HumanoidModel::eAnim_DisableRenderSleeve0) |
|
||||
(1<<HumanoidModel::eAnim_DisableRenderPants1) |
|
||||
(1<<HumanoidModel::eAnim_DisableRenderPants0) |
|
||||
(1<<HumanoidModel::eAnim_DisableRenderJacket);
|
||||
|
||||
|
||||
void _init(float g, float yOffset, int texWidth, int texHeight); // 4J added
|
||||
void _init(float g, float yOffset, int texWidth, int texHeight, bool slimHands, bool isArmor); // 4J added
|
||||
HumanoidModel();
|
||||
HumanoidModel(float g);
|
||||
HumanoidModel(float g, bool isArmor);
|
||||
HumanoidModel(float g, float yOffset, int texWidth, int texHeight);
|
||||
HumanoidModel(float g, float yOffset, int texWidth, int texHeight, bool slimHands);
|
||||
virtual void render(shared_ptr<Entity> entity, float time, float r, float bob, float yRot, float xRot, float scale, bool usecompiled);
|
||||
virtual void setupAnim(float time, float r, float bob, float yRot, float xRot, float scale, shared_ptr<Entity> entity, unsigned int uiBitmaskOverrideAnim = 0);
|
||||
void renderHair(float scale, bool usecompiled);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue