So I *might* have found where to put some code. The function onPlayerKilled() in the gesource/python/ges/GamePlay/__init__.py may be what I'm looking for. The issue that I'm hitting now is even though I've added code to create and write to a file, it isn't running. I know how to write to a file in python, so I know it's not a syntax or logic issue. It's almost as if the python code doesn't run and it's pre-compiled and I'd have to recompile it or something. Thoughts?
So I was looking for my file in the gesource path. It actually created it in the "../Steam/steamapps/common/Source SDK 2007/" directory. However, the parameters (self, victim, killer, weapon) passed to the onPlayerKilled() function don't actually seem to have the player's name. When the victim and killer variables are output, they just output "player" as the value instead of the player's name. The weapon variable actually works, though. Example output for that variable: "weapon_d5k_silenced".
Now I just have to figure out how to get the player's name. Maybe the victim and killer variables are actually objects that have a name variable? If not, maybe there's a function that can be called and given the victim and killer variables and returns the name?