mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 10:52:22 +01:00
a bit of stuff
toys, ammo in bottom right kinda, fix lootin speeds, being inaccurate, playlist looting kindof, or some things just not working.
This commit is contained in:
@@ -11,8 +11,9 @@ char UFortInventoryInterface::RemoveInventoryItemHook(__int64 a1, FGuid a2, int
|
||||
int SuperAdditionalOffset = Engine_Version >= 427 ? 16 : 8;
|
||||
auto ControllerObject = (UObject*)(__int64(a1) - (FortPlayerControllerSuperSize + SuperAdditionalOffset));
|
||||
|
||||
LOG_INFO(LogDev, "FortPlayerControllerSuperSize: {}", FortPlayerControllerSuperSize);
|
||||
LOG_INFO(LogDev, "ControllerObject: {}", ControllerObject->GetFullName());
|
||||
LOG_INFO(LogDev, "bForceRemoval: {}", (bool)bForceRemoval);
|
||||
// LOG_INFO(LogDev, "FortPlayerControllerSuperSize: {}", FortPlayerControllerSuperSize);
|
||||
// LOG_INFO(LogDev, "ControllerObject: {}", ControllerObject->GetFullName());
|
||||
|
||||
if (!ControllerObject)
|
||||
return false;
|
||||
@@ -28,7 +29,7 @@ char UFortInventoryInterface::RemoveInventoryItemHook(__int64 a1, FGuid a2, int
|
||||
return false;
|
||||
|
||||
bool bShouldUpdate = false;
|
||||
WorldInventory->RemoveItem(a2, &bShouldUpdate, Count);
|
||||
WorldInventory->RemoveItem(a2, &bShouldUpdate, Count, bForceRemoval);
|
||||
|
||||
if (bShouldUpdate)
|
||||
WorldInventory->Update();
|
||||
|
||||
Reference in New Issue
Block a user