View Single Post
Re: Detecting fall damage in a safe way?
Old
  (#9)
Cheeseh
[rcbot]
 
Cheeseh's Avatar
 
Status: Offline
Posts: 361
Join Date: Dec 2003
Location: China
Default Re: Detecting fall damage in a safe way? - 13-01-2004

UpdateClientData is only used in the bot code to find out if the bots weapons have been changed and it's weapons haven't been updated yet. You only need to use it if a bot drops its weapon, as it doesnt get removed from the bots weapons bitmask (but it does in the pev->weapons bitmask).

UpdateClientData uses some cpu I think, so I just replaced it by checking pev->weapons instead of cd.weapons that comes from UpdateClientData.
  
Reply With Quote