Bugfix VisionLink to Deactivate WIP Fucntionalilty
This commit is contained in:
parent
f92605ebee
commit
282705ed2f
@ -10,7 +10,7 @@ void AVisionLink::BeginPlay()
|
||||
CooldownLength = CooldownTime;
|
||||
InUseDuration = GadgetMaxUptime;
|
||||
|
||||
if (NumberOfPingPulses <= 0 ) NumberOfPingPulses = 1;
|
||||
if (NumberOfPingPulses <= 0) NumberOfPingPulses = 1;
|
||||
TimeInbetweenPingPulses = GadgetMaxUptime / (float)NumberOfPingPulses;
|
||||
}
|
||||
|
||||
@ -38,18 +38,15 @@ void AVisionLink::SendOutPingPulse()
|
||||
UpdatePulsesRemaining(NumOfPingPulsesLeftInThisCycle);
|
||||
if (NumOfPingPulsesLeftInThisCycle < 0) return;
|
||||
|
||||
FActorSpawnParameters SpawnParams;
|
||||
SpawnParams.SpawnCollisionHandlingOverride = ESpawnActorCollisionHandlingMethod::AlwaysSpawn;
|
||||
FVector SpawnLoc = (GetActorLocation() - EquippedOffset) + EnemyLOSTestActor.GetDefaultObject()->SpawnOffset;
|
||||
//FActorSpawnParameters SpawnParams;
|
||||
//SpawnParams.SpawnCollisionHandlingOverride = ESpawnActorCollisionHandlingMethod::AlwaysSpawn;
|
||||
//FVector SpawnLoc = (GetActorLocation() - EquippedOffset) + EnemyLOSTestActor.GetDefaultObject()->SpawnOffset;
|
||||
|
||||
AActor* LOSTestActor = GetWorld()->SpawnActor<AActor>(EnemyLOSTestActor, SpawnLoc, GetActorRotation(), SpawnParams);
|
||||
TArray<FString> EmptyFStringArray;
|
||||
Cast<AVisionLinkEnemyLOSTest>(LOSTestActor)->TestLOS(EmptyFStringArray, GetOwner());
|
||||
// AActor* LOSTestActor = GetWorld()->SpawnActor<AActor>(EnemyLOSTestActor, SpawnLoc, GetActorRotation(), SpawnParams);
|
||||
// TArray<FString> EmptyFStringArray;
|
||||
// Cast<AVisionLinkEnemyLOSTest>(LOSTestActor)->TestLOS(EmptyFStringArray, GetOwner());
|
||||
|
||||
UE_LOG(LogTemp, Warning, TEXT("Ping Pulse!"));
|
||||
GetWorld()->GetTimerManager().SetTimer(PulseHandle, this, &AVisionLink::SendOutPingPulse, TimeInbetweenPingPulses, false);
|
||||
PlayPingPulseAnim(TimeInbetweenPingPulses);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user