So. This is a hack.
it's a python script that opens nexuiz as a subprocess and parses the output as the game is played
- Code: Select all
-V-Benithil's 3 kill spree was ended by SEGABOY900
SEGABOY900 got the RED flag
DANGER0 has been vaporized by BLUDWERKS
BLUDWERKS has 8 frags in a row
Uncle Tux was riddled full of holes by J.Ker
dublpaws{X} exploded
It parses each line and determines basically what happened. It doesn't do anything too fancy, just ranks player based on basic metrics. When the program detects the end of the game - two files are generated - redteam.cfg and blueteam.cfg. Contained within readteam.cfg is a list of commands:
- Code: Select all
Move <playerFoo> to redteam
Move <playerBar> to redteam
likewise for bluetea.cfg, and executes both scripts. (There are probably some timing issues here)
Not exactly sure on the syntax here, but have heard that whoever executes those .cfgs need root privs on the server, is that true?