mirror of
https://github.com/Ed94/Cog.git
synced 2026-06-13 08:02:23 -07:00
Cheat command fallback to PIE 1 actor selection
This commit is contained in:
@@ -15,6 +15,14 @@ FCogDebugSettings FCogDebug::Settings = FCogDebugSettings();
|
|||||||
//--------------------------------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------------------------------
|
||||||
FCogDebugContext& FCogDebug::Get(const int32 InPieId)
|
FCogDebugContext& FCogDebug::Get(const int32 InPieId)
|
||||||
{
|
{
|
||||||
|
if (InPieId == INDEX_NONE)
|
||||||
|
{
|
||||||
|
if (FCogDebugContext* Context = DebugContexts.Find(1))
|
||||||
|
{
|
||||||
|
return *Context;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
FCogDebugContext& Context = DebugContexts.FindOrAdd(InPieId);
|
FCogDebugContext& Context = DebugContexts.FindOrAdd(InPieId);
|
||||||
return Context;
|
return Context;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -62,7 +62,8 @@ void FCogEngineWindow_Cheats::Initialize()
|
|||||||
const bool ApplyToAllies = InArgs.Contains("-Allies");
|
const bool ApplyToAllies = InArgs.Contains("-Allies");
|
||||||
const bool ApplyToControlled = InArgs.Contains("-Controlled");
|
const bool ApplyToControlled = InArgs.Contains("-Controlled");
|
||||||
|
|
||||||
RequestCheat(*Replicator, GetLocalPlayerPawn(), GetSelection(), *Cheat, ApplyToEnemies, ApplyToAllies, ApplyToControlled);
|
AActor* Selection = GetSelection();
|
||||||
|
RequestCheat(*Replicator, GetLocalPlayerPawn(), Selection, *Cheat, ApplyToEnemies, ApplyToAllies, ApplyToControlled);
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user