Does anyone know off hand if there is a function in AI to set karma on a player?
c1 = GetLastAttacker();
i1 = c1.karma;
//DYING_ACTIONS_START
if (Karma_cleaner == 1 && i1 > 0)
{
c1.karma = i1 - Karma_clean_amount;
}
//DYING_ACTIONS_END
It was working back in C1 (Well, for removing karma), just modify it.
in c4 you can just make
attacker.karma = ( attacker.karma + 500 ); (or - / *... whatever you like)