-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathctf.py
More file actions
30 lines (25 loc) · 681 Bytes
/
ctf.py
File metadata and controls
30 lines (25 loc) · 681 Bytes
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
#!/usr/bin/env python
#
# Run a game of Pythonized Threewave CTF
#
# 2000-12-21 Barry Pederson <bpederson@geocities.com>
#
import sys
from qwpython.pakfile import PakLoader
from qwpython.qwsv import engine
#
# Let the engine know what the command-line args were
#
engine.argv = sys.argv + ['+gamedir', 'ctf']
#
# Setup the QuakeWorld Server engine with a place to send output
# and an object that will load resources such as maps
#
engine.stdout = sys.stdout
engine.loader = PakLoader()
engine.loader.add_directory('../quake/id1')
engine.loader.add_directory('../quake/ctf') # Last added is first searched
#
# Import the game package to get things going.
#
import py_ctf