Raised This Month: $51 Target: $400
 12% 

How i use Ham_Deathnotice?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
lovenina12
Junior Member
Join Date: Jun 2012
Location: Brasil
Old 05-28-2014 , 12:13   How i use Ham_Deathnotice?
Reply With Quote #1

Hi guys, I need a help with a scripting,
How I use Ham_Deathnotice?

in RegisterHam and ExecuteHam

is like this?:
Code:
RegisterHam(Ham_Deathnotice, "player", "fw_notice")

------------------------------------------------

public fw_notice(killer, weapon, headshot, victim)
??? '-'

How i Use Ham_Deathnotice?
lovenina12 is offline
Torge
Veteran Member
Join Date: Oct 2011
Old 05-28-2014 , 15:28   Re: How i use Ham_Deathnotice?
Reply With Quote #2

Here a few examples how it could look like:

PHP Code:
public fw_notice(killerweaponheadshotvictim)
{
         if(
is_user_alive(killer)) // bla bla
         
         
...

         new 
weapon get_user_weapon(killer); // bla bla

         
...

         if(
weapon == CSW_M4A1// bla bla

Torge is offline
lovenina12
Junior Member
Join Date: Jun 2012
Location: Brasil
Old 05-28-2014 , 15:48   Re: How i use Ham_Deathnotice?
Reply With Quote #3

Quote:
Originally Posted by lovenina12 View Post
Hi guys, I need a help with a scripting,
How I use Ham_Deathnotice?

in RegisterHam and ExecuteHam

is like this?:
Code:
RegisterHam(Ham_Deathnotice, "player", "fw_notice")

------------------------------------------------

public fw_notice(killer, weapon, headshot, victim)
??? '-'

How i Use Ham_Deathnotice?
Sry Bad English *

@Torge

No, no, i need to know how is the code.
( This Part "public fw_notice(killer, weapon, headshot, victim)")
Is only an example. IDK how it really is, and this is my question. How it is? The codes after the CallBack?

Last edited by lovenina12; 05-28-2014 at 15:52.
lovenina12 is offline
jimaway
Heeeere's Jimmy!
Join Date: Jan 2009
Location: Estonia
Old 05-29-2014 , 06:46   Re: How i use Ham_Deathnotice?
Reply With Quote #4

/**
* Description: Typically called when an entity dies to notify any children entities about the death.
* Forward params: function(this, idchild)
* Return type: None.
* Execute params: ExecuteHam(Ham_DeathNotice, this, idchild)
*/
Ham_DeathNotice,
jimaway is offline
lovenina12
Junior Member
Join Date: Jun 2012
Location: Brasil
Old 05-29-2014 , 12:29   Re: How i use Ham_Deathnotice?
Reply With Quote #5

What is "idchild"?
lovenina12 is offline
aron9forever
Veteran Member
Join Date: Feb 2013
Location: Rromania
Old 05-29-2014 , 13:35   Re: How i use Ham_Deathnotice?
Reply With Quote #6

Quote:
Originally Posted by lovenina12 View Post
What is "idchild"?
Quote:
Originally Posted by jimaway View Post
/**
* Description: Typically called when an entity dies to notify any children entities about the death.
* Forward params: function(this, idchild)
* Return type: None.
* Execute params: ExecuteHam(Ham_DeathNotice, this, idchild)
*/
Ham_DeathNotice,

Last edited by aron9forever; 05-29-2014 at 13:35.
aron9forever is offline
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 05-30-2014 , 01:02   Re: How i use Ham_Deathnotice?
Reply With Quote #7

This function it's actually empty and never called on the engine, so don't waste trying to know it's work.

Also, HLSDK saids:

Quote:
monster maker children use this to tell the monster maker that they have died.
Note: It's not the same CBaseEntity:eathNotice with CHalfLifeMultiplay:eathNotice, ...
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross

Last edited by meTaLiCroSS; 05-30-2014 at 01:02.
meTaLiCroSS is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:57.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode