Added InfiniteStamina:Packet for Waverider(Boat)
This commit is contained in:
parent
8e9e75e938
commit
1811b3b46f
@ -79,9 +79,9 @@ namespace cheat::feature
|
|||||||
static bool afterDash = false;
|
static bool afterDash = false;
|
||||||
|
|
||||||
auto& manager = game::EntityManager::instance();
|
auto& manager = game::EntityManager::instance();
|
||||||
if (manager.avatar()->runtimeID() != entityId)
|
auto entity = manager.entity(entityId);
|
||||||
return;
|
if (entity->type() == app::EntityType__Enum_1::Vehicle || entity->isAvatar())
|
||||||
|
{
|
||||||
// LOG_DEBUG("Movement packet: %s", magic_enum::enum_name(syncInfo->fields.motionState).data());
|
// LOG_DEBUG("Movement packet: %s", magic_enum::enum_name(syncInfo->fields.motionState).data());
|
||||||
if (f_Enabled && f_PacketReplacement)
|
if (f_Enabled && f_PacketReplacement)
|
||||||
{
|
{
|
||||||
@ -106,11 +106,16 @@ namespace cheat::feature
|
|||||||
if (afterDash)
|
if (afterDash)
|
||||||
syncInfo->fields.motionState = app::MotionState__Enum::MotionRun;
|
syncInfo->fields.motionState = app::MotionState__Enum::MotionRun;
|
||||||
break;
|
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)
|
if (state != app::MotionState__Enum::MotionJump && state != app::MotionState__Enum::MotionFallOnGround)
|
||||||
afterDash = state == app::MotionState__Enum::MotionDash;
|
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)
|
void InfiniteStamina::DataItem_HandleNormalProp_Hook(app::DataItem* __this, uint32_t type, int64_t value, app::DataPropOp__Enum state, MethodInfo* method)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user