Talk:Death notices with custom weapons

From Valve Developer Community
Jump to: navigation, search

How can i make a notice for killed by npc?

CTakeDamageInfo::GetAttacker() --dutchmega 06:53, 1 Oct 2006 (PDT)
So what i have to do with this? -Rookie 20:35, 1 Oct 2006 (PDT)
If you would have done a simple "Find in files", you would know that it returns the classname of the attacker, in this case an NPC. Deathnotices get sent via events so you will need to add an extra field to the event for the classname and in the client-class you catch the deathnotice-event and display it. --dutchmega 00:35, 2 Oct 2006 (PDT)
Should I edit death.cpp,hud_deathnotice.cpp and c_playerresource.h only?Also may you tell me/make a new article how can i edit that if you know?I'm a newbie sorry. -Rookie