the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#include "stdafx.h"
2#include "CowModel.h"
3#include "ModelPart.h"
4
5CowModel::CowModel() : QuadrupedModel(12,0)
6{
7 head = new ModelPart(this, 0, 0);
8 head->addBox(-4, -4, -6, 8, 8, 6, 0); // Head
9 head->setPos(0, 12 - 6 - 2, -8);
10 head->texOffs(22, 0)->addBox(-5, -5, -4, 1, 3, 1, 0); // Horn1
11 head->texOffs(22, 0)->addBox(+4, -5, -4, 1, 3, 1, 0); // Horn1
12
13 body = new ModelPart(this, 18, 4);
14 body->addBox(-6, -10, -7, 12, 18, 10, 0); // Body
15 body->setPos(0, 11 + 6 - 12, 2);
16 body->texOffs(52, 0)->addBox(-2, 2, -8, 4, 6, 1);
17
18 leg0->x -= 1;
19 leg1->x += 1;
20 leg0->z += 0;
21 leg1->z += 0;
22 leg2->x -= 1;
23 leg3->x += 1;
24 leg2->z -= 1;
25 leg3->z -= 1;
26
27 this->zHeadOffs += 2;
28
29 // 4J added - compile now to avoid random performance hit first time cubes are rendered
30 head->compile(1.0f/16.0f);
31 body->compile(1.0f/16.0f);
32}