Replaced unreal sound by fmod events
Signed-off-by: TjgL <lithmoneo@gmail.com>
This commit is contained in:
parent
024a814424
commit
9b95f5abfd
BIN
Content/FMOD/Desktop/Master.bank
(Stored with Git LFS)
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)
BIN
Content/FMOD/Desktop/Master.strings.bank
(Stored with Git LFS)
Binary file not shown.
BIN
Content/Legumix/Weapon/Revolver/BP_Revolver.uasset
(Stored with Git LFS)
BIN
Content/Legumix/Weapon/Revolver/BP_Revolver.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
Content/Legumix/Weapon/Shotgun/BP_Shotgun.uasset
(Stored with Git LFS)
BIN
Content/Legumix/Weapon/Shotgun/BP_Shotgun.uasset
(Stored with Git LFS)
Binary file not shown.
@ -24,7 +24,7 @@ void ALMRevolver::PrimaryFire()
|
|||||||
{
|
{
|
||||||
if (!Reload())
|
if (!Reload())
|
||||||
{
|
{
|
||||||
PlaySound(DryFireSound, true);
|
PlayEvent(DryFireSound);
|
||||||
GetWorldTimerManager().SetTimer(FireTimer, this, &ALMRevolver::AllowRefire, RefireDelay / 2);
|
GetWorldTimerManager().SetTimer(FireTimer, this, &ALMRevolver::AllowRefire, RefireDelay / 2);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
@ -24,7 +24,7 @@ void ALMShotgun::PrimaryFire()
|
|||||||
{
|
{
|
||||||
if (!Reload())
|
if (!Reload())
|
||||||
{
|
{
|
||||||
PlaySound(DryFireSound, true);
|
PlayEvent(DryFireSound);
|
||||||
GetWorldTimerManager().SetTimer(FireTimer, this, &ALMShotgun::AllowRefire, RefireDelay / 2);
|
GetWorldTimerManager().SetTimer(FireTimer, this, &ALMShotgun::AllowRefire, RefireDelay / 2);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
@ -47,7 +47,7 @@ void ALMWeaponBase::Setup(USkeletalMeshComponent* Mesh, AActor* CharOwner)
|
|||||||
|
|
||||||
void ALMWeaponBase::OnEquip_Implementation()
|
void ALMWeaponBase::OnEquip_Implementation()
|
||||||
{
|
{
|
||||||
PlaySound(EquipSound);
|
PlayEvent(EquipSound);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ALMWeaponBase::Reload()
|
bool ALMWeaponBase::Reload()
|
||||||
|
@ -80,10 +80,10 @@ protected: /* Weapon Data */
|
|||||||
TObjectPtr<UFMODEvent> ReloadSound;
|
TObjectPtr<UFMODEvent> ReloadSound;
|
||||||
|
|
||||||
UPROPERTY(EditAnywhere, BlueprintReadWrite,Category="Legumix|Sounds")
|
UPROPERTY(EditAnywhere, BlueprintReadWrite,Category="Legumix|Sounds")
|
||||||
TObjectPtr<USoundWave> DryFireSound;
|
TObjectPtr<UFMODEvent> DryFireSound;
|
||||||
|
|
||||||
UPROPERTY(EditAnywhere, BlueprintReadWrite,Category="Legumix|Sounds")
|
UPROPERTY(EditAnywhere, BlueprintReadWrite,Category="Legumix|Sounds")
|
||||||
TObjectPtr<USoundWave> EquipSound;
|
TObjectPtr<UFMODEvent> EquipSound;
|
||||||
|
|
||||||
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="Legumix|Animations", meta=(AllowPrivateAccess=true))
|
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category="Legumix|Animations", meta=(AllowPrivateAccess=true))
|
||||||
TObjectPtr<UAnimMontage> PrimaryFireAnimation;
|
TObjectPtr<UAnimMontage> PrimaryFireAnimation;
|
||||||
|
Reference in New Issue
Block a user