I was able to record a demo of this happening in Smashball. I traced it back to EF_NODRAW being set on the client entity for some unknown reason. The client code sets EF_NODRAW on the weapon model on weapon switch but then removes it when it switches to the new weapon. Yet, when this bug is occurring, EF_NODRAW doesn't want to turn off. I set the client to remove EF_NODRAW every frame, but it keeps getting turned on after this bug starts. I can only assume the server is responsible for erroneously turning it on and keeping it on somehow. I also checked and the viewmodel was not dormant on the client.
What's really weird is that if I play the demo to where the view model disappears and then I reset the demo to some point in the past, the view model doesn't reappear. It's still being set to EF_NODRAW. What I did to fix it for now in Smashball is to go into the C_BaseViewModel's ShouldDraw function and comment out the "return BaseClass::ShouldDraw();" line, replacing it with "return true". In Smashball, there's never a time when I need to turn EF_NODRAW on for a viewmodel, and hiding a viewmodel is done elsewhere in the code anyway. On Fri, Jan 23, 2009 at 3:39 PM, Jed <j...@wunderboy.org> wrote: > Funny you should mention this. > > It just started to happen occasionally in our mod about the same time > the "stuck" HL2.exe thing started happening as well. > > > > 2009/1/23 Yorg Kuijs <yorg.ku...@home.nl>: >> Hey list, >> >> weird issue some testers of my mod have been having, I only got this >> like once a long time ago, I also seen it happen several times in the >> mod Smashball so I know I'm not the only one who has this bug. >> >> at random times it stops drawing the viewmodels for some players, they >> can still use their weapons but simply can't see what they're holding! >> After respawn or round changes it sometimes works again, only to >> randomly stop drawing viewmodels again. >> I've asked them to check the command for drawing viewmodel's but that's >> on(I think it's also a cheat so it can't be turned off anyway...) >> >> I looked at the wavelength(which is flooded with spam on the forums...) >> and steam forums, no info on it. >> Anybody here know what's causing it? If I had any idea what triggers it >> then I could track it and hopefully fix it, but it apperently happens >> randomly, sometimes when they get flashed, sometimes when they're >> throwing a grenade, sometimes when they're simply walking around, the >> problem seems so random and there's only like 2 or 3 testers who get it >> often, for the rest of us it's a really rare bug. >> >> _______________________________________________ >> To unsubscribe, edit your list preferences, or view the list archives, >> please visit: >> http://list.valvesoftware.com/mailman/listinfo/hlcoders >> >> > > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list archives, please > visit: > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders