Raised This Month: $ Target: $400
 0% 

How to get where a player is aiming...


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Neo-Vortex
Senior Member
Join Date: Jun 2004
Location: Australia
Old 06-21-2004 , 21:48   hmmm
Reply With Quote #4

grep is your friend

if your not on *NIX, then this is of no use to you though...

anyway, its in amxmodx.inc

although, its not as you say...

its like this in the include file:

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);

although get_user_origion will beable to tell you where your aiming (i think)

Code:
/* Gets origin from player. * Modes: * 0 - current position. * 1 - position from eyes (weapon aiming). * 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);

using mode 3, but yeah, i am a real n00b with small scripting so yeah, i may be wrong... but anyway, what is with get_user_aiming? what ive got in the include file is way diff to what you said it was...
Neo-Vortex is offline
 



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 14:39.


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