summarylogtreecommitdiffstats
path: root/purity-zen
diff options
context:
space:
mode:
authorCôme Bernigaud2015-06-08 20:51:18 +0200
committerCôme Bernigaud2015-06-08 20:51:18 +0200
commit5b192358e3e62839af9a971991e6c2fd36eed23a (patch)
treeff338e65128eef515c347597f23acf061e6c48da /purity-zen
downloadaur-5b192358e3e62839af9a971991e6c2fd36eed23a.tar.gz
Initial import
Diffstat (limited to 'purity-zen')
-rwxr-xr-xpurity-zen13
1 files changed, 13 insertions, 0 deletions
diff --git a/purity-zen b/purity-zen
new file mode 100755
index 00000000000..8ec1a8ce192
--- /dev/null
+++ b/purity-zen
@@ -0,0 +1,13 @@
+#!/bin/sh
+map=`(echo -e "tut1\nrun1\nrun2" && ls ~/.purity/base/maps/ 2>/dev/null | grep "\.bsp" | egrep -o '.+[^\.bsp]') | zenity --list --text="Choose the map you wanna launch" --column="Map"`
+
+case $map in
+"")
+ ;;
+tut1)
+ purity_cmd -nointro +sv_pure 0 +g_gametype 5 +map $map
+ ;;
+*)
+ purity_cmd -nointro +sv_pure 0 +g_gametype 3 +map $map
+ ;;
+esac