AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   SOLID_TRIGGER and get_user_aiming (https://forums.alliedmods.net/showthread.php?t=58300)

DotNetJunkie 07-23-2007 12:21

SOLID_TRIGGER and get_user_aiming
 
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.

Rolnaaba 07-23-2007 22:56

Re: SOLID_TRIGGER and get_user_aiming
 
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; }

Rolnaaba 07-23-2007 23:04

Re: SOLID_TRIGGER and get_user_aiming
 
that event is called when someone looks at another person btw.


All times are GMT -4. The time now is 21:24.

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