This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

SOLID_TRIGGER and get_user_aiming


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DotNetJunkie
Senior Member
Join Date: May 2005
Location: In front of my pc
Old 07-23-2007 , 12:21   SOLID_TRIGGER and get_user_aiming
Reply With Quote #1

Anyone got any ideas as to how to get get_user_aiming to detect a
SOLID_TRIGGER entity?

I've been searching around but no solutions yet and I thought about
writing my own get_user_aiming function using the tracing functions
available in FakeMeta but I'm not sure if it would work.
__________________
DotNetJunkie is offline
Send a message via ICQ to DotNetJunkie Send a message via AIM to DotNetJunkie Send a message via MSN to DotNetJunkie Send a message via Yahoo to DotNetJunkie
Rolnaaba
Veteran Member
Join Date: May 2006
Old 07-23-2007 , 22:56   Re: SOLID_TRIGGER and get_user_aiming
Reply With Quote #2

Code:
register_event("StatusValue", "_StatusValue", "be", "1=2", "2!0"); public _StatusValue(targeter) {     new target = read_data(2);     new solid = pev(target, pev_solid); //detect solid     /*pev_solid returns the following:         SOLID_NOT                       0           // No interaction with other objects         SOLID_TRIGGER                   1           // Touch on edge, but not blocking         SOLID_BBOX                      2           // Touch on edge, block         SOLID_SLIDEBOX                  3           // Touch on edge, but not an onground         SOLID_BSP                       4           // BSP clip, touch on edge, block     */         if(solid == SOLID_TRIGGER) {         //then they solid,     }         return PLUGIN_CONTINUE; }
__________________
DO NOT PM me about avp mod.

Last edited by Rolnaaba; 07-23-2007 at 23:02.
Rolnaaba is offline
Rolnaaba
Veteran Member
Join Date: May 2006
Old 07-23-2007 , 23:04   Re: SOLID_TRIGGER and get_user_aiming
Reply With Quote #3

that event is called when someone looks at another person btw.
__________________
DO NOT PM me about avp mod.
Rolnaaba is offline
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 16:45.


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