Raised This Month: $32 Target: $400
 8% 

Solved TR_EnumerateEntities is using trigger abs/bbox


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
foon
Member
Join Date: Dec 2018
Old 12-25-2020 , 03:46   TR_EnumerateEntities is using trigger abs/bbox
Reply With Quote #1

im trying to detect if a person is standing in a trigger using TR_EnumerateEntities. i have a problem where if the map maker grouped the triggers together, it uses (im assuming) the abs/bbox of the grouped trigger instead of all individual triggers.

Is there anyway around this?


Example: if you stand in any of these locations, and the 2 triggers are grouped, TR_EnumerateEntities thinks you are touching the triggers

Last edited by foon; 12-25-2020 at 09:54.
foon is offline
MAGNAT2645
Senior Member
Join Date: Nov 2015
Location: AlliedMods.net
Old 12-25-2020 , 06:10   Re: TR_EnumerateEntities is using trigger abs/bbox
Reply With Quote #2

You can use HookSingleEntityOutput, HookEntityOutput (with OnStartTouch and OnEndTouch outputs) or SDKHook with these SDKHookTypes: SDKHook_StartTouch, SDKHook_Touch and SDKHook_EndTouch.
__________________

Last edited by MAGNAT2645; 12-25-2020 at 06:13.
MAGNAT2645 is offline
Ilusion9
Veteran Member
Join Date: Jun 2018
Location: Romania
Old 12-25-2020 , 06:18   Re: TR_EnumerateEntities is using trigger abs/bbox
Reply With Quote #3

The only way to do that is to check if the client is touching a trigger_hurt. Can you show the TR_ function, from where you start the hull/ray and where it ends?
__________________

Last edited by Ilusion9; 12-25-2020 at 06:19.
Ilusion9 is offline
foon
Member
Join Date: Dec 2018
Old 12-25-2020 , 09:53   Re: TR_EnumerateEntities is using trigger abs/bbox
Reply With Quote #4

I also tried using SDKHook_StartTouch and SDKHook_EndTouch, but somehow missed SDKHook_Touch. Working now, thanks!
foon 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 00:29.


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