Is water represented by a block or a plane? In the former case, you
could get the vertical size and the angle of the bullet and calculate
when the bullet would have passed through it. I have no idea, just
guessing here. :)

Persuter

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:hlcoders-
> [EMAIL PROTECTED]] On Behalf Of Mazor
> Sent: Saturday, June 15, 2002 9:27 AM
> To: [EMAIL PROTECTED]
> Subject: RE: [hlcoders] Water Surface Points?
>
> That didn't help one bit...
>
> I don't think you know exactly what I'm tryin to do. I wanna get the
> location on the surface of the water where the trace entered it. Tom
is
> sorta on the right track, but it seems wrather difficult to do. There
> isn't an easier way to do it?
>
> -Mazor
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]] On Behalf Of Michael
> Shimmins
> Sent: Saturday, June 15, 2002 5:03 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [hlcoders] Water Surface Points?
>
> When you shoot out a trace line you specify how far its going, ie 1000
> units.
>
> The end point of a traceline is stored in the trace
> result's 'flFraction' variable, ie:
>
> tr.flFraction
>
> The distance from the player to the surface is found by doing the
> following:
>
> TraceLength * flFraction;
>
> An flFraction value of .5 means the end point was 50% of the length of
> the traceline.
>
> Be sure to check that it did hit something though, ie:
>
> if (tr.pHit) // it did hit something.
>
> Hope this help,
>
> Michael Shimmins
> The Absconder Effect (http://www.tae-mod.com)
>
> > I'm trying to make a water slash effect for my mod when a bullet
> traceline
> > goes into a water entity. I'm having a world of trouble finding the
> entry
> > point of the traceline. Any ideas? Someone said someone asked this
> before,
> > but I was looking through the archives and was unable to find any
> reference
> > to this problem. Please help, thanx.
> >
> > -Mazor
> > http://nuke.shiftify.com/
> >
> >
> >
> > "Even in death, feelings carry on; love -- the ultimate power --
will
> stay
> > within me, as I will stay with thee."
> > -Me
> >
> >
> > _________________________________________________________________
> > Chat with friends online, try MSN Messenger:
http://messenger.msn.com
> >
> > _______________________________________________
> > To unsubscribe, edit your list preferences, or view the list
> archives, please visit:
> > http://list.valvesoftware.com/mailman/listinfo/hlcoders
> >
> >
>
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives,
> please visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives,
> please visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to