Skip to content

Instantly share code, notes, and snippets.

@jedahan
Created June 20, 2009 02:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jedahan/133013 to your computer and use it in GitHub Desktop.
Save jedahan/133013 to your computer and use it in GitHub Desktop.
foreach line
if line.contains("Game reset started")
endtime = line.column(4) + 00:02
marines = {}
aliens = {}
foreach line
if line.column(4) >= endtime
break
id = line.extract(STEAM_?:?:*>)
team = line.extract("*1team")
if team=="marine"
if aliens.contains(id)
markTeamSwitch(id)
else
marines.add(id)
else
if marines.contains(id)
markTeamSwitch(id)
else
aliens.add(id)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment