added some pet debug commands

This commit is contained in:
jadebenn
2023-12-09 22:24:35 -06:00
parent 93592c775b
commit 1c01219ae9
3 changed files with 90 additions and 8 deletions

View File

@@ -155,12 +155,12 @@ void PetComponent::Serialize(RakNet::BitStream* outBitStream, bool bIsInitialUpd
void PetComponent::OnUse(Entity* originator) {
LOG("PET USE!");
if(m_ReadyToDig) {
/*if(m_ReadyToDig) {
LOG("Dig initiated!");
m_TresureTime = 2.0f;
//m_ReadyToDig = false;
SetAbility(PetAbilityType::DigAtPosition);
}
}*/
if (m_Owner != LWOOBJID_EMPTY) {
return;
@@ -434,9 +434,9 @@ void PetComponent::Update(float deltaTime) {
skipTresure:
m_MovementAI->SetHaltDistance(haltDistance);
//m_MovementAI->SetHaltDistance(haltDistance);
m_MovementAI->SetMaxSpeed(2.5f);
//m_MovementAI->SetMaxSpeed(2.5f);
m_MovementAI->SetDestination(destination);

View File

@@ -8,10 +8,6 @@
enum PetStatus : uint32_t {
NONE,
UNKNOWN1 = 0x1,
UNKNOWN2 = 0x2,
UNKNOWN3 = 0x4,
UNKNOWN4 = 0x8,
BEING_TAMED = 0x10,
IS_NOT_WAITING = 0x20, // Right name? - used to be decimal 20
PLAY_SPAWN_ANIM = 0x80,