mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 02:42:22 +01:00
a lot
fix 7.20, >2.5 emoting, fix removing item bug on >2.5, fix equipping being buggy on >2.5, added ammo depletion to 1.11+
This commit is contained in:
@@ -94,16 +94,6 @@ void AFortPlayerController::ServerExecuteInventoryItemHook(AFortPlayerController
|
||||
if (!ItemDefinition)
|
||||
return;
|
||||
|
||||
if (Engine_Version < 420) // wtf
|
||||
{
|
||||
static auto CurrentWeaponListOffset = Pawn->GetOffset("CurrentWeaponList");
|
||||
auto& CurrentWeaponList = Pawn->Get<TArray<AFortWeapon*>>(CurrentWeaponListOffset);
|
||||
|
||||
CurrentWeaponList.Data = nullptr;
|
||||
CurrentWeaponList.ArrayNum = 0;
|
||||
CurrentWeaponList.ArrayMax = 0;
|
||||
}
|
||||
|
||||
if (auto Weapon = Pawn->EquipWeaponDefinition((UFortWeaponItemDefinition*)ItemDefinition, ItemInstance->GetItemEntry()->GetItemGuid()))
|
||||
{
|
||||
if (Engine_Version < 420)
|
||||
|
||||
Reference in New Issue
Block a user