Raised This Month: $ Target: $400
 0% 

Trace line


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
usaexelent
Senior Member
Join Date: Nov 2009
Location: Lithuania
Old 07-30-2011 , 18:31   Trace line
Reply With Quote #1

How can i do that if some one get between origin 1 and origin 2 loses health
usaexelent is offline
Send a message via Skype™ to usaexelent
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 07-30-2011 , 18:36   Re: Trace line
Reply With Quote #2

It's in your title.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
usaexelent
Senior Member
Join Date: Nov 2009
Location: Lithuania
Old 07-30-2011 , 18:46   Re: Trace line
Reply With Quote #3

I know i just want to know how to do it
usaexelent is offline
Send a message via Skype™ to usaexelent
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 07-30-2011 , 18:54   Re: Trace line
Reply With Quote #4

Trace line from origin1 to origin2.
If the fraction is < 1.0, then you hit something.
If you hit something, check the pHit result from the trace to see if it is a player.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 07-30-2011 , 18:52   Re: Trace line
Reply With Quote #5

Check TR_flFraction, if < 1.0, it means someone has passed your line.
__________________
Arkshine is offline
usaexelent
Senior Member
Join Date: Nov 2009
Location: Lithuania
Old 07-30-2011 , 19:01   Re: Trace line
Reply With Quote #6

I'm real noob on this thing i read how to do all this but i just can get it in my head,The only way for me to understand it if you guys give me the code,that I could put it in my cheatsheet.txt document
usaexelent is offline
Send a message via Skype™ to usaexelent
usaexelent
Senior Member
Join Date: Nov 2009
Location: Lithuania
Old 07-30-2011 , 19:03   Re: Trace line
Reply With Quote #7

Do i need to register think to ceck if some one is between those 2 origins?
usaexelent is offline
Send a message via Skype™ to usaexelent
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 07-30-2011 , 19:06   Re: Trace line
Reply With Quote #8

https://forums.alliedmods.net/showthread.php?t=66076

I already told you everything you need to do.
That thread will help you understand how to work with trace lines.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
usaexelent
Senior Member
Join Date: Nov 2009
Location: Lithuania
Old 07-30-2011 , 19:08   Re: Trace line
Reply With Quote #9

I read this
usaexelent is offline
Send a message via Skype™ to usaexelent
usaexelent
Senior Member
Join Date: Nov 2009
Location: Lithuania
Old 05-19-2012 , 14:20   Re: Trace line
Reply With Quote #10

Sorry for your spended time on me I was rilly dum that time because I was just a beginner in pawn language coding
usaexelent is offline
Send a message via Skype™ to usaexelent
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 03:21.


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