December 2014 files

This commit is contained in:
Loki Rautio
2026-03-01 11:00:23 -06:00
parent b691c43c44
commit 8fd3ac6e37
2049 changed files with 260190 additions and 134787 deletions

View File

@@ -3,11 +3,14 @@
#include "GhastModel.h"
#include "..\Minecraft.World\net.minecraft.world.entity.monster.h"
ResourceLocation GhastRenderer::GHAST_LOCATION = ResourceLocation(TN_MOB_GHAST);
ResourceLocation GhastRenderer::GHAST_SHOOTING_LOCATION = ResourceLocation(TN_MOB_GHAST_FIRE);
GhastRenderer::GhastRenderer() : MobRenderer(new GhastModel(), 0.5f)
{
}
void GhastRenderer::scale(shared_ptr<Mob> mob, float a)
void GhastRenderer::scale(shared_ptr<LivingEntity> mob, float a)
{
shared_ptr<Ghast> ghast = dynamic_pointer_cast<Ghast>(mob);
@@ -18,4 +21,16 @@ void GhastRenderer::scale(shared_ptr<Mob> mob, float a)
float hs = (8+1/ss)/2;
glScalef(hs, s, hs);
glColor4f(1, 1, 1, 1);
}
ResourceLocation *GhastRenderer::getTextureLocation(shared_ptr<Entity> mob)
{
shared_ptr<Ghast> ghast = dynamic_pointer_cast<Ghast>(mob);
if (ghast->isCharging())
{
return &GHAST_SHOOTING_LOCATION;
}
return &GHAST_LOCATION;
}