Aighty... for my torch, if it were multiplayer no one else would be able to
see it unless a message were sent to them telling them where to put it.  I
dont have a need for that so I dont do it.

Also what it looks like to me is that your dlight is HUGE.  That is why the
effect is weird.  (Im going on the client side here)

In my last example of how I allocated the dlight:
dlight_t *dl = gEngfuncs.pEfxAPI->CL_AllocDlight (2);

There is a property of dl called radius.  dl->radius that I set later down
the line that changes the size of it.  On the server side when you pass the
message to the client (im going by the dlight in effect.cpp around line
1660) It looks as though the 5th write, (The 2nd byte to be sent) is the
radius of the dlight.  If you make that smaller the overall size of the
dlight should be smaller and should eliminate the effect you are looking at.

Hope this helps!
Roachie
----- Original Message -----
From: "Cortex" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 21, 2002 1:49 PM
Subject: Re: [hlcoders] DLIGHT problem


> Ok...
> Would the effect be visible by the other clients which play on the
> server ??
>
>
> ----- Original Message -----
> From: Roachfood - the-coming.com
> To: [EMAIL PROTECTED]
> Sent: Thursday, February 21, 2002 6:25 PM
> Subject: Re: [hlcoders] DLIGHT problem
>
>
> Actually as an after thought.  I looked at my code and here is how i
> allocate mine.  My dlight is on the client side since its a single player
> mod.  I use it for my torch to light up a small area.
>
> dlight_t *dl = gEngfuncs.pEfxAPI->CL_AllocDlight (2);
>
> The (2) is because when its (1) I believe the flashlight uses it and when
> you turn on the flashlight my light goes bye bye.  I think you are doing
it
> on the server side. Im not really sure.  But that is how I got mine on
> client side to work nicely. You can see an ok demo movie here... the fps
are
> kinda jacked up.  : http://www.the-coming.com/files/torch.avi
>
> Hope this helps maybe a little.
>
> Roachie
> ----- Original Message -----
> From: "Cortex" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, February 21, 2002 9:14 AM
> Subject: [hlcoders] DLIGHT problem
>
>
> > This is a multi-part message in MIME format.
> > --
> > [ Picked text/plain from multipart/alternative ]
> > Hello,
> >
> > For some reasons, I need to have a temporary light in my
> > mod... I create it with a SVC_TEMPENTITY. It works...
> >
> > But the result isn't as expected... Indeed, as you can see
> > on the picture I've joined to this mail, the light enlights
> > the whole face and the effect is crappy on a big big face...
> >
> > Is there an other way to create a other light effect ????
> >
> >       - Cortex : mapper & coder www.hlalbator.fr.st
> > --
> >
> >
> > _______________________________________________
> > 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