Raised This Month: $51 Target: $400
 12% 

Trace a line until hitting a solid, efficient method


Post New Thread Reply   
 
Thread Tools Display Modes
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 06-13-2013 , 17:14   Re: Trace a line until hitting a solid, efficient method
Reply With Quote #11

Quote:
Originally Posted by a7811311622 View Post
Another way to say it that trace a line if TR_pHit is the player, get it and penetrate it until hitting a solid entity which isn't the player?
Have you seen the code? lol
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline
a7811311622
Member
Join Date: Apr 2010
Old 06-14-2013 , 03:52   Re: Trace a line until hitting a solid, efficient method
Reply With Quote #12

Quote:
Originally Posted by meTaLiCroSS View Post
Have you seen the code? lol
FireBullets3 code:
PHP Code:
    vecSrc tr.vecEndpos + ( vecDir 42.0 );
    
flDistance = ( flDistance flCurrentDistance ) * 0.75;
    
vecEnd = ( vecDir flDistance ) + vecSrc;
                    
    
pEntity->TraceAttackpevAttackeriCurrentDamagevecDir, &triDamageType );

    
iCurrentDamage *= 0.75
Try to avoid that previous traceline's endpos equal next traceline's vecStart?
__________________

Last edited by a7811311622; 06-14-2013 at 03:53.
a7811311622 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 22:43.


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