ValveSoftware / csgo-demoinfo

CS:GO demo parsing tool
BSD 2-Clause "Simplified" License
489 stars 101 forks source link

Question: Where does a bullet hit? #34

Closed tobuhl closed 4 years ago

tobuhl commented 4 years ago

Hi, I have a question regarding the postion/angle of a bullet: When a player moves while shooting there will be a accuracy penalty. It is easy to find the view angle of the player (m_angRotation) but how do I figure out where a bullet hits when the player has an accuracy penalty while moving?

I know how to find m_fAccuracyPenalty, but this is just a float value. What I need is the angle or a hit position.

Can anybody help?

tobuhl commented 4 years ago

Since the bullet_impact event isn't networked this question is obsolete. Bullets which aren't hitting a player are generated at client side, which means that every client has is own version of bullet impacts.