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

[L4D] RageMeter


Post New Thread Reply   
 
Thread Tools Display Modes
kiwi87
Member
Join Date: Sep 2009
Old 09-03-2009 , 18:35   Re: [L4D] RageMeter
Reply With Quote #21

Anyone using standalone version of L4D with Sourcemod able to get sound working for this plugin?
kiwi87 is offline
madcap
Senior Member
Join Date: Feb 2009
Old 09-03-2009 , 19:03   Re: [L4D] RageMeter
Reply With Quote #22

Previously I asked for admin only notify. Here is an implementation based on another plugin of mine.


Create a cvar that holds all the admin access levels you want access to the notification, like "az" on my server.

PHP Code:

public Notify(String:format[], any:...) 

    new 
String:buffer[512]; 
    
VFormat(buffer,sizeof(buffer),format,3); 
 
    
decl String:notify[16]; 
    
GetConVarString(NotifyCvarHerenotifysizeof(notify));  
 
    for(new 
i=1;i<=MaxClients;i++) 
    { 
        if  (
IsClientInGame(i) && IsClientConnected(i) && !IsFakeClient(i) && i!=client && ((strlen(notify)==0) || (GetUserFlagBits(i)&ReadFlagString(notify)!=0))) 
        { 
                
PrintToChat(ibuffer); 
        } 
    } 
 

madcap is offline
JenovaDarkness
Junior Member
Join Date: Aug 2009
Old 09-03-2009 , 23:01   Re: [L4D] RageMeter
Reply With Quote #23

Gotcha...I'm going to work on individual user preferences(temporary at first and possibly table driven later) and I will add an admin level flag check with associated cvar.

Going to be removing some of on/off cvars in favor of flags.
JenovaDarkness is offline
Crimson_Fox
Senior Member
Join Date: Mar 2009
Old 09-03-2009 , 23:13   Re: [L4D] RageMeter
Reply With Quote #24

I had no luck with EmitSound when I tried it. I had better results with ClientCommand and playgamesound. I modified RageCounter with this so it plays sounds:

PHP Code:
for (new 1<= MaxClientsi++)
{
    if(
IsClientInGame(i) && !IsFakeClient(i))
    {
        
//What a dick. 
        
ClientCommand(i"playgamesound npc.TeenGirl_WorldAirport05NPC07"); 
    }


Last edited by Crimson_Fox; 09-03-2009 at 23:16.
Crimson_Fox is offline
an0n1mus1
Junior Member
Join Date: Apr 2009
Old 09-04-2009 , 04:15   Re: [L4D] RageMeter
Reply With Quote #25

When the round ends, it doesn't count the people that disconnects.
an0n1mus1 is offline
JenovaDarkness
Junior Member
Join Date: Aug 2009
Old 09-04-2009 , 10:36   Re: [L4D] RageMeter
Reply With Quote #26

It's set by default not to count people who wait until the round ends to quit. If you want to count anyone who leaves at any time set l4d_ragemeter_reset_type "1"
JenovaDarkness is offline
JenovaDarkness
Junior Member
Join Date: Aug 2009
Old 09-04-2009 , 10:38   Re: [L4D] RageMeter
Reply With Quote #27

Quote:
Originally Posted by Crimson_Fox View Post
I had no luck with EmitSound when I tried it. I had better results with ClientCommand and playgamesound. I modified RageCounter with this so it plays sounds:

PHP Code:
for (new 1<= MaxClientsi++)
{
    if(
IsClientInGame(i) && !IsFakeClient(i))
    {
        
//What a dick. 
        
ClientCommand(i"playgamesound npc.TeenGirl_WorldAirport05NPC07"); 
    }

Are you saying that you tried my plugin and it didn't work for you or just that you tried EmitSound before and it didn't work for you?

In order to use EmitSound you have to tell the server to precache the sound file before using it. Do so on MapStart and the sounds should work.

Last edited by JenovaDarkness; 09-04-2009 at 10:49.
JenovaDarkness is offline
Crimson_Fox
Senior Member
Join Date: Mar 2009
Old 09-06-2009 , 14:45   Re: [L4D] RageMeter
Reply With Quote #28

Quote:
Originally Posted by JenovaDarkness View Post
Are you saying that you tried my plugin and it didn't work for you or just that you tried EmitSound before and it didn't work for you?

In order to use EmitSound you have to tell the server to precache the sound file before using it. Do so on MapStart and the sounds should work.
It would be the latter. Didn't know about the precache, thanks for the tip!
Crimson_Fox is offline
Fug™
Junior Member
Join Date: Jun 2009
Old 12-01-2009 , 22:45   Re: [L4D] RageMeter
Reply With Quote #29

Any chance for an update for L4D2 ?
Fug™ is offline
JenovaDarkness
Junior Member
Join Date: Aug 2009
Old 12-02-2009 , 17:52   Re: [L4D] RageMeter
Reply With Quote #30

I've had a newer version written since October(not for L4D2) and I tested it with L4D2 on my servers but I haven't tested the older version. I may upload the newer version tonight(might not due to it being my birthday). I wanted to add more features before releasing it but I guess it can be an intermediate step.
JenovaDarkness 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 01:50.


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