[L4D2] how to filter glass in TR_TraceRayFilterEx? about player visible
1 Attachment(s)
here is my code, I want to implement a function to detect if a player is visible to another player.
Code:
bool is_visible_to(int client, int target) Note: I tried L4D2_IsVisibleToPlayer in left4dhooks, it can't meet my needs cause when someone are not alive and spectating another one, the "eye position" not follow. |
Re: [L4D2] how to filter glass in TR_TraceRayFilterEx? about player visible
You wanna not include CONTENTS_WINDOW in your trace mask,
Never really used MASK_VISIBLE macro, I just build own. |
Re: [L4D2] how to filter glass in TR_TraceRayFilterEx? about player visible
I looked again at my trace filter code, I used this
PHP Code:
|
Re: [L4D2] how to filter glass in TR_TraceRayFilterEx? about player visible
Quote:
it works, but also filter doors |
All times are GMT -4. The time now is 23:31. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.