ValveSoftware / source-sdk-2013

The 2013 edition of the Source SDK
https://developer.valvesoftware.com/wiki/SDK2013_GettingStarted
Other
3.8k stars 2k forks source link

Muzzle flashes #289

Open Blackhardd opened 10 years ago

Blackhardd commented 10 years ago

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.

Sandern commented 10 years ago

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.

bmk10 commented 9 years ago

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.