Raised This Month: $ Target: $400
 0% 

Hooking/altering custom death messages ( log )


Post New Thread Reply   
 
Thread Tools Display Modes
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
jim_yang
Veteran Member
Join Date: Aug 2006
Old 08-24-2008 , 23:18   Re: Hooking/altering custom death messages ( log )
Reply With Quote #2

you are right, all functions call from metamod follow this rule
__________________
Project : CSDM all in one - 99%
<team balancer#no round end#entity remover#quake sounds#fake full#maps management menu#players punishment menu#no team flash#colored flashbang#grenade trails#HE effect#spawn protection#weapon arena#weapon upgrade#auto join#no weapon drop#one name>
jim_yang 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 03:15.


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