Added Rose Types + jeb_ Easter egg

This commit is contained in:
piebot
2026-03-14 00:51:31 +03:00
parent 2c6060c26e
commit 00d3ca7b9b
12 changed files with 246 additions and 10 deletions
+16
View File
@@ -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)