diff --git a/Source/Nakatomi/NakatomiCharacter.cpp b/Source/Nakatomi/NakatomiCharacter.cpp index 551e62a..624c3ff 100644 --- a/Source/Nakatomi/NakatomiCharacter.cpp +++ b/Source/Nakatomi/NakatomiCharacter.cpp @@ -208,6 +208,10 @@ int ANakatomiCharacter::GetCurrentInventorySlot() return CurrentInventorySlot; } +void ANakatomiCharacter::OnFire() +{ +} + void ANakatomiCharacter::CalculateHits(TArray* hits) { } diff --git a/Source/Nakatomi/NakatomiCharacter.h b/Source/Nakatomi/NakatomiCharacter.h index bd43fa5..09105ce 100644 --- a/Source/Nakatomi/NakatomiCharacter.h +++ b/Source/Nakatomi/NakatomiCharacter.h @@ -79,6 +79,8 @@ public: int GetCurrentInventorySlot(); + virtual void OnFire(); + protected: virtual void CalculateHits(TArray* hits); diff --git a/Source/Nakatomi/PlayerCharacter.h b/Source/Nakatomi/PlayerCharacter.h index 9a06286..f8cffec 100644 --- a/Source/Nakatomi/PlayerCharacter.h +++ b/Source/Nakatomi/PlayerCharacter.h @@ -116,7 +116,7 @@ public: void WeaponSwitchingCallback(const FInputActionInstance& Instance); - void OnFire(); + virtual void OnFire() override; void WeaponCooldownHandler();