Added InfiniteStamina:Packet for Waverider(Boat)

This commit is contained in:
Joaquin 2022-08-09 03:21:37 -06:00
parent 8e9e75e938
commit 1811b3b46f

View File

@ -79,9 +79,9 @@ namespace cheat::feature
static bool afterDash = false;
auto& manager = game::EntityManager::instance();
if (manager.avatar()->runtimeID() != entityId)
return;
auto entity = manager.entity(entityId);
if (entity->type() == app::EntityType__Enum_1::Vehicle || entity->isAvatar())
{
// LOG_DEBUG("Movement packet: %s", magic_enum::enum_name(syncInfo->fields.motionState).data());
if (f_Enabled && f_PacketReplacement)
{
@ -106,11 +106,16 @@ namespace cheat::feature
if (afterDash)
syncInfo->fields.motionState = app::MotionState__Enum::MotionRun;
break;
case app::MotionState__Enum::MotionSkiffDash:
case app::MotionState__Enum::MotionSkiffPoweredDash:
syncInfo->fields.motionState = app::MotionState__Enum::MotionSkiffNormal;
break;
}
if (state != app::MotionState__Enum::MotionJump && state != app::MotionState__Enum::MotionFallOnGround)
afterDash = state == app::MotionState__Enum::MotionDash;
}
}
}
void InfiniteStamina::DataItem_HandleNormalProp_Hook(app::DataItem* __this, uint32_t type, int64_t value, app::DataPropOp__Enum state, MethodInfo* method)
{