gg_quake (GunGame Leader Sounds)

Area to post and download Custom Addons, as well as ask the author/users for help or support.

gg_quake (GunGame Leader Sounds)

Postby DanielB » Mon Nov 01, 2010 10:56 am

gg_quake
By DanielB

Description
  • Plays sounds to players as they take the lead, tie for the lead or lose the lead!

Installation
  • Download the latest version from here
  • Extract and upload files to your gameserver
  • Restart server or reload gungame
  • If desired, edit the config at ../cfg/gungame51/custom_addon_configs/gg_quake.cfg The addon is loaded by default.

DOWNLAOD
You can download the sounds from the attachment on this thread
DanielB

Recruit
Recruit
User avatar
 
Posts: 3
Joined: Thu May 14, 2009 7:40 am
Location: Australia

PostThis post was deleted by lqhnybear on Mon Nov 01, 2010 6:39 pm.

Re: gg_quake (GunGame Leader Sounds)

Postby lqhnybear » Mon Nov 01, 2010 6:50 pm

Thanx for updating this so quickly, however I'm having some issues.

Upon loading it with the latest ES 2.1.1.360 and GG 5.1.492 the addon doesn't appear to be working. No config is written and the console keeps seeing errors. My server is running with bots, not sure if that could be effecting it. The preceding errors go away when I delete the addon from the ES directory.
lserror.jpg



I also noticed in your code, on line 45 of gg_quake_config.py that the line reads
   es.dbgmsg(0, '\tgg_quake.cfg')

Is that suppose to have a "t" in it? I don't know code, just poking around and looking. :) Even if I changed that though the addon still doesn't load properly.
HnyBear's WhoreHouse - 207.210.253.104:27015
Image
lqhnybear

Private 1st Class
Private 1st Class
User avatar
 
Posts: 133
Joined: Thu Oct 08, 2009 4:48 am
Location: North Bay Village, Fl

Postby satoon101 » Mon Nov 01, 2010 10:55 pm

That \t makes a 'tab' in the server console, so it is fine.

I believe the issue is that the folder is mis-named in the download:
../addons/eventscripts/gungame51/scripts/custom/gg_quuake

Try just changing the folder name and see if it loads correctly.

Satoon
satoon101

Site Admin
Site Admin
 
Posts: 1055
Joined: Thu Oct 09, 2008 4:27 pm

Postby DanielB » Tue Nov 02, 2010 7:45 am

whoops.

I've updated the download.
DanielB

Recruit
Recruit
User avatar
 
Posts: 3
Joined: Thu May 14, 2009 7:40 am
Location: Australia

Postby Shadow » Sat Dec 03, 2011 4:25 pm

Does DanielB still exist?

Since the last GG51 update (GG51_5_1_591). GG51 don't provide the old_leaders Event Variable anymore.

Isn't there a way to manually add a variable like we do on Windows servers & computers (e.g. %variablename% = something) in a config file?

Can someone be of assist?
Shadow

Corporal
Corporal
 
Posts: 204
Joined: Thu Mar 12, 2009 2:57 am

Re: gg_quake (GunGame Leader Sounds)

Postby Corvette911 » Wed Dec 21, 2011 7:11 am

Ok this might not be elegant...and certainly someone can improuve on it but here is a quick patch that done some good..

Main issue i have with this modification is the es_map_start(event_var) does not see to reset the global variable old_leaders. so at the beginning of a map the previous leader might get a message..but at least not every time he get's a kill..not perfect but a little less anoying..I'd really like to know why the es_map_start(event_var) doesn't work though :/..


#Add under Server var section..
old_leaders = 0


def es_map_start(event_var):
    global old_leaders
   
    old_leaders= 0

# Change this function as described below
def gg_new_leader(event_var):
    global old_leaders
   
    leader      = event_var['userid']
             
    # Don't play the sound if they were already the leader
    if not leader == old_leaders:
        es.playsound(leader, snd_taken, 1.0)
   
    # Play "lost the lead", if needed
    if old_leaders != 0:
        for userid in old_leaders.split(','):
            # Play "lost the lead" to all previous leaders,
            # Except the current leader
            if not userid == leader:
                es.playsound(userid, snd_lost, 1.0)
               
    old_leaders = leader

 
Corvette911

Private
Private
 
Posts: 22
Joined: Sun Dec 18, 2011 7:41 pm
Steam Friends Name: Corvette911

Re: gg_quake (GunGame Leader Sounds)

Postby meanconnie » Sat Feb 04, 2012 5:02 pm

For those of you interested:
Here is the full script complete with enhanced sounds to go along with it
I credit Corvette911 for his dedication at fixing this (nice job!!)

enjoy

Place the script in the eventscripts/gungame folder.
After loading make sure you edit your gg_quake.cfg located in cfg/gungame51/custom_addon_configs
It will look like this:

Simply change to this:

// Sound to play to the new leader
gg_quake_taken "gungame/takenlead.wav"

// Sound to play to the old leader(s)
gg_quake_lost "gungame/lostlead.wav"

// Sound to play to the leaders
gg_quake_tied "gungame/tiedlead.wav"
Attachments
gungame51.zip
Place this in the eventscripts/gungame folder. After loading make sure you edit your gg_quake.cfg located in cfg/gungame51/custom_addon_configs
(2.23 KiB) Downloaded 1616 times
sound.zip
Load this in the sound/gungame folder. (The script is already set with the predefined sound directory.)
(1.18 MiB) Downloaded 1645 times
Last edited by meanconnie on Fri Feb 10, 2012 6:58 pm, edited 3 times in total.
meanconnie

Private
Private
 
Posts: 15
Joined: Mon Jan 16, 2012 3:41 pm
Steam Friends Name: vianney

Postby Shadow » Sat Feb 04, 2012 6:12 pm

On release 5.1.611, GG51 team added back the old_leaders Event Variable in on leader events. So now gg_quake from DanielB works fine. (Thanks Satoon101 for that fix). What will this "enhanced sounds" give more?
Shadow

Corporal
Corporal
 
Posts: 204
Joined: Thu Mar 12, 2009 2:57 am

Re: gg_quake (GunGame Leader Sounds)

Postby meanconnie » Sat Feb 04, 2012 7:26 pm

Good news about the fix satoon made .
As far as the sounds, I suggest you listen to them if you wish to know what makes them different.
meanconnie

Private
Private
 
Posts: 15
Joined: Mon Jan 16, 2012 3:41 pm
Steam Friends Name: vianney

Postby Shadow » Sun Feb 05, 2012 5:53 pm

Nice but if the plugin & wav files already exist and configured on the client side, the server won't upload them to the client. You need to manually replace them on your own computer if you want to hear them.
Shadow

Corporal
Corporal
 
Posts: 204
Joined: Thu Mar 12, 2009 2:57 am

Re: gg_quake (GunGame Leader Sounds)

Postby meanconnie » Wed Feb 08, 2012 11:46 pm

The script is now set to preload the sounds into another directory so as NOT to overwrite the old sounds
thanks for pointing that out...

btw,
I tried the original script, and it does NOT work!
It continues to repeat "You the lead" over and over instead of saying it just once when you are in the lead
It is extremely annoying
Needless to say the script that corvette fixed works much better.
meanconnie

Private
Private
 
Posts: 15
Joined: Mon Jan 16, 2012 3:41 pm
Steam Friends Name: vianney

Postby Shadow » Sat Feb 11, 2012 2:03 pm

What version of GG51 are you runing? As mentioned in the post previously, the old_leaders Event variable was added back on GG51_5_1_611 release and now GG51 even as released 619.
Shadow

Corporal
Corporal
 
Posts: 204
Joined: Thu Mar 12, 2009 2:57 am

Postby meanconnie » Tue Feb 14, 2012 5:15 pm

I am using current version 619
I even made a comparison with both scripts and I find the old one very inaccurate
It will say you have the lead when you do not, and many times it will not announce anything at all!
I have 2 gungame servers, and I use this script (fixed by corvette) on both of them because the old just doesnt work as well
I really do appreciate you assistance and support.
meanconnie

Private
Private
 
Posts: 15
Joined: Mon Jan 16, 2012 3:41 pm
Steam Friends Name: vianney

Re: gg_quake (GunGame Leader Sounds)

Postby Corvette911 » Sun Mar 25, 2012 2:09 am

Thanks for the credit like i said it's a quick fix...I wish there were all that easy...and happy to see it helped.

I was running .591 at the time i wrote that ..I just updated to server to .622

And left the modified version in and it still works..might not be needed though haven`t tested

removing the modification.
Corvette911

Private
Private
 
Posts: 22
Joined: Sun Dec 18, 2011 7:41 pm
Steam Friends Name: Corvette911



Return to Downloads

Who is online

Users browsing this forum: No registered users and 3 guests

cron