Added Rose Types + jeb_ Easter egg
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#include "..\Minecraft.World\net.minecraft.world.entity.animal.h"
|
||||
#include "SheepFurModel.h"
|
||||
#include "ModelPart.h"
|
||||
#include "../Minecraft.World/Sheep.cpp"
|
||||
|
||||
SheepFurModel::SheepFurModel() : QuadrupedModel(12, 0)
|
||||
{
|
||||
@@ -48,6 +49,21 @@ void SheepFurModel::prepareMobModel(shared_ptr<LivingEntity> mob, float time, fl
|
||||
shared_ptr<Sheep> sheep = dynamic_pointer_cast<Sheep>(mob);
|
||||
head->y = 6 + sheep->getHeadEatPositionScale(a) * 9.0f;
|
||||
headXRot = sheep->getHeadEatAngleScale(a);
|
||||
|
||||
wstring name = mob->getAName();
|
||||
if (name == L"jeb_")
|
||||
{
|
||||
int i1 = 25;
|
||||
int i = mob->tickCount / 25;
|
||||
int j = Sheep::COLOR_LENGTH;
|
||||
int k = i % j;
|
||||
int l = (i + 1) % j;
|
||||
float f = ((float)(mob->tickCount % 25) + time) / 25.0F;
|
||||
const float* afloat1 = Sheep::COLOR[k];
|
||||
const float* afloat2 = Sheep::COLOR[l];
|
||||
|
||||
RenderManager.StateSetColour(afloat1[0] * (1.0F - f) + afloat2[0] * f, afloat1[1] * (1.0F - f) + afloat2[1] * f, afloat1[2] * (1.0F - f) + afloat2[2] * f, 1.0f);
|
||||
}
|
||||
}
|
||||
|
||||
void SheepFurModel::setupAnim(float time, float r, float bob, float yRot, float xRot, float scale, shared_ptr<Entity> entity, unsigned int uiBitmaskOverrideAnim)
|
||||
|
||||
Reference in New Issue
Block a user