Raised This Month: $ Target: $400
 0% 

Make an ent that stops bullets


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
stupok
Veteran Member
Join Date: Feb 2006
Old 07-17-2009 , 23:07   Re: Make an ent that stops bullets
Reply With Quote #2

I actually figured out how to solve this, so I'll describe my solution. If you want real code, I can do that upon request.

In the traceattack function, do an additional trace from the start to the TR_vecEndPos and check if you hit something other than the victim. If you do, then check if it's the ent that should be bulletproof. If it is, then supercede this call.
__________________
stupok is offline
 



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 23:54.


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