I'm not exactly up to speed when it comes to manipulating entities, but wouldn't it just be easier to write an abstraction script that gets the current game's gamerules entity and calls the appropriate input on it?
For example, for TF2, getting the
tf_gamerules entity and calling AddBlueTeamScore:
PHP Code:
new entity = FindEntityByClassname(-1, "tf_gamerules");
SetVariantInt(1);
AcceptEntityInput(entity, "AddBlueTeamScore");
Edit: Oh, it's possible that other games don't have named entities for gamerules. I just kinda assumed they did. CS:S does, but I can't find any docs on cs_gamerules and its inputs.
__________________