mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 10:52:22 +01:00
a lot
change how abilities work ("more" proper), readded vehicle spawning to s8-s12, fixed respawning on >s4, added a count check to looting so it can't drop 0 count, added zipline jumping, guarantee pawn spawn, clear inventory on aircraft
This commit is contained in:
@@ -19,7 +19,7 @@ struct TSoftObjectPtr
|
||||
public:
|
||||
FSoftObjectPtr SoftObjectPtr;
|
||||
|
||||
T* Get()
|
||||
T* Get(UClass* ClassToLoad = nullptr, bool bTryToLoad = false)
|
||||
{
|
||||
if (Engine_Version <= 416)
|
||||
{
|
||||
@@ -31,6 +31,11 @@ public:
|
||||
if (SoftObjectPtr.ObjectID.AssetPathName.ComparisonIndex.Value <= 0)
|
||||
return nullptr;
|
||||
|
||||
if (bTryToLoad)
|
||||
{
|
||||
return LoadObject<T>(SoftObjectPtr.ObjectID.AssetPathName.ToString(), ClassToLoad);
|
||||
}
|
||||
|
||||
return FindObject<T>(SoftObjectPtr.ObjectID.AssetPathName.ToString());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user