Replaced unreal sound by fmod events

Signed-off-by: TjgL <lithmoneo@gmail.com>
This commit is contained in:
TjgL 2025-03-13 22:15:31 +01:00
parent 024a814424
commit 9b95f5abfd
8 changed files with 13 additions and 13 deletions

BIN
Content/FMOD/Desktop/Master.bank (Stored with Git LFS)

Binary file not shown.

BIN
Content/FMOD/Desktop/Master.strings.bank (Stored with Git LFS)

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -24,7 +24,7 @@ void ALMRevolver::PrimaryFire()
{
if (!Reload())
{
PlaySound(DryFireSound, true);
PlayEvent(DryFireSound);
GetWorldTimerManager().SetTimer(FireTimer, this, &ALMRevolver::AllowRefire, RefireDelay / 2);
}
return;

View File

@ -24,7 +24,7 @@ void ALMShotgun::PrimaryFire()
{
if (!Reload())
{
PlaySound(DryFireSound, true);
PlayEvent(DryFireSound);
GetWorldTimerManager().SetTimer(FireTimer, this, &ALMShotgun::AllowRefire, RefireDelay / 2);
}
return;

View File

@ -47,7 +47,7 @@ void ALMWeaponBase::Setup(USkeletalMeshComponent* Mesh, AActor* CharOwner)
void ALMWeaponBase::OnEquip_Implementation()
{
PlaySound(EquipSound);
PlayEvent(EquipSound);
}
bool ALMWeaponBase::Reload()

View File

@ -80,10 +80,10 @@ protected: /* Weapon Data */
TObjectPtr<UFMODEvent> ReloadSound;
UPROPERTY(EditAnywhere, BlueprintReadWrite,Category="Legumix|Sounds")
TObjectPtr<USoundWave> DryFireSound;
TObjectPtr<UFMODEvent> DryFireSound;
UPROPERTY(EditAnywhere, BlueprintReadWrite,Category="Legumix|Sounds")
TObjectPtr<USoundWave> EquipSound;
TObjectPtr<UFMODEvent> EquipSound;
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="Legumix|Animations", meta=(AllowPrivateAccess=true))
TObjectPtr<UAnimMontage> PrimaryFireAnimation;