From c60731d26dad02af2f991d9fb07dd273f9dac041 Mon Sep 17 00:00:00 2001 From: Andrei Abrudan Date: Tue, 5 Jul 2022 11:21:00 +0100 Subject: [PATCH] Moved vacuum in front of player, not underneath Changed game object for Noctilucous Jade --- .../src/user/cheat/world/VacuumLoot.cpp | 52 +++++++++---------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/cheat-library/src/user/cheat/world/VacuumLoot.cpp b/cheat-library/src/user/cheat/world/VacuumLoot.cpp index 2ff04e9..31d2d9d 100644 --- a/cheat-library/src/user/cheat/world/VacuumLoot.cpp +++ b/cheat-library/src/user/cheat/world/VacuumLoot.cpp @@ -108,7 +108,7 @@ namespace cheat::feature if (!IsEntityForVac(entity)) continue; - entity->setRelativePosition(avatarEntity->relativePosition()); + entity->setRelativePosition(avatarEntity->relativePosition() + avatarEntity->forward() * 0.8f); } nextTime = currentTime + 1000; } @@ -123,31 +123,31 @@ namespace cheat::feature }); } - void VacuumLoot::InstallFilters() +void VacuumLoot::InstallFilters() { - AddFilter("General loot", "SceneObj_DropItem" ,"General"); - AddFilter("Ore Drops", "SceneObj_Ore_Drop" ,"Ore"); - AddFilter("Magic Crystal", "_DropMagicCrystal" ,"Ore"); - AddFilter("Amethyst Lump", "_Thundercrystaldrop" ,"Ore"); - AddFilter("Electro Crystal", "_Ore_ElectricRock" ,"Ore"); - AddFilter("Starsilver Ore", "_DropMoonMeteor_" ,"Ore"); - AddFilter("Noctilucous Jade", "NightBerth" ,"Ore"); - AddFilter("Potatoes", "_Potato" ,"Food"); - AddFilter("Radish", "_Radish02_Clear" ,"Food"); - AddFilter("Cabbage", "_Cabbage" ,"Food"); - AddFilter("Carrot", "_Carrot02_Clear" ,"Food"); - AddFilter("Wheat", "_Wheat" ,"Food"); - AddFilter("Crystalflies", "Wisp" ,"General"); - AddFilter("Meat & Fowl", "Meat" ,"Food"); - AddFilter("Fishmeat", "Fishmeat" ,"Food"); - AddFilter("Crab", "Crab" ,"Food"); - AddFilter("Eel", "Eel_" ,"Food"); - AddFilter("Lizard", "Lizard" ,"General"); - AddFilter("Swords", "Equip_Sword" ,"Equipment"); - AddFilter("Poles", "Equip_Pole" ,"Equipment"); - AddFilter("Bows", "Equip_Bow" ,"Equipment"); - AddFilter("Catalysts", "Equip_Catalyst" ,"Equipment"); - AddFilter("Claymores", "Equip_Claymore" ,"Equipment"); - AddFilter("Butterflies & Fireflies", "Eff_Animal" ,"General"); + AddFilter("General loot", "SceneObj_DropItem" ,"General"); + AddFilter("Ore Drops", "SceneObj_Ore_Drop" ,"Ore"); + AddFilter("Magic Crystal", "_DropMagicCrystal" ,"Ore"); + AddFilter("Amethyst Lump", "_Thundercrystaldrop" ,"Ore"); + AddFilter("Electro Crystal", "_Ore_ElectricRock" ,"Ore"); + AddFilter("Starsilver Ore", "_DropMoonMeteor_" ,"Ore"); + AddFilter("Noctilucous Jade", "SceneObj_Item_NightBerth" ,"Ore"); + AddFilter("Potatoes", "_Potato" ,"Food"); + AddFilter("Radish", "_Radish02_Clear" ,"Food"); + AddFilter("Cabbage", "_Cabbage" ,"Food"); + AddFilter("Carrot", "_Carrot02_Clear" ,"Food"); + AddFilter("Wheat", "_Wheat" ,"Food"); + AddFilter("Crystalflies", "Wisp" ,"General"); + AddFilter("Meat & Fowl", "Meat" ,"Food"); + AddFilter("Fishmeat", "Fishmeat" ,"Food"); + AddFilter("Crab", "Crab" ,"Food"); + AddFilter("Eel", "Eel_" ,"Food"); + AddFilter("Lizard", "Lizard" ,"General"); + AddFilter("Swords", "Equip_Sword" ,"Equipment"); + AddFilter("Poles", "Equip_Pole" ,"Equipment"); + AddFilter("Bows", "Equip_Bow" ,"Equipment"); + AddFilter("Catalysts", "Equip_Catalyst" ,"Equipment"); + AddFilter("Claymores", "Equip_Claymore" ,"Equipment"); + AddFilter("Butterflies & Fireflies", "Eff_Animal" ,"General"); } }