Merge remote-tracking branch 'origin/Animation' into Polishing-Checkpoints

This commit is contained in:
Rafal Swierczek 2024-05-11 13:22:50 +01:00
commit 29e061a9e6
12 changed files with 25 additions and 22 deletions

Binary file not shown.

View File

@ -108,6 +108,7 @@ void AEndlessVendettaCharacter::ReloadAnimationComplete()
{
if (IsValid(PrimaryWeapon))
{
if (!bIsReloading) return;
PrimaryWeapon->WeaponReload();
}
if (IsValid(SecondaryWeapon))
@ -760,7 +761,8 @@ void AEndlessVendettaCharacter::GunReload()
if (IsValid(PrimaryWeapon))
{
if (PrimaryWeapon->currentAmmoCount == PrimaryWeapon->MagazineSize) return;
PrimaryWeapon->ReloadTimer();
StartReload.Broadcast();
//PrimaryWeapon->ReloadTimer();
bIsReloading = true;
}
else if (IsValid(SecondaryWeapon))
@ -889,7 +891,7 @@ bool AEndlessVendettaCharacter::UpdateGadgetType(TSubclassOf<AGadgetBase> NewGad
if (NewGadgetClass.GetDefaultObject()->IsA(AReconGadget::StaticClass())) ToggleRecon();
else if (NewGadgetClass.GetDefaultObject()->IsA(ACombatGadget::StaticClass())) ToggleCombat();
return true;
}

View File

@ -200,7 +200,8 @@ void ABaseWeaponClass::Fire()
GetWorld()->LineTraceSingleByObjectType(outHit, traceStart, traceEnd, ObjectQueryParams, collisionParams);
WeaponFired.Broadcast();
playerControllerRef->PlayerCameraManager->StartCameraShake(CameraShakeClass, 1);
endlessVendettaChar->PawnNoiseEmitterComp->MakeNoise(endlessVendettaChar, 1, traceStart); //LITERALLY CHANGE THIS FOR SUPPRESSOR AND IT SHOULD WORK LOL
endlessVendettaChar->PawnNoiseEmitterComp->MakeNoise(endlessVendettaChar, 1, traceStart);
//LITERALLY CHANGE THIS FOR SUPPRESSOR AND IT SHOULD WORK LOL
currentAmmoCount -= 1;
GenerateRecoilVector();
ClickDetectionTimer();