mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 10:52:22 +01:00
clip size vehicles cheat command
This commit is contained in:
@@ -16,6 +16,14 @@ std::pair<std::vector<UFortItem*>, std::vector<UFortItem*>> AFortInventory::AddI
|
||||
if (bShouldUpdate)
|
||||
*bShouldUpdate = false;
|
||||
|
||||
if (LoadedAmmo == -1)
|
||||
{
|
||||
if (auto WeaponDef = Cast<UFortWeaponItemDefinition>(ItemDefinition))
|
||||
LoadedAmmo = WeaponDef->GetClipSize();
|
||||
else
|
||||
LoadedAmmo = 0;
|
||||
}
|
||||
|
||||
std::vector<UFortItem*> NewItemInstances;
|
||||
std::vector<UFortItem*> ModifiedItemInstances;
|
||||
|
||||
@@ -25,8 +33,8 @@ std::pair<std::vector<UFortItem*>, std::vector<UFortItem*>> AFortInventory::AddI
|
||||
|
||||
if (NewItemInstance)
|
||||
{
|
||||
if (LoadedAmmo != -1)
|
||||
NewItemInstance->GetItemEntry()->GetLoadedAmmo() = LoadedAmmo;
|
||||
// if (LoadedAmmo != -1)
|
||||
NewItemInstance->GetItemEntry()->GetLoadedAmmo() = LoadedAmmo;
|
||||
|
||||
NewItemInstances.push_back(NewItemInstance);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user