View Single Post
Re: Resurrected bots
Old
  (#3)
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: Resurrected bots - 12-05-2004

This is yet another example of how unsafe it is to write arbitrary stuff in the entvars when the engine doesn't expect it.

By setting this, you are overwriting what the engine already writes at the same location. The question is whether you write it before the engine passed here or after it.

And there's also a problem with the clients. All your clients' DLL (including your listen server client) are programmed to know that when a player respawns, his health starts at 100. You change this by the engine side. But then, all the clients' predictions get out of sync. If you make a change to a player's health arbitrarily, send an update network message to all your clients.



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