void ASCharacter::SetSprinting(bool NewSprinting)
{
	if (bWantsToRun)
	{
		StopWeaponFire();
	}

	Super::SetSprinting(NewSprinting);
}
예제 #2
0
void AAmethystCharacter::OnStartRunningToggle()
{
	AamethystforestPlayerController* MyPC = Cast<AamethystforestPlayerController>(Controller);
	if (MyPC && MyPC->IsGameInputAllowed())
	{
		if (IsTargeting())
		{
			SetTargeting(false);
		}
		StopWeaponFire();
		SetRunning(true, true);
	}
}
void ASCharacter::OnStartFire()
{
	if (IsSprinting())
	{
		SetSprinting(false);
	}

	if (CarriedObjectComp->GetIsCarryingActor())
	{
		StopWeaponFire();

		CarriedObjectComp->Throw();
		return;
	}

	StartWeaponFire();
}
void ASCharacter::OnStopFire()
{
	StopWeaponFire();
}
예제 #5
0
void AAmethystCharacter::OnStopFire()
{
	StopWeaponFire();
}