From aa872f4f35890027e65c930cc9cc603b5db22906 Mon Sep 17 00:00:00 2001 From: salaaad2 Date: Sat, 22 Jan 2022 07:39:54 +0100 Subject: Weapons: amazing job adding another weapon salade ! outstanding --- src/wp_shotty.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/wp_shotty.cpp') diff --git a/src/wp_shotty.cpp b/src/wp_shotty.cpp index 7d61ab3..f314e54 100644 --- a/src/wp_shotty.cpp +++ b/src/wp_shotty.cpp @@ -7,7 +7,7 @@ #include "entity.hpp" wp_shotty::wp_shotty(const char* s, const char* r) - : AWeapon(100.0f, 3, 10, 0.5, s, r, "shotty") {} + : AWeapon(100.0f, 3, 10, 0.5, s, r, "shotty", false) {} int wp_shotty::bang(std::vector* enemies, Entity* player) { if (barrel == 0 || GetTime() < (t + cooldown)) { @@ -66,3 +66,7 @@ int wp_shotty::bang(std::vector* enemies, Entity* player) { return (0); } } + +Projectile const& wp_shotty::getProjectile() const { + return (projectile); +} -- cgit v1.2.3