diff options
author | salaaad2 <arthurdurant263@gmail.com> | 2022-01-22 07:39:54 +0100 |
---|---|---|
committer | salaaad2 <arthurdurant263@gmail.com> | 2022-01-22 07:39:54 +0100 |
commit | aa872f4f35890027e65c930cc9cc603b5db22906 (patch) | |
tree | 48b53e75fd8ed0ac7bea62c73ddd85975cc47f43 /src/weapon.cpp | |
parent | Parsing: the great rework (tm) finally works as intended (diff) | |
download | threshold-aa872f4f35890027e65c930cc9cc603b5db22906.tar.gz threshold-aa872f4f35890027e65c930cc9cc603b5db22906.tar.bz2 threshold-aa872f4f35890027e65c930cc9cc603b5db22906.tar.xz threshold-aa872f4f35890027e65c930cc9cc603b5db22906.tar.zst threshold-aa872f4f35890027e65c930cc9cc603b5db22906.zip |
Weapons: amazing job adding another weapon salade ! outstanding
Diffstat (limited to 'src/weapon.cpp')
-rw-r--r-- | src/weapon.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
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); |