Raised This Month: $ Target: $400
 0% 

Determine entity user is looking at


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SirTiger
Member
Join Date: Mar 2004
Old 04-08-2004 , 16:12   Determine entity user is looking at
Reply With Quote #1

Howdy,
I like to know how you determine what the brush number is of the entity that the user is looking at.

Thanks in advance.
SirTiger is offline
decemberx
Junior Member
Join Date: Apr 2004
Location: CT
Old 04-22-2004 , 09:54   looking at???
Reply With Quote #2

I dont think thats possible....because your view changes every friggin second..........but...if you really wanted to know something liek that try decompiling a map and opening it worldcraft and going ot the info part of the map and FIGURE IT OU!.........hope ive helped



~decemberx
__________________
DecemberX - "Fckin Sknks"
decemberx is offline
Send a message via AIM to decemberx
xeroblood
BANNED
Join Date: Mar 2004
Location: Toronto, Canada
Old 04-22-2004 , 12:48  
Reply With Quote #3

try playing around with these functions:

from amxmodx.inc:
Code:
/* If player doesn't hit at anything function returns 0.0, * in other case the distance between hit point and player is returned. * If player is aiming at another player then the id and part of body are set. */ native Float:get_user_aiming(index,&id,&body,dist=9999); /* Gets origin from player. * Modes: * 0 - current position. * 1 - position from eyes (weapon aiming).    **Look Here!** * 2 - end position from player position. * 3 - end position from eyes (hit point for weapon). * 4 - position of last bullet hit (only CS). */ native get_user_origin(index, origin[3], mode = 0);

from engine.inc:
Code:
/* Will return the contents of a point (inside map? in sky? outside map? etc.). */ native PointContents(Float:fCheckAt[3]);

Hope that helps!
xeroblood is offline
Send a message via MSN to xeroblood
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:48.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode