-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
isWalking flag is not actually walking #318
Comments
I implemented a check that checks if players is moving based on velocity. Basically checked all shots that occured when velocity was higher than 0. It seems that pro players move 60-80% of shots they take. This means there might not be a accuracy penalty while moving in very low speeds. I think a good thing to implement is this https://github.com/perilouswithadollarsign/cstrike15_src/blob/f82112a2388b841d72cb62ca48ab1846dfcc11c8/game/shared/cstrike15/weapon_csbase.cpp#L1208 This allows to check how much penalty users get during shooting, which basically means how efficient they are. |
thanks for the detailed analysis @sjaanus - I think this may indeed be worth re-implementing. PRs welcome, otherwise I'll see if/when I can get to it. |
Do you know how much velocity affects accuracy? Like, lets say velocity is on scale 0 to 250. I checked if all values are over 0, then player is moving. But maybe when velocity is like 1, then player gets no penalty. |
I would say this is the key bit
and then
|
the code you linked seems to cover all these areas I think |
Do you have any examples where you call methods from game/shared/cstrike15/weapon_csbase.cpp? This could help to a right path. |
we can't call any source-engine code from this library. it has to be re-implemented in Go. but I think the data is all there, e.g. let me know if you're missing any of the variables used in the calculation and I'll try to dig them up |
Okay that is over my head. The method I linked, there are too many variables in there. Have never touched csgo source and Go language before. Not a good starter project 😄 |
fair enough @sjaanus 😅 - yeah most new features are pretty tricky now, the easy stuff is mostly done 😞 I'll see if I can get to this soon ™️ but I wouldn't hold my breath to be fair |
Also mentioned in #317
isWalking
is using underlying CSGO flagm_bIsWalking
, which actually means that user is holding walk button.Also reproduced it in local machine, by standing still, holding walk key and attacking enemy. All hits were done and
isWalking
was true.The text was updated successfully, but these errors were encountered: