Compare commits
2 Commits
4e04a7e822
...
a5ae074c2b
Author | SHA1 | Date | |
---|---|---|---|
a5ae074c2b | |||
210e8ab3c9 |
@ -8,8 +8,8 @@ public class vampiresTarget : TargetRules
|
|||||||
public vampiresTarget(TargetInfo Target) : base(Target)
|
public vampiresTarget(TargetInfo Target) : base(Target)
|
||||||
{
|
{
|
||||||
Type = TargetType.Game;
|
Type = TargetType.Game;
|
||||||
DefaultBuildSettings = BuildSettingsVersion.V5;
|
DefaultBuildSettings = BuildSettingsVersion.Latest;
|
||||||
IncludeOrderVersion = EngineIncludeOrderVersion.Unreal5_4;
|
IncludeOrderVersion = EngineIncludeOrderVersion.Latest;
|
||||||
ExtraModuleNames.AddRange( new string[] { "vampires" } );
|
ExtraModuleNames.AddRange( new string[] { "vampires" } );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
#include "Weapon.h"
|
#include "Weapon.h"
|
||||||
|
|
||||||
#include "EXPComponent.h"
|
#include "EXPComponent.h"
|
||||||
|
#include "Kismet/GameplayStatics.h"
|
||||||
|
|
||||||
// Sets default values
|
// Sets default values
|
||||||
AWeapon::AWeapon()
|
AWeapon::AWeapon()
|
||||||
@ -28,7 +29,12 @@ void AWeapon::ResetWeaponTimer()
|
|||||||
|
|
||||||
void AWeapon::FireWeaponAction_Implementation()
|
void AWeapon::FireWeaponAction_Implementation()
|
||||||
{
|
{
|
||||||
// This should be overridden in child weapon classes
|
// This should be overridden in child weapon classes
|
||||||
|
|
||||||
|
if (WeaponActivatedSoundBase)
|
||||||
|
{
|
||||||
|
UGameplayStatics::PlaySound2D(GetWorld(), WeaponActivatedSoundBase);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool AWeapon::UpgradeWeapon_Implementation()
|
bool AWeapon::UpgradeWeapon_Implementation()
|
||||||
|
@ -8,8 +8,8 @@ public class vampiresEditorTarget : TargetRules
|
|||||||
public vampiresEditorTarget(TargetInfo Target) : base(Target)
|
public vampiresEditorTarget(TargetInfo Target) : base(Target)
|
||||||
{
|
{
|
||||||
Type = TargetType.Editor;
|
Type = TargetType.Editor;
|
||||||
DefaultBuildSettings = BuildSettingsVersion.V5;
|
DefaultBuildSettings = BuildSettingsVersion.Latest;
|
||||||
IncludeOrderVersion = EngineIncludeOrderVersion.Unreal5_4;
|
IncludeOrderVersion = EngineIncludeOrderVersion.Latest;
|
||||||
ExtraModuleNames.AddRange( new string[] { "vampires" } );
|
ExtraModuleNames.AddRange( new string[] { "vampires" } );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user