Can anyoen suggest to me how I would make it so that once the user has clicked a verb, they will look ahead a number of squares before the view being centred on them again?
- GunRunner
ID:169915
Apr 14 2005, 2:35 am
|
|
Apr 14 2005, 3:10 am
|
|
What you need is client/eye.
|
In response to Loduwijk
|
|
thanks heaps!
|
In response to Loduwijk
|
|
Lod, while on this topic, is there a way to go beyond a the player's view, but at the same time using the mob perspective? I phased out my sniper rifle due to that problem, and I can't find a way around it.
|
In response to Crashed
|
|
You want to use client.eye and client.perspective. Eye places the view, perspective is used for view calculations.
|
In response to Crashed
|
|
The whole point of the mob perspective is that it calculates according to what the mob sees. Anything outside the mob's view range it doesn't see, therefor more distant values for client/eye in the mob perspective should logically black you out. It is supposed to be that way.
Why would you want to use the mob's perspective yet still see far away? That would be like setting up a camera on the other side of a hill then asking someone "What do you see around the camera without actually looking into it?" The eye variable actually equals the object it is following around, so you can calculate things from the eye's perspective if you want for viewing purposes. Make a new mob at the eye's location, set its sight to whatever the client's mob has so its view is identicle to what client.mob would have there, and call view with the new object passed to it. client That should give you a return value just as if your own mob actually were seeing it, if that is what you want. So it is as good as having mob perspective far away. To answer you bluntly now, no. The whole purpose of MOB_PERSPECTIVE is that it only allows you to see what the mob can see. EYE_PERSPECTIVE's purpose is exactly what you want, and was made for that reason. And again, why do you have to keep it in the mob's perspective? |