Talk:Muzzle Flash Lighting

From Valve Developer Community
Jump to: navigation, search

Please, tell me your thoughts and how my Ideas when for you ( Explosion, Fire and The RPG rocket) id like to hear what you thought and if you implement a Dlight to these entities and how the worked for you --SHADOW-KILLER

I appreciate this article but the credits are unnecessary. This is a very common technique already built-into HL2DM and other SDK releases, see the flare entity for an example exactly this. --Mflux 02:06, 14 Dec 2008 (PST)

Also somewhere it should explain the difference between elight and dlight. dlight is a type of dynamic light which only works on world (bsp, brushes etc) and elight is dynamic light that shines on entities. --Mflux 02:08, 14 Dec 2008 (PST)

Shouldn't dLights and eLights be paired up to light everything then>?--CorporalAris 22:51, 22 February 2009 (UTC)
I thought "elight" was "Emitting Light" and dlight Dynamic --Jenkins08 19:58, 20 April 2009 (UTC)
elight is a dynamic light, which only lits up entities; dlight is a dynamic light, which lits up entities and the world --z33ky 18:13, 23 December 2009 (UTC)

Can someone provide proof that a dlight coupled with an elight looks better than a dlight alone? --z33ky 18:13, 23 December 2009 (UTC)

Dlight appears to have no problem lighting models... Walk up to an NPC and fire you gun after apply this tutorial. What we need to add to this page is how to create a dynamic shadow casting light. Gary 14:40, 21 May 2012 (PDT)


I get this error when compiling

1>.\c_baseanimating.cpp(3003) : error C2065: 'attachment' : undeclared identifier

What the hell is this?

Using GetAttachment( 1, vAttachment, angles ) instead of GetAttachment( attachment, vAttachment, angles ) solves this error for me --Welsh Mullet 17:50, 7 September 2010 (UTC)

SKD template base

are the attachments named differently in this base? I have the flash showing up on the right side of the screen instead of the muzzle.--Welsh Mullet 23:21, 29 January 2011 (UTC)

error C2065: 'muzzle' : undeclared identifier

I tried putting my attachment as 1 as said in the post above, compiled and nothing happened. Here's the code:

GetAttachment( 1, vAttachment, angles );

Then I tried changing it to:

GetAttachment( muzzle, vAttachment, angles );

And it returns "1>.\c_baseanimating.cpp(3003) : error C2065: 'muzzle' : undeclared identifier"

So how exactly do I declare the muzzle attachment?

Regards, Exosoldier22 02:30, 28 April 2011 (UTC)

Different muzzleflash color for ar2 ?

I seen that effect in Substance mod, any idea how to implement it right ?I trying to do it by my self, but still not sure that my method is "clean" so any ideas will be helpful --Light_Kill 07:15, 29 September 2013 (PDT)