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

If object is seen


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Minfas
Member
Join Date: Dec 2017
Old 01-12-2020 , 08:46   If object is seen
Reply With Quote #1

Hello,
I am creating custom explosion, but I don't want affect players that are behind wall.
PHP Code:
float traceDir[3];
SubtractVectors(explosionPosclientPostraceDir);
Handle trace TR_TraceRayEx(explosionPostraceDirMASK_SHOT_HULLRayType_Infinite); 
if(
TR_DidHit(trace)) 
{
    
//dmg...

I don't know how to use traceray properly.
Thanks for all replies.
Minfas 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 17:08.


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