ID:174056
 
How would I go about turning off all the automatic stuff when a client connects to a mob?
Ie, the client.eye is set too the new mob when ever client.mob is changed.
Ok. It wasn't too important when I posted this, but now I've ran into a problem with my beloved isometric system. You see my client.eye should always be at locate(7,7,1), but if I switch mobs it will move to the new mob upon connection to it.
Is there some sort of client/Login() or something I can over ride so it won't do this?


PS: I don't usually bump, but I think it's been long enough =P
In response to DarkView
sorry about being totally off-topic...

I don't understand why bumping is frowned upon.. I mean some people might not be able to check the forums everyday, and most people dont dig 2-3 pages deep to help someone with a problem. As long as you wait a day or 2 to bump, I see it as showing the forum dwellers that the post is important to you and gives those who missed the post originally the chance to read it over, so I dont see a problem with it as long as its not abused. Thats just my oppinion.

Trog
In response to Troglodyte
It's generally frowned upon because people tend bump too early. As a rule of thumb, 1 or 2 days is an acceptable time between bumps. Also one bump per topic is usually the limit, unless its a fast paced forum.
In response to DarkView
client/Login(), no. mob/Login(), yes.
In response to Crispy
Yeah but mob/Login() doesn't handle some of the built in client connection stuff (Ie, setting the client.eye to the new mob upon switching client.mob).
I'm pretty sure I'm going to have to request a client/proc/Connect() that handles all the connect to a new mob stuff.
In response to DarkView
You already know where you want focus the eye. Mobs store their client in their client var. Therefore, you can set mob.client.eye in mob.Login(). (Of course, one should make sure client.perspective is set to EYE_PERSPECTIVE.)
In response to ACWraith
ACWraith wrote:
You already know where you want focus the eye. Mobs store their client in their client var. Therefore, you can set mob.client.eye in mob.Login(). (Of course, one should make sure client.perspective is set to EYE_PERSPECTIVE.)


Yeah that works. However in my, Isometric Engine (Yes, I am attempting to brag, but hey its my right =P), it leads to a quick flick of the very ugly map screen when switching mobs if there is any sort of lag.
In response to DarkView
Yeah that works. However in my, Isometric Engine (Yes, I am attempting to brag, but hey its my right =P), it leads to a quick flick of the very ugly map screen when switching mobs if there is any sort of lag.

If you want to handle stuff right when a player logs in do it in client/New() and set up the mob and client eye before assigning the client key to the mob.