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

[L4d2] Request: Remove kill messages


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Gurluas
Senior Member
Join Date: Apr 2010
Old 11-08-2010 , 14:41   [L4d2] Request: Remove kill messages
Reply With Quote #1

Can someone write a plugin which removes the kill message that shows up when a player kills another? I would prefer if its toggle-able.

Last edited by Gurluas; 11-08-2010 at 19:42.
Gurluas is offline
Alex.
SourceMod Donor
Join Date: Sep 2010
Location: England
Old 11-09-2010 , 21:11   Re: [L4d2] Request: Remove kill messages
Reply With Quote #2

I guess you could block the game_message event (I assume this is the one being fired) but no, I can't write one for you, because I can't test it - don't have L4D2.
__________________
Alex. is offline
Gurluas
Senior Member
Join Date: Apr 2010
Old 11-12-2010 , 14:38   Re: [L4d2] Request: Remove kill messages
Reply With Quote #3

I can test it?, Its important.
Gurluas is offline
AtomicStryker
Veteran Member
Join Date: Apr 2009
Location: Teutonia!!
Old 11-12-2010 , 16:10   Re: [L4d2] Request: Remove kill messages
Reply With Quote #4

I believe the kill messages disappear if you do 'return Plugin_Handled' on player_death, however that has severe side effects that sometimes break gameplay.
AtomicStryker is offline
Gurluas
Senior Member
Join Date: Apr 2010
Old 11-12-2010 , 19:37   Re: [L4d2] Request: Remove kill messages
Reply With Quote #5

Such as?
Gurluas is offline
AtomicStryker
Veteran Member
Join Date: Apr 2009
Location: Teutonia!!
Old 11-13-2010 , 04:31   Re: [L4d2] Request: Remove kill messages
Reply With Quote #6

I dont recall. Go try it.
AtomicStryker is offline
Gurluas
Senior Member
Join Date: Apr 2010
Old 11-13-2010 , 22:11   Re: [L4d2] Request: Remove kill messages
Reply With Quote #7

How?
Gurluas is offline
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 11-14-2010 , 13:00   Re: [L4d2] Request: Remove kill messages
Reply With Quote #8

PHP Code:
#include <sourcemod>
#pragma semicolon 1

public OnPluginStart()
{
    
HookEvent("player_death"Event_OnPlayerDeath);
}

public 
Action:Event_OnPlayerDeath(Handle:event, const String:name[], bool:dontBroadcast)
{
    return 
Plugin_Handled;

__________________
Peace-Maker is offline
McFlurry
Veteran Member
Join Date: Mar 2010
Location: RemoveEdict(0);
Old 11-15-2010 , 03:50   Re: [L4d2] Request: Remove kill messages
Reply With Quote #9

The kill message could be hindered by possibly using return Plugin_Handled; on the event award_earned it fires for every message possible in the top left corner and more.
__________________
McFlurry is offline
Send a message via Skype™ to McFlurry
Gurluas
Senior Member
Join Date: Apr 2010
Old 11-19-2010 , 11:51   Re: [L4d2] Request: Remove kill messages
Reply With Quote #10

I tried it, the messages still appears. I need to hide the following: Kill message, incapacitated message, friendly fire message
Gurluas 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 16:07.


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