p2sr / SourceAutoRecord

Speedrun plugin for Source engine games.
MIT License
89 stars 27 forks source link

Patch the viewmodel sometimes disappearing #210

Open ThisAMJ opened 7 months ago

ThisAMJ commented 7 months ago

Notably when doing toast skip or sometimes when starting Underground (Discord)

ThisAMJ commented 3 months ago

so m_hViewModel gets set to -1 (FFFFFFFF) instead of 0 or an entity handle to the viewmodel. As yet unclear why, I'm working on hooking the CreateViewModel and DestroyViewModels methods on the player. (CPortal_Player? or does it use the base class?) Maybe sometime this week.