AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Question.. Difference (https://forums.alliedmods.net/showthread.php?t=54855)

Styles 05-05-2007 17:59

Question.. Difference
 
Whats the difference between client_death and registering the event death?

Why use one and not the other?

Thanks

teame06 05-05-2007 19:30

Re: Question.. Difference
 
I know client_death doesn't catch the command "kill". I think I read somewhere that it doesn't catch death by world spawn but I never tested it. I always used the event "DeathMsg" myself.

-Hat

Brad 05-06-2007 07:06

Re: Question.. Difference
 
1 Attachment(s)
Add to your server. Die by every method you can imagine. Review the log, "_deathByDesign.log".

VEN 05-06-2007 08:05

Re: Question.. Difference
 
For CS:

Main difference is that DeathMsg doesn't catch C4 death and client_death() doesn't catch worldspawn death. Also for trigger_hurt death client_death() reports killer == victim.

And actually client_death() does catch "kill" cmd death.


All times are GMT -4. The time now is 06:44.

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