trace line skip all players
how do i do a trace_line that will skip all players, i want the origin where it hits a wall/none player ent
|
Re: trace line skip all players
I don't think it's as easy done as said.
You'd have to fire the traceline, then make a loop that checks if TR_pHit is set. If so, fire another traceline with a start of the last trace's TR_vEnd and the same destination as the original traceline. |
Re: trace line skip all players
There are also IGNORE_MONSTERS param for TraceLine (fakemeta module) but it will ignore not only players but any monster including hostages for example.
|
Re: trace line skip all players
Oh jeeze, I forgot about that one. I thought there was only one of those args and it was the actual ent to ignore. startent. yeah, forgot.
|
Re: trace line skip all players
i want to ignore hostages too
engfunc(EngFunc_TraceLine,start,end,IGNORE_MO NSTERS,??,tr); is this syntax right? what goes in to the "??" ? |
Re: trace line skip all players
?? - is ent to skip. You must put the index of player that creates the traceline, to ignore him.
|
Re: trace line skip all players
ahh thx, it works
|
| All times are GMT -4. The time now is 07:58. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.