ValveSoftware / steam-for-linux

Issue tracking for the Steam for Linux beta client
4.25k stars 175 forks source link

[CS1.6] Bullet vector calculation is wrong (REG) #1110

Closed MPNumB closed 11 years ago

MPNumB commented 11 years ago

Not many know, but bullet vectors are calculated kind of wrong.

What is happening is, that m_flAccuracy variable is updated after the shot is fired. Not before, what is the reason for the glitch.

This effects the gameplay quite much. You can attempt to see it yourself by typing cl_lw 0 (so it will show actual bullet location decals), buy ak47, fire about 20 shots non-stop, wait for recoil to cool down (make sure you don't reload or switch weapons), duck, don't move, make sure you are on ground, and fire one single bullet. Now you will see that this bullet is highly off target.


While on this subject, I also must say that scout is quite inaccurate on long range if ducked. It would be really appreciated if standing accuracy would be changed from 0.007 to at least 0.003.


Plus sg550 has really bad math (the worse the spread should be, the better it gets). I'd recommend to check code of this amxmodx plugin what fixes this accuracy based issues: http://forums.alliedmods.net/showthread.php?p=1549133 with testing I found that best fix for this weapon is: { m_flAccuracy = ( 0.65 + ( gpGlobals->time - m_flLastFire ) ) * 0.725; if( m_flAccuracy > 0.98 ) m_flAccuracy = 0.98; }


And I don't want to report too much, but g3sg1 has no active accuracy calculation at all. I mean the m_flAccuracy variable does get updated, but it's never used. I also would recommend to check/test the code/math of it, cause it seems to be have the same glitch as sg550 (the more spread you should get, the more accurate it becomes).

InmanInman commented 11 years ago

I wonder if this should even be fixed, now that people have gotten so used to it

MPNumB commented 11 years ago

How people can get used to it? this spread is as predictable as shooting with awp unzoomed, while falling down at high speed. It does have a pattern, but it's almost as random, and only thing people can get used to is pressing Q twice after a spread, which takes time and makes gameplay experience worse.

r3n4m3 commented 11 years ago

absolutely needed

idderf commented 11 years ago

agreed

Reyer commented 11 years ago

Yeah... that is pretty annoying

r3n4m3 commented 11 years ago

will it be implement?

MPNumB commented 11 years ago

I have no idea. I moved this issue to: https://github.com/ValveSoftware/halflife/issues/83