AliYousuf / hedgewars

Automatically exported from code.google.com/p/hedgewars
GNU General Public License v2.0
0 stars 0 forks source link

Sniper rifle cancels laser sight tool #402

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Activate laser sight
2. Shoot from sniper rifle

What is the expected output? What do you see instead?
I should be able to shoot second time with sniper rifle using laser sight, also 
with any other weapons in multiattack mode

Original issue reported on code.google.com by unC0Rr on 31 Jul 2012 at 3:21

GoogleCodeExporter commented 8 years ago
Yeah, that's a side effect of adding unlimited attacks mode.  I guess the test 
for laser sight could check CurAmmoGear? 

Original comment by kyberneticist@gmail.com on 31 Jul 2012 at 5:43

GoogleCodeExporter commented 8 years ago
Not only unlimited attacks mode, second shot from sniper rifle also has no 
laser sight (the one that makes it to not shake, like first shot). Sniper rifle 
should just restore laser sight flag after attack (or how it is implemented).

Original comment by unC0Rr on 2 Aug 2012 at 6:15

GoogleCodeExporter commented 8 years ago
Right. That was deliberate actually.
I thought one shot w/o shaking was enough. Was more a balance thing.

But, I guess I can just rework it so that CurAmmoGear is checked for laser 
sight,
and if lasersight is not set as a game flag, but the const is set, then it can 
not shake, based on the shot count.

Original comment by kyberneticist@gmail.com on 2 Aug 2012 at 4:31

GoogleCodeExporter commented 8 years ago

Original comment by unC0Rr on 16 Aug 2013 at 9:45