View Single Post
Re: Detecting when func_door_rotating entities open
Old
  (#5)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default Re: Detecting when func_door_rotating entities open - 05-05-2004

...and as botman says, this is a very unreliable method. More advanced MODs may very well decide to change the way the door code works in HL. Then you will read an incorrect variable. Or they simply relocated this variable elsewhere.

I'd not advise anybody to do anything with pvPrivateData if you want robust code. You will figure out the offset and it will work, but it will be guaranteed to work ONLY for your version of the engine and your version of the MOD.

The only thing that'll work for sure no matter which MOD you play is v.nextthink.



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
  
Reply With Quote