Raised This Month: $ Target: $400
 0% 

Search for wall between 2 origins


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hlstriker
Green Gaben
Join Date: Mar 2006
Location: OH-IO!
Old 11-24-2007 , 16:37   Re: Search for wall between 2 origins
Reply With Quote #1

I'm now thinking that the 5th argument is the entity that the traceline is bypassing. Is this correct?

I tried setting it to the players id. Now it will return -1.

I also looked at Avalanche's plugin and it looked pretty much like I have my code now.

Here is what I now have that is returning -1
PHP Code:
engfunc(EngFunc_TraceLinegrenadeOrgplayerOrgDONT_IGNORE_MONSTERSid0); 
hlstriker is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-24-2007 , 16:46   Re: Search for wall between 2 origins
Reply With Quote #2

Quote:
Originally Posted by hlstriker View Post
I'm now thinking that the 5th argument is the entity that the traceline is bypassing. Is this correct?
I think that if the 5th argument is the entity index that can't be returned (ent to skip).


I also think that if you set 4th arg to DONT_IGNORE_MONSTERS, it can return another player that could be between the nade and the first player.


But a wall is not often an entity, so you have to make other checks.

May be compare nade origin and origin of what is returned
PHP Code:
get_tr2(0TR_vecEndPosdest


Wait for good advises of skilled coders
ConnorMcLeod is offline
hlstriker
Green Gaben
Join Date: Mar 2006
Location: OH-IO!
Old 11-24-2007 , 16:51   Re: Search for wall between 2 origins
Reply With Quote #3

Quote:
Originally Posted by connorr View Post
May be compare nade origin and origin of what is returned
Well, I can't do that yet because it's either returning -1, the grenade index, or the player that threw the grenades index. lol
hlstriker 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 01:16.


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