Difference between revisions of "Talk:Death notices with custom weapons"

From Valve Developer Community
Jump to: navigation, search
Line 2: Line 2:
 
:CTakeDamageInfo::GetAttacker() --[[User:Dutchmega|dutchmega]] 06:53, 1 Oct 2006 (PDT)
 
:CTakeDamageInfo::GetAttacker() --[[User:Dutchmega|dutchmega]] 06:53, 1 Oct 2006 (PDT)
 
:: So what i have to do with this? -[[User:Rookie|Rookie]] 20:35, 1 Oct 2006 (PDT)
 
:: So what i have to do with this? -[[User:Rookie|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. --[[User:Dutchmega|dutchmega]] 00:35, 2 Oct 2006 (PDT)

Revision as of 07:35, 2 October 2006

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)