Unique Client-Side Bots Possible?
by Scott Doerrfeld · in Technical Issues · 05/22/2007 (12:38 pm) · 2 replies
I am implementing a program in which several clients all connect to a central server. In this server, I have a bot which the clients use to gain access to certain information. When a player wants to use the bot, they double click it and it walks over and begins its sequence.
My question is, is it possible to implement these bots so that when one user initializes it, the sequence only occurs on their individual client so the bot remains in its original position on all other clients, allowing for them to use it when they wish? Any suggestions or resources would be helpful as I've been searching for quite some time. Thanks.
My question is, is it possible to implement these bots so that when one user initializes it, the sequence only occurs on their individual client so the bot remains in its original position on all other clients, allowing for them to use it when they wish? Any suggestions or resources would be helpful as I've been searching for quite some time. Thanks.
About the author
#2
If the client already has the data that needs to be displayed then make the object a client-side only object, create it entirely on the client and let it do its thing.
If the server has all sorts of information that should only be transmitted through the bot then I would suggest creating a non-ghosted server object AND a client side only object. House both these in the same position in the world (create them all from one spawn point or whatever) and have the client side objects talk to the server object and request information. The server object just sits there in one position and never moves. It only handles and returns messages sent by it's client only counterparts.
You could however modify the player code and probably most of the base classes to allow each ghost its own state but that would be a ridiculous amount of modding when you get the same out of two objects.
Again, just suggestions that I hope help.
10/10/2007 (6:43 am)
To be fair I have no idea exactly how to do what I am about to say or even if they will work exactly but they are suggestions and hopefully hints in the right direction.If the client already has the data that needs to be displayed then make the object a client-side only object, create it entirely on the client and let it do its thing.
If the server has all sorts of information that should only be transmitted through the bot then I would suggest creating a non-ghosted server object AND a client side only object. House both these in the same position in the world (create them all from one spawn point or whatever) and have the client side objects talk to the server object and request information. The server object just sits there in one position and never moves. It only handles and returns messages sent by it's client only counterparts.
You could however modify the player code and probably most of the base classes to allow each ghost its own state but that would be a ridiculous amount of modding when you get the same out of two objects.
Again, just suggestions that I hope help.
Torque Owner Adam \\\"Adam487\\\" Oachs
Unless you made some hacked up way of copying everything the client sees, putting it somewhere else, and moving the copies when the real thing moves