Raised This Month: $ Target: $400
 0% 

trace line skip all players


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
kp_uparrow
Penalized Member
Join Date: Jun 2006
Location: 192.168.0.1
Old 01-28-2008 , 00:35   trace line skip all players
Reply With Quote #1

how do i do a trace_line that will skip all players, i want the origin where it hits a wall/none player ent
__________________
I USED A SECOND ACCOUNT TO DO MORE KARMA UPS AND DOWNS UNTIL GREENTRYST CAUGHT ME
kp_uparrow is offline
Wilson [29th ID]
Veteran Member
Join Date: Nov 2005
Location: London
Old 01-28-2008 , 08:52   Re: trace line skip all players
Reply With Quote #2

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.
__________________

Day of Defeat AMXX Community

FakeMeta Research . Voice Proximity . Advanced Deploy . Technician
Wilson [29th ID] is offline
Send a message via ICQ to Wilson [29th ID] Send a message via AIM to Wilson [29th ID] Send a message via MSN to Wilson [29th ID] Send a message via Yahoo to Wilson [29th ID]
VEN
Veteran Member
Join Date: Jan 2005
Old 01-28-2008 , 10:05   Re: trace line skip all players
Reply With Quote #3

There are also IGNORE_MONSTERS param for TraceLine (fakemeta module) but it will ignore not only players but any monster including hostages for example.
VEN is offline
Wilson [29th ID]
Veteran Member
Join Date: Nov 2005
Location: London
Old 01-28-2008 , 11:31   Re: trace line skip all players
Reply With Quote #4

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.
__________________

Day of Defeat AMXX Community

FakeMeta Research . Voice Proximity . Advanced Deploy . Technician
Wilson [29th ID] is offline
Send a message via ICQ to Wilson [29th ID] Send a message via AIM to Wilson [29th ID] Send a message via MSN to Wilson [29th ID] Send a message via Yahoo to Wilson [29th ID]
kp_uparrow
Penalized Member
Join Date: Jun 2006
Location: 192.168.0.1
Old 01-28-2008 , 12:08   Re: trace line skip all players
Reply With Quote #5

i want to ignore hostages too

engfunc(EngFunc_TraceLine,start,end,IGNORE_MO NSTERS,??,tr);

is this syntax right? what goes in to the "??" ?
__________________
I USED A SECOND ACCOUNT TO DO MORE KARMA UPS AND DOWNS UNTIL GREENTRYST CAUGHT ME
kp_uparrow is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 01-28-2008 , 12:51   Re: trace line skip all players
Reply With Quote #6

?? - is ent to skip. You must put the index of player that creates the traceline, to ignore him.
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
kp_uparrow
Penalized Member
Join Date: Jun 2006
Location: 192.168.0.1
Old 01-29-2008 , 00:27   Re: trace line skip all players
Reply With Quote #7

ahh thx, it works
__________________
I USED A SECOND ACCOUNT TO DO MORE KARMA UPS AND DOWNS UNTIL GREENTRYST CAUGHT ME
kp_uparrow 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 07:58.


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