Noch einfacher geht es mit
yaggl_es. Das ist ein Addon für Mattie's Eventscripts.
Es startet bei Maps mit gg-Prefix automatisch GunGame (gungame3) und lädt die entsprechenden Settings.
Bei Mapende wird wieder alles automatisch deaktiviert.
Im oberen Teil kannst du noch ein paar Einstellungen festlegen:
|
Source code
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
block yaggl_es_conf
{
// yaggl_es_gg_mapsprefixes - a comma separated list of gun game maps prefixes
es_xsetinfo yaggl_es_gg_mapsprefixes "gg,gungame"
// yaggl_es_mani_warmup_timer - time of mani warmup (should be equal to mani_warmup_timer from mani_server.cfg)
// should only be used when mani admin plugin, or any other script/plugin managing warmup, is installed
es_xsetinfo yaggl_es_mani_warmup_timer 60
// yaggl_es_gg_script - name of the script to load
es_xsetinfo yaggl_es_gg_script "gungame3"
// yaggl_es_gg_map_setup - setup for the map
// should be equal to gg_map_setup from gg config
alias yaggl_es_gg_map_setup "mp_timelimit 45; mp_winlimit 0; sv_alltalk 0; mp_chattime 10; mp_c4timer 25; mani_vote_allow_extend 0; ma_unrestrictall"
}
|
Das Script muss in folgenden Ordner (muss noch erstellt werden):
|
Source code
|
1
|
.../cstrike/addons/eventscripts/yaggl_es/
|
Dann noch
es_load yaggl_es in die autoexec.cfg reinschreiben und fertig.
Mit etwas Geschick kann man das Script auch für Deathmatch oder andere Plugins umschreiben.
MfG