void ASCharacter::SetSprinting(bool NewSprinting) { if (bWantsToRun) { StopWeaponFire(); } Super::SetSprinting(NewSprinting); }
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(); }
void AAmethystCharacter::OnStopFire() { StopWeaponFire(); }