# // ****************************** # // Mattie's MugMod v2.0 # // for Counter-Strike: Source # // # // * Description: # // Any knife kill will steal the victim's money. # // # // * Install instructions: # // 1. Install Mattie's EventScripts plugins: # // http://mattie.info/cs # // # // 2. Add the following line somewhere in autoexec.cfg: # // es_load mugmod # // # // ****************************** import es import random info = es.AddonInfo() info.name = "es_RoundSound" info.version = "3.0" info.url = "http://holy-mod.de" info.basename = "RoundSound" info.author = "TanaToS" # all our server variables are declared here es_RoundSound = es.ServerVar("es_RoundSound", "RoundSound -- 3.0 -- TanaToS", "Name/Version/Modder of RoundSound") rs_soundList = ['twinnar.wav','twinnar2.wav','twinnar3.wav','ctwinnar4.wav','ctwinnar2.wav','ctwinnar3.wav'] rs_soundDir = 'misc/' def load(): es_RoundSound.makepublic() rs_addSounds() def rs_addSounds(): for rs_soundTitle in rs_soundList: es.stringtable('downloadables', 'sound/' + rs_soundDir + rs_soundTitle) def es_map_start(event_var): rs_addSounds() def round_end(event_var): if event_var['winner'] == "2": rs_playnum = random.randint(1,3) if rs_playnum == 1: es.cexec_all('playgamesound', 'misc/twinnar.wav') if rs_playnum == 2: es.cexec_all('playgamesound', 'misc/twinnar2.wav') if rs_playnum == 3: es.cexec_all('playgamesound', 'misc/twinnar3.wav') if event_var['winner'] == "3": rs_playnum = random.randint(1,3) if rs_playnum == 1: es.cexec_all('playgamesound', 'misc/ctwinnar2.wav') if rs_playnum == 2: es.cexec_all('playgamesound', 'misc/ctwinnar3.wav') if rs_playnum == 3: es.cexec_all('playgamesound', 'misc/ctwinnar4.wav') # ****************************** # END ROUNDSOUND SCRIPT # ******************************