예제 #1
0
파일: mapLint.py 프로젝트: yongjhih/fh2py
 def start(self):
     if u.rconExec('maplist.configfile') != 'mods/fh2/maplint.con':
         u.rconExec('maplist.clear')
         u.rconExec('maplist.configfile mods/fh2/maplint.con')
         u.rconExec('maplist.load')
         u.rconExec('admin.nextlevel 0')
         self.first = True
         print 'maplint: started'
     print 'maplint: maps:'
     print u.rconExec('maplist.list')
     print 'current', u.rconExec('maplist.currentmap'), 'next', u.rconExec('admin.nextlevel')
예제 #2
0
파일: mapLint.py 프로젝트: yongjhih/fh2py
 def next(self):
     if int(u.rconExec('admin.nextlevel')) == 0 and not self.first:
         u.rconExec('quit')
     else:
         u.rconExec('admin.runnextlevel')
예제 #3
0
파일: NCOrifle.py 프로젝트: yongjhih/fh2py
 def setKit(self, kit, team, soldier):
     rconExec('gameLogic.setKit %d 6 "%s" "%s"' % (team, kit, soldier))
     if DEBUG: print 'NCOrifle: Set NCO kit for team %d to %s, %s' % (team, kit, soldier)