Raised This Month: $ Target: $400
 0% 

is user in between


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 05-22-2009 , 23:47   Re: is user in between
Reply With Quote #1

trace_line()
I never used it but it looks like it "shoots" a line from start to end and if it hits something it returns it, also I think it returns the origin that it hit the ent in 4th param
You should also check if the ent returned is a player... with if(1 <= ent <= 32) (replace 32 with your maxplayers var)

1st it's obvious, ignore an ent... I'm not sure about this but if you set it to 0 it might go through walls xD, -1 I think is the "don't ignore anything" setting... but as I said, never used it so I'm not sure, just assuming

You can also look at http://forums.alliedmods.net/showthread.php?p=663892 or http://forums.alliedmods.net/showthread.php?t=66564 for their laser break detecting method
__________________

Last edited by Hunter-Digital; 05-22-2009 at 23:51.
Hunter-Digital 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:33.


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