AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Trace line (https://forums.alliedmods.net/showthread.php?t=163471)

usaexelent 07-30-2011 18:31

Trace line
 
How can i do that if some one get between origin 1 and origin 2 loses health

Exolent[jNr] 07-30-2011 18:36

Re: Trace line
 
It's in your title.

usaexelent 07-30-2011 18:46

Re: Trace line
 
I know i just want to know how to do it

Arkshine 07-30-2011 18:52

Re: Trace line
 
Check TR_flFraction, if < 1.0, it means someone has passed your line.

Exolent[jNr] 07-30-2011 18:54

Re: Trace line
 
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.

usaexelent 07-30-2011 19:01

Re: Trace line
 
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 :D

usaexelent 07-30-2011 19:03

Re: Trace line
 
Do i need to register think to ceck if some one is between those 2 origins?

Exolent[jNr] 07-30-2011 19:06

Re: Trace line
 
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.

usaexelent 07-30-2011 19:08

Re: Trace line
 
I read this :?

usaexelent 05-19-2012 14:20

Re: Trace line
 
Sorry for your spended time on me I was rilly dum that time because I was just a beginner in pawn language coding


All times are GMT -4. The time now is 03:21.

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