Talk:Death notices with custom weapons

From Valve Developer Community
Revision as of 07:35, 2 October 2006 by Dutchmega (talk | contribs)

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)