Hmm
We should probably stick an "int8 size;" in the Mob class's public variables and "int8 GetSize() { return size; }" and "void SetSize(int8 newsize) { size = newsize; }" in private.
In client.cpp, we should then target.SetSize(newsize) after the "#size" command is called and store the information. That way the size information could be taken into account in the distance formula. The problem is that when clients sign in, I'm not sure if the server sends the user the packet telling him or her the size of spawns, so you could create a size 100 monster, zone in and out, and the monster would probably look normal sized. I'm not sure if this is how it works, but it's just an educated guess. So I think when the user signs it, their .size should be set to 0. It should then go through all the mobs in the zone, and when it encounters a mob with a size > 0 it tells the client. That's how I'd do it. Unless I'm wrong about the whole thing.
|