--
[ Picked text/plain from multipart/alternative ]
Well I've used this method to get the surface prop of the material on the
surface struck by a trace:
physprops->GetSurfaceData( tr.surface.surfaceProps )->game.material

It's a little different than what you're trying to use, but works perfectly.
physprops being the IPhysicsSurfaceProps interface and tr being your
trace_t.

Look in baseentity_shared.cpp around line 1550 for example usage.  Material
types are defined in macros in decals.h.

On 2/25/06, Michael Kramer <[EMAIL PROTECTED]> wrote:
>
> --
> [ Picked text/plain from multipart/alternative ]
> Do you know where i can find the definitions of those materials..
>
> like
>
> if(tr.surface.surfaceProps & SURF_METAL ) of course SURF_METAL is not
> real..but
> can you tell me where I can find them?
>
> Thanks
>
> On 2/25/06, Aaron Schiff <[EMAIL PROTECTED]> wrote:
> >
> > --
> > [ Picked text/plain from multipart/alternative ]
> > ya...you can do trace.surface.surfaceprop or soemthing like that...if
> you
> > follow that, you can use the system to extract the material type
> >
> >
> > On 2/25/06, Michael Kramer <[EMAIL PROTECTED]> wrote:
> > >
> > > --
> > > [ Picked text/plain from multipart/alternative ]
> > > For my Lasergun, I want it to Spark on Metal, and Smoke on everything
> > > else.
> > > There is no Surface Flag for Metal..just sky and water..etc..
> > >
> > > Is there a way using my traceline (tr.) that I can get the material
> > type,
> > > so
> > > if it is that, then it will spark..and if not then smoke..?
> > >
> > > Thanks
> > > --
> > >
> > > _______________________________________________
> > > To unsubscribe, edit your list preferences, or view the list archives,
> > > please visit:
> > > http://list.valvesoftware.com/mailman/listinfo/hlcoders
> > >
> > >
> >
> >
> > --
> > ts2do
> > --
> >
> > _______________________________________________
> > 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