Raised This Month: $ Target: $400
 0% 

get_user_aim help...


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
k007
BANNED
Join Date: Mar 2006
Location: bacon?
Old 11-06-2006 , 23:00   get_user_aim help...
Reply With Quote #1

how do i find...
1. if user is aiming at bot
2. aining at one player
3. aiming at more than one player
4. at a ent with a certian model or type...etc
ty..
k007 is offline
Send a message via MSN to k007
teame06
i have a hat
Join Date: Feb 2005
Location: Hat City
Old 11-06-2006 , 23:22   Re: get_user_aim help...
Reply With Quote #2

For question 3 I dunno. With get_user_aiming it not possible though.

Code:
function(id) {     new body, index;     get_user_aiming(id, index, body);     if(0 < index > get_maxplayers())     {         if(is_user_bot(index))         {               // Is bot         } else {             // Player         }       } else if(index > get_maxplayers()) {         // Entity         By checking the classname, model, or etc     } }
__________________
No private support via Instant Message
GunGame:SM Released
teame06 is offline
Send a message via AIM to teame06
k007
BANNED
Join Date: Mar 2006
Location: bacon?
Old 11-06-2006 , 23:25   Re: get_user_aim help...
Reply With Quote #3

so 2 returns the first one is players the second one is entites? and for 3 can't i like if the index is higher than 1 or something, i mean whats the diffrence when look at one index or 2 won't the id return more than 1?
k007 is offline
Send a message via MSN to k007
teame06
i have a hat
Join Date: Feb 2005
Location: Hat City
Old 11-06-2006 , 23:30   Re: get_user_aim help...
Reply With Quote #4

No, first parameter of get_user_aiming is the person who you are checking their aim. Second argument is what entity index is return byref. So if the index is greater than 0 and less than or equal 32 than it is a player. If it Greater than 32 than it an entity.
__________________
No private support via Instant Message
GunGame:SM Released
teame06 is offline
Send a message via AIM to teame06
k007
BANNED
Join Date: Mar 2006
Location: bacon?
Old 11-06-2006 , 23:32   Re: get_user_aim help...
Reply With Quote #5

so there is no possible way to find if out if hes aiming at more than one player...?
edit: how about tryin to use find_ent_in_sphre on the index of the player like when u check if he is aimin at someone and then check if there is players beside that player(in the sphre) but i need the index of the aimed at player!?
k007 is offline
Send a message via MSN to k007
The Specialist
BANNED
Join Date: Nov 2006
Old 11-06-2006 , 23:47   Re: get_user_aim help...
Reply With Quote #6

Code:
function(id) {     new body, index;     get_user_aiming(id, index, body);     if(0 < index > get_maxplayers())     {         if(is_user_bot(index))         {               // Is bot         } else {             // Player           find_sphere_class(0,"player",MAX_DISTANCE ,entlist,700 , 1 )         }       } else if(index > get_maxplayers()) {         // Entity         By checking the classname, model, or etc     } }
The Specialist is offline
Send a message via AIM to The Specialist
k007
BANNED
Join Date: Mar 2006
Location: bacon?
Old 11-06-2006 , 23:50   Re: get_user_aim help...
Reply With Quote #7

ur code make no sence i want 4 return bot, player, more than one player, entity
k007 is offline
Send a message via MSN to k007
VEN
Veteran Member
Join Date: Jan 2005
Old 11-07-2006 , 04:36   Re: get_user_aim help...
Reply With Quote #8

Use traceline for #3.
VEN is offline
organizedKaoS
Senior Member
Join Date: Feb 2006
Old 11-07-2006 , 12:21   Re: get_user_aim help...
Reply With Quote #9

For #3...jghg made a plugin that sends an enemy spotted radio message with an alt message saying how many enemys spotted....by how many are in sight of the transmitting player.

Maybe his code could help you there.

Enemy Spotted::JGHG
organizedKaoS is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 11-07-2006 , 13:20   Re: get_user_aim help...
Reply With Quote #10

He said "aiming", this is a different things.
Quote:
aiming at more than one player
VEN is offline
Reply


Thread Tools
Display Modes

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 06:55.


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