feat: TU19 (Dec 2014) Features & Content (#155)

* try to resolve merge conflict

* feat: TU19 (Dec 2014) Features & Content (#32)

* December 2014 files

* Working release build

* Fix compilation issues

* Add sound to Windows64Media

* Add DLC content and force Tutorial DLC

* Revert "Add DLC content and force Tutorial DLC"

This reverts commit 97a4399472.

* Disable broken light packing

* Disable breakpoint during DLC texture map load

Allows DLC loading but the DLC textures are still broken

* Fix post build not working

* ...

* fix vs2022 build

* fix cmake build

---------

Co-authored-by: Loki <lokirautio@gmail.com>
This commit is contained in:
daoge
2026-03-03 03:04:10 +08:00
committed by GitHub
parent 84c31a2331
commit b3feddfef3
2069 changed files with 264842 additions and 139522 deletions

View File

@@ -3,7 +3,7 @@
#include "..\Minecraft.World\net.minecraft.world.item.h"
#include "..\Minecraft.World\Mth.h"
RemotePlayer::RemotePlayer(Level *level, const wstring& name) : Player(level)
RemotePlayer::RemotePlayer(Level *level, const wstring& name) : Player(level, name)
{
// 4J - added initialisers
hasStartedUsingItem = false;
@@ -11,22 +11,16 @@ RemotePlayer::RemotePlayer(Level *level, const wstring& name) : Player(level)
lx = ly = lz = lyr = lxr = 0.0;
fallTime = 0.0f;
this->name = name;
m_UUID = name;
app.DebugPrintf("Created RemotePlayer with name %ls\n", name.c_str() );
heightOffset = 0;
this->footSize = 0;
if (name.length() > 0)
{
customTextureUrl = L"";//L"http://s3.amazonaws.com/MinecraftSkins/" + name + L".png";
}
footSize = 0;
this->noPhysics = true;
noPhysics = true;
bedOffsetY = 4 / 16.0f;
this->viewScale = 10;
viewScale = 10;
}
void RemotePlayer::setDefaultHeadHeight()
@@ -34,7 +28,7 @@ void RemotePlayer::setDefaultHeadHeight()
heightOffset = 0;
}
bool RemotePlayer::hurt(DamageSource *source, int dmg)
bool RemotePlayer::hurt(DamageSource *source, float dmg)
{
return true;
}
@@ -113,8 +107,8 @@ void RemotePlayer::aiStep()
xRot += (float)((lxr - xRot) / lSteps);
lSteps--;
this->setPos(xt, yt, zt);
this->setRot(yRot, xRot);
setPos(xt, yt, zt);
setRot(yRot, xRot);
}
oBob = bob;
@@ -149,4 +143,9 @@ void RemotePlayer::animateRespawn()
float RemotePlayer::getHeadHeight()
{
return 1.82f;
}
Pos RemotePlayer::getCommandSenderWorldPosition()
{
return new Pos(floor(x + .5), floor(y + .5), floor(z + .5));
}