feat: armorstand from decomp

This commit is contained in:
Lord_Cambion
2026-04-18 03:46:45 +02:00
parent 27d0a8ffc3
commit 383302eb2e
64 changed files with 2880 additions and 1574 deletions
+36
View File
@@ -0,0 +1,36 @@
#include "stdafx.h"
#include "AbstractArmorLayer.h"
#include "LivingEntityRenderer.h"
#include "HumanoidModel.h"
AbstractArmorLayer::AbstractArmorLayer(LivingEntityRenderer* renderer)
: armorModel1(nullptr),
armorModel2(nullptr),
renderer(renderer),
colorR(1.0f),
colorG(1.0f),
colorB(1.0f),
colorA(1.0f),
hasColor(false)
{
}
HumanoidModel* AbstractArmorLayer::getArmorModel(int slot) {
if (slot == 2)
return armorModel1;
return armorModel2;
}
int AbstractArmorLayer::colorsOnDamage() {
return 0;
}
void AbstractArmorLayer::resetColor() {
glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
hasColor = false;
}
void AbstractArmorLayer::createArmorModels() {
// default: no-op
}