source-sdk-2013 icon indicating copy to clipboard operation
source-sdk-2013 copied to clipboard

Muzzle flashes

Open Blackhardd opened this issue 12 years ago • 2 comments

Alloha. Can't find code which respect for default muzzle flash spawning. I created a new weapon class and copied code from weapon_pistol.cpp. After that i added my own muzzle flash effect but now there spawning two muzzle flashes.

Blackhardd avatar Sep 23 '14 12:09 Blackhardd

https://github.com/ValveSoftware/source-sdk-2013/blob/master/mp/src/game/client/c_baseanimating.cpp#L3846

The model fire animation dispatches an event from which the muzzle flash effect is triggered.

Sandern avatar Sep 23 '14 13:09 Sandern

https://developer.valvesoftware.com/wiki/Muzzle_Flash_(CSS_Style) think u should play with this, it will get u most liekly the muzzle flashes ur looking for, I still need to do more research, currently I have muzzle flashes firing from one player into other clients.. but thats something else I think.

bmk10 avatar Feb 10 '15 01:02 bmk10