Something went wrong. Try again.
the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
Something went wrong. Try again.
864 B · 32 lines
C++
at master
123456789101112131415161718192021222324252627282930313233#include "stdafx.h"#include "CowModel.h"#include "ModelPart.h"
CowModel::CowModel() : QuadrupedModel(12,0){ head = new ModelPart(this, 0, 0); head->addBox(-4, -4, -6, 8, 8, 6, 0); // Head head->setPos(0, 12 - 6 - 2, -8); head->texOffs(22, 0)->addBox(-5, -5, -4, 1, 3, 1, 0); // Horn1 head->texOffs(22, 0)->addBox(+4, -5, -4, 1, 3, 1, 0); // Horn1
body = new ModelPart(this, 18, 4); body->addBox(-6, -10, -7, 12, 18, 10, 0); // Body body->setPos(0, 11 + 6 - 12, 2); body->texOffs(52, 0)->addBox(-2, 2, -8, 4, 6, 1);
leg0->x -= 1; leg1->x += 1; leg0->z += 0; leg1->z += 0; leg2->x -= 1; leg3->x += 1; leg2->z -= 1; leg3->z -= 1;
this->zHeadOffs += 2;
// 4J added - compile now to avoid random performance hit first time cubes are rendered head->compile(1.0f/16.0f); body->compile(1.0f/16.0f);}