When the player presses E, m_bIsControllingBot is probably set to true, and m_iControlledBotEntIndex is set to the entity index of the bot they're observing.
Each frame you want to loop through all the players. If one has m_bIsControllingBot and m_iControlledBotEntIndex set, then you want to use that player's last user command as the user command for your bot. Kind regards, *Saul Rennison* On 2 June 2012 22:42, Andreas Grimm <[email protected]> wrote: > Hello Valve,**** > > ** ** > > I am currently testing my own bot engine in CS:GO.**** > > It seems to work very well, but I have a problem with the "control bot" > feature.**** > > ** ** > > The client gui displays the "[E] Control Bot" message on my bots, but when > I press the use key then nothing happens.**** > > That it has no effect for my bot engine is clear, but I could easily turn > it off when I can see, that a player controls the player, but pressing the > use key has absolutely no effect for the human client, too...**** > > ** ** > > I played around with the following 3 net props:**** > > ** ** > > m_bIsControllingBot**** > > m_bCanControlObservedBot**** > > m_iControlledBotEntIndex**** > > ** ** > > But changing the values have no effect.**** > > ** ** > > May I ask if it's possible to control third party bots in general?**** > > If yes, could you explain that system a little bit, that I am able to > reproduce this on my side? And if not, why not? *cries a river* ;) ... but > is there any way to hide the "[E] Control Bot" messsage for my bot players? > **** > > ** ** > > thanks and regards**** > > - Andreas**** > > _______________________________________________ > Csgo_servers mailing list > [email protected] > https://list.valvesoftware.com/cgi-bin/mailman/listinfo/csgo_servers >
_______________________________________________ Csgo_servers mailing list [email protected] https://list.valvesoftware.com/cgi-bin/mailman/listinfo/csgo_servers
