I am trying to figure out a way to make it so you can only see in front of you...like...
X=Black(Can't see)
O=You
!=Can See
XXXX!
XXX!!
XXO!!
XXX!!
XXXX!
Something like that... Anyways, I'm not sure how I should do this..HUDs...Client Eyes...I was wondering if anyone could put me in the right direction. Thanks.
ID:171746
Aug 15 2004, 1:59 pm
|
|
In response to Goz
|
|
but that's double posting too...and I thought you couldn't bump?
|
In response to FireEmblem
|
|
In response to Goz
|
|
oh..sorry.
|
In response to FireEmblem
|
|
It's ok to bump after 24 hours have passed without a response and your post has passed off that first page (in default forum view).
If you only want to make it appear that you can't see behind you, you can get away with a HUD display that obscures the hidden places. However, if you want to limit players and critters actions affect what is in front of them, it's a bit trickier. First you'll need a proc that returns a list of things in front of the mob. You could loop through everything in view and compare directions, but that's pretty slow. The fastest method I've found is complex, but fast and reliable:
You're still not done yet though. You have a list of atoms in view, now you have to obscure the ones you can't see.
The obscure and old_obs lists may seem to complicate matters needlessly, but it's important. I implemented a version of this without old_obs and connected clients got flickers of areas that they should not have been able to see. |
Dont Double post please you posted here: ID:279940 all you had to do was bump it.
--Goz