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

View File

@@ -111,6 +111,9 @@ bool DamageSource::isBypassInvul()
return _bypassInvul;
}
bool DamageSource::isBypassMagic() {
return _bypassInvul;
}
//DamageSource::DamageSource(const wstring &msgId)
DamageSource::DamageSource(ChatPacket::EChatPacketMessage msgId, ChatPacket::EChatPacketMessage msgWithItemId)
@@ -214,6 +217,33 @@ bool DamageSource::isFire()
{
return isFireSource;
}
bool DamageSource::isFireProjectile() {
return _isProjectile;
}
DamageSource* DamageSource::setIsFireProjectile() {
_isProjectile = true;
return this;
}
bool DamageSource::isCreativePlayer() const
{
shared_ptr<Entity> entity = const_cast<DamageSource*>(this)->getEntity();
if (entity != nullptr)
{
shared_ptr<Player> player = dynamic_pointer_cast<Player>(entity);
if (player != nullptr)
{
return player->abilities.instabuild;
}
}
return false;
}
ChatPacket::EChatPacketMessage DamageSource::getMsgId()
{