Raised This Month: $ Target: $400
 0% 

Hooking/altering custom death messages ( log )


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-24-2008 , 10:48   Hooking/altering custom death messages ( log )
Reply With Quote #1

What I want to do is :
- Hooking original death message log ( suicide included ), then block it.
- Altering this message to add something

Death message from log look like :
Quote:
"Killer<id><STEAM_0:0:xxxxx><TEAM>" killed "Victim<id><STEAM_0:0:xxxxx><TEAM>" with "weapon"

Using FM_AlertMessage to hook/supercede works fine, but only for messages generated by the engine.

I mean, and that's my problem, this forward will not be called ( not sure to understand why ) if it's custom messages using either log_message() or engfunc( FM_AlertMessage, _ ). ( which are basicaly the same call )

As notes, I tried as post/pre and the same result.


Any ideas to solve this problem or an alternative method, please ?

Thanks.


[EDIT] :

Is the reason the same than for the normal message_begin() where the things not done by the engine itself are not caught by Metamod ?

Maybe should I file a request to add something : log_emessage() ?
__________________

Last edited by Arkshine; 08-24-2008 at 13:48.
Arkshine is offline
 



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 03:15.


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