Benutzerinformationen überspringen
Wohnort: Schwelm
Beruf: Immobilien-Verwalter / Serveradministrator
Rootserver vorhanden: Nein
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
import es, random
#
# Konfiguration
#
def config():
# Moegliche Gruende:
# round_draw
# game_commencing
# cts_win
# terrorists_win
# target_bombed
# bomb_defused
# target_saved
# all_hostages_rescued
# hostages_not_rescued
# Gross- und Kleinschreibung ist egal
# Soundpfad ohne sound/
#
# Format:
# addSound("<grund>", "<soundpfad>")
addSound("round_draw", "you/are_all_loosers.mp3")
#
# Code -- nichts veraendern
#
def load():
global sounds, downloads
sounds = {}
downloads = []
config()
performDownload()
def es_map_start(event_var):
performDownload()
def performDownload():
for download in downloads:
es.stringtable("downloadables", "sound/%s" % download)
def addSound(reason, sound):
if reason not in sound:
sounds[reason] = []
sound = sound.replace("\", "/").replace("//", "/")
sounds[reason].append(sound)
downloads.append(sound)
def round_end(event_var):
reason = event_var["reason"].lower()
if reason not in sounds:
return
es.cexec_all("play", random.choice(sounds[reason]))
|
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
import es, random
#
# Konfiguration
#
def config():
# Moegliche Gruende:
# round_draw
# game_commencing
# cts_win
# terrorists_win
# target_bombed
# bomb_defused
# target_saved
# all_hostages_rescued
# hostages_not_rescued
# Gross- und Kleinschreibung ist egal
# Soundpfad ohne sound/
#
# Format:
# addSound("<grund>", "<soundpfad>")
addSound("round_draw", "you/are_all_loosers.mp3")
#
# Code -- nichts veraendern
#
def load():
global sounds, downloads
sounds = {}
downloads = []
config()
performDownload()
def es_map_start(event_var):
performDownload()
def performDownload():
for download in downloads:
es.stringtable("downloadables", "sound/%s" % download)
def addSound(reason, sound):
if reason not in sound:
sounds[reason] = []
sound = sound.replace("\", "/").replace("//", "/").replace("/", "\")
sounds[reason].append(sound)
downloads.append(sound)
def round_end(event_var):
reason = event_var["reason"].lower()
if reason not in sounds:
return
es.cexec_all("play", random.choice(sounds[reason]))
|
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
import es, random
#
# Konfiguration
#
def config():
# Moegliche Gruende:
# round_draw
# game_commencing
# cts_win
# terrorists_win
# target_bombed
# bomb_defused
# target_saved
# all_hostages_rescued
# hostages_not_rescued
# Gross- und Kleinschreibung ist egal
# Soundpfad ohne sound/
#
# Format:
# addSound("<grund>", "<soundpfad>")
addSound("round_draw", "you/are_all_loosers.mp3")
#
# Code -- nichts veraendern
#
def load():
global sounds, downloads
sounds = {}
downloads = []
config()
performDownload()
def es_map_start(event_var):
performDownload()
def performDownload():
for download in downloads:
es.stringtable("downloadables", "sound/%s" % download)
def addSound(reason, sound):
if reason not in sound:
sounds[reason] = []
es.msg(sound)
sound = sound.replace("\", "/").replace("//", "/").replace("/", "\")
es.msg(sound)
sounds[reason].append(sound)
downloads.append(sound)
def round_end(event_var):
reason = event_var["reason"].lower()
if reason not in sounds:
return
es.cexec_all("play", random.choice(sounds[reason]))
|
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 |
import es, random, os.path
#
# Konfiguration
#
def config():
# Moegliche Gruende:
# round_draw
# game_commencing
# cts_win
# terrorists_win
# target_bombed
# bomb_defused
# target_saved
# all_hostages_rescued
# hostages_not_rescued
# Gross- und Kleinschreibung ist egal
# Soundpfad ohne sound/
#
# Format:
# addSound("<grund>", "<soundpfad>")
addSound("round_draw", "you/are_all_loosers.mp3")
#
# Code -- nichts veraendern
#
def load():
global sounds, downloads
sounds = {}
downloads = []
config()
performDownload()
def es_map_start(event_var):
performDownload()
def performDownload():
for download in downloads:
es.stringtable("downloadables", "sound/%s" % download)
def addSound(reason, sound):
if reason not in sound:
sounds[reason] = []
sound = sound.replace("\", "/").replace("//", "/")
es.msg("%s: existiert%s" % ("%s/sound/%s" % (es.getString("eventscripts_gamedir"), sound), ("!" if os.path.isfile("%s/sound/%s" % (es.getString("eventscripts_gamedir"), sound)) else " nicht!")))
sounds[reason].append(sound)
downloads.append(sound)
def round_end(event_var):
reason = event_var["reason"].lower()
if reason not in sounds:
return
es.cexec_all("play", random.choice(sounds[reason]))
|
Benutzerinformationen überspringen
Wohnort: Schwelm
Beruf: Immobilien-Verwalter / Serveradministrator
Rootserver vorhanden: Nein

Zitat
Ich denke aber mal es liegt daran, dass du einen Listenserver aus CSS heraus startest. Hast es schon einmal mit einem Source Dedicated Server versucht (STEAM->Tools)?