AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   trace line skip all players (https://forums.alliedmods.net/showthread.php?t=66308)

kp_uparrow 01-28-2008 00:35

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

Wilson [29th ID] 01-28-2008 08:52

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.

VEN 01-28-2008 10:05

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.

Wilson [29th ID] 01-28-2008 11:31

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.

kp_uparrow 01-28-2008 12:08

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 "??" ?

Alka 01-28-2008 12:51

Re: trace line skip all players
 
?? - is ent to skip. You must put the index of player that creates the traceline, to ignore him.

kp_uparrow 01-29-2008 00:27

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.