|
|
@@ -3,7 +3,7 @@
|
|
|
# Game Server Query
|
|
|
# Author: Anonymous & Daniel Gibbs
|
|
|
# # Website: http://gameservermanagers.com
|
|
|
-# Version: 030515
|
|
|
+# Version: 190216
|
|
|
|
|
|
import optparse
|
|
|
import socket
|
|
|
@@ -19,14 +19,16 @@ class GameServer:
|
|
|
#
|
|
|
if self.option.engine == 'source':
|
|
|
self.query_prompt_string = '\xFF\xFF\xFF\xFFTSource Engine Query\0'
|
|
|
- if self.option.engine == 'goldsource':
|
|
|
+ elif self.option.engine == 'goldsource':
|
|
|
self.query_prompt_string = '\xFF\xFF\xFF\xFFTSource Engine Query\0'
|
|
|
- if self.option.engine == 'spark':
|
|
|
+ elif self.option.engine == 'spark':
|
|
|
self.query_prompt_string = '\xFF\xFF\xFF\xFFTSource Engine Query\0'
|
|
|
- if self.option.engine == 'realvirtuality':
|
|
|
+ elif self.option.engine == 'realvirtuality':
|
|
|
self.query_prompt_string = '\xFF\xFF\xFF\xFFTSource Engine Query\0'
|
|
|
- if self.option.engine == 'unity3d':
|
|
|
+ elif self.option.engine == 'unity3d':
|
|
|
self.query_prompt_string = '\xFF\xFF\xFF\xFFTSource Engine Query\0'
|
|
|
+ elif self.option.engine == 'idtech3':
|
|
|
+ self.query_prompt_string = '\xFF\xFF\xFF\xFFTSource Engine Query\0'
|
|
|
elif self.option.engine == 'unreal':
|
|
|
self.query_prompt_string = '\x5C\x69\x6E\x66\x6F\x5C'
|
|
|
elif self.option.engine == 'unreal2':
|
|
|
@@ -101,7 +103,7 @@ if __name__ == '__main__':
|
|
|
action = 'store',
|
|
|
dest = 'engine',
|
|
|
default = False,
|
|
|
- help = 'Engine type: avalanche, goldsource, realvirtuality, spark, source, unity3d, unreal, unreal2.'
|
|
|
+ help = 'Engine type: avalanche, goldsource, idtech3, realvirtuality, spark, source, unity3d, unreal, unreal2.'
|
|
|
)
|
|
|
parser.add_option(
|
|
|
'-v', '--verbose',
|