Raised This Month: $ Target: $400
 0% 

Is a message triggered when you look at someone in DOD?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Geesu
Veteran Member
Join Date: Mar 2004
Location: Cincinnati, OH
Old 06-02-2006 , 01:39   Is a message triggered when you look at someone in DOD?
Reply With Quote #1

Or is any pdata value or entity data set when you look at a player?

I know CS has the StatusValue message that is triggered everytime you look at someone...

Anyone know if there is a similar message? (I know I can loop and check get_user_aiming, but I'd prefer not to)

Thanks,
Josh
__________________
Need war3ft help? DO NOT PM ME... Check the forums
Geesu is offline
Send a message via AIM to Geesu Send a message via MSN to Geesu
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 06-02-2006 , 07:36  
Reply With Quote #2

Try the message logging plugin by Damaged Soul.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
Geesu
Veteran Member
Join Date: Mar 2004
Location: Cincinnati, OH
Old 06-02-2006 , 08:39  
Reply With Quote #3

I did, thats why i'm posting here...
__________________
Need war3ft help? DO NOT PM ME... Check the forums
Geesu is offline
Send a message via AIM to Geesu Send a message via MSN to Geesu
VEN
Veteran Member
Join Date: Jan 2005
Old 06-03-2006 , 14:22  
Reply With Quote #4

I think somethig like this will work, if not, you can try post hook.
But do not run this on <1.75 because of that bug: http://forums.alliedmods.net/showthread.php?t=28004

Code:
new g_phit[33] public plugin_init() {     register_forward(FM_TraceLine, "forward_trace_line") } public forward_trace_line(const Float:start[3], const Float:dest[3], ignore_monsters, skip_ent, ptr) {     if (skip_ent && is_user_alive(skip_ent)) {         new phit = get_tr2(ptr, TR_pHit)         if (phit != g_phit[skip_ent]) {             if (phit && is_user_alive(phit))                 server_print("%d start aiming at %d", skip_ent, phit)             g_phit[skip_ent] = phit         }     } }
VEN is offline
Geesu
Veteran Member
Join Date: Mar 2004
Location: Cincinnati, OH
Old 06-03-2006 , 17:21  
Reply With Quote #5

DUH - gosh so simple!!! WHy didn't I think of that LOL... I've been doing the get_user_aiming check every 0.1 seconds... sweet thanks
__________________
Need war3ft help? DO NOT PM ME... Check the forums
Geesu is offline
Send a message via AIM to Geesu Send a message via MSN to Geesu
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 16:33.


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