-
Notifications
You must be signed in to change notification settings - Fork 0
/
cmd_letsplay.cfg
46 lines (36 loc) · 1.92 KB
/
cmd_letsplay.cfg
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
// letsplay - remod edition
//
// A random map script for if you just don't know what to play anymore.
//
// Original authors: Star, RaZgRiZ
//
// port to remod: Star
//
// Execute it with the following command + arguments
//
// #letsplay <mode>
//
// where <mode> might be any deathmatch, team, capture or ctf mode you like to play!
// Edit the maplist to your needs
dm_mps = [complex ot academy justice turbine mbt2 dock duel8 tartech aard3c mbt10 park refuge kffa memento sdm1 injustice frozen duel7 oddworld]
ctf_mps = [tempest capture_night reissen tejen authentic l_ctf face-capture mbt1 dust2 mercury akroseum abbey redemption damnation forge campo desecration recovery wdcd]
capture_mps = [urban_c nevil_c fb_capture nmp9 c_valley lostinspace fc3 face-capture nmp4 nmp8 hallo tempest monastery ph-capture hades fc4 relic fc5 paradigm corruption asteroids ogrosupply reissen akroseum duomo frostbyte c_egypt caribbean dust2 campo killcore3 damnation arabic cwcastle suburb abbey venice mercury core_transfer xenon forge tortuga core_refuge infamy tejen capture_night river_c serenity]
// scriptcore
dm_modes = [effic insta ffa efficteam tac tacteam teamplay instateam]
ctf_modes = [ctf instactf efficctf hold instahold effichold protect instaprotect efficprotect]
capture_modes = [capture regencapture]
rndo = [at $arg1 (rnd (listlen $arg1))]
cmd_letsplay = [
req = $arg2
cond (> (indexof $dm_modes $req) -1) [
mapmode (rndo $dm_mps) (indexof $MODENAMES $req)
] (> (indexof $ctf_modes $req) -1) [
mapmode (rndo $ctf_mps) (indexof $MODENAMES $req)
] (> (indexof $capture_modes $req) -1) [
mapmode (rndo $capture_mps) (indexof $MODENAMES $req)
] [say ( format "^f3Invalid mode!" ) ]
]
// following is obsolete in remod
//listcomplete "letsplay" (concat $dm_modes $ctf_modes $capture_modes)
// we are using this instead
registercommand "letsplay" cmd_letsplay 2 "w" "letsplay [mode] ^f1- Lets just play something, god damned!"