View Single Post
Re: switching player/bot:coding question
Old
  (#8)
SamPlay
Member
 
Status: Offline
Posts: 46
Join Date: Jan 2006
Default Re: switching player/bot:coding question - 05-02-2010

Hi,
I agree and that is what I am doing.
-the human player and the bot keep their edict during the swap( my understanding is that the ability to issue command through the keyboard is associated with the edict).
-I swap edict data ( ie the Private data POINTER and the entvars data VALUES), except for FL_CLIENT/FL_FAKECLIENT flags.
-I adjust to maintain pointers consistency
-I send messages to the Human player to update screen data.
The problem I am left with is that I do not know how to adjust crosshair ( swapping between a zoomed sniper rifle and a pistol for example)
  
Reply With Quote