Wall ents
How do I tell if what I'm looking at is a wall?
|
Well I don't think map walls are entities. I have a little plugin that tells you what entity you're looking at (ID, classname, etc), and it tells me i'm not pointing at an entity when I point at a wall.
HOWEVER, walls created by that plugin (I forget the name) are entities and use the classname "func_wall" I think. So you could check what the user is pointing at, and if the entity classname is "func_wall", they're looking at a man-made wall. Also, trace_line may be what you're looking for. You specify a start and end position, and qutoing the manual: Quote:
All theoratical, I'd try myself but I'm too lazy :oops: |
I would have to say this. ---Be warned, spam---
You go up to it and ask it if it's a wall. ;) ---end spam--- (I had to do it. :P <3 v3x. ) |
Quote:
|
Why didn't I think of that? :shock:
|
Just a guess (since I have never tried doing what you want), but maybe this function will help ya?
From engine.inc Code:
Then, with the return value compare it to one of the following contents: From engine_const.inc Code:
I would assume that solid walls (Brush Based walls, not "func_wall" entities) would return CONTENTS_SOLID, but I could be wrong.. Anyway, I hope that helps.. |
Actually, now that I think about it.. I could probably just use that CONTENTS_SOLID thinger. I'll try and figure this out, lot's more questions to come now that I'm learning more about the Engine module. :)
|
what about touching the wall?
|
Huh?
|
| All times are GMT -4. The time now is 16:38. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.