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/weapon.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/weapon.cpp') diff --git a/src/weapon.cpp b/src/weapon.cpp index 4e56117..fb871ed 100644 --- a/src/weapon.cpp +++ b/src/weapon.cpp @@ -16,8 +16,14 @@ AWeapon::AWeapon(float const rg, double const& cd, const char* s, const char* r, - std::string const& nm) - : range(rg), damage(dmg), max(mag), cooldown(cd), name(nm) { + std::string const& nm, + bool const& hasProj) + : range(rg), + damage(dmg), + max(mag), + cooldown(cd), + name(nm), + hasProjectiles(hasProj) { shot = LoadSound(s); reload = LoadSound(r); SetSoundVolume(shot, 0.3f); -- cgit v1.2.3