MCPcopy Create free account
hub / github.com/Voidware-Prohibited/ALSXT / Tick

Method Tick

Source/ALSXT/Private/AlsxtCharacter.cpp:749–780  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

747void AAlsxtCharacter::OnOverlayModesChanged_Implementation(const FGameplayTagContainer& PreviousOverlayModes){}
748
749void AAlsxtCharacter::Tick(const float DeltaTime)
750{
751 Super::Tick(DeltaTime);
752
753 RefreshVaulting();
754
755 // if (GetDesiredFreelooking() == ALSXTFreelookingTags::True)
756 // {
757 //
758 // }
759
760 FVector Difference = GetActorUpVector() - GetCharacterMovement()->CurrentFloor.HitResult.Normal;
761 float Angle = FMath::RadiansToDegrees(FMath::Atan2(Difference.X, Difference.Y)) -90;
762 if (Angle > 45.00)
763 {
764 // GEngine->AddOnScreenDebugMessage(-1, 15.0f, FColor::Green, FString::Printf(TEXT("%f"), Angle));
765 }
766
767 if (IAlsxtHeldItemInterface::Execute_IsHoldingAimableItem(this) && ((GetDesiredCombatStance() == ALSXTCombatStanceTags::Ready) || (GetDesiredCombatStance() == ALSXTCombatStanceTags::Aiming)))
768 {
769 FAlsxtAimState NewAimState = GetAimState();
770 // OverlaySkeletalMesh->GetSock
771 // NewAimState.CurrentHeadTargetTransform.Location = IALSXTCharacterInterface::Execute_GetCharacterFirearmSightLocation(this);
772 }
773
774 // BreathState.TargetState = CalculateTargetBreathState();
775
776 // if (ShouldTransitionBreathState())
777 // {
778 // TransitionBreathState();
779 // }
780}
781
782void AAlsxtCharacter::NotifyControllerChanged()
783{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected