PDA

View Full Version : setting karma


DeKoth
21.05.2007, 20:33
Does anyone know off hand if there is a function in AI to set karma on a player?

Sdw
22.05.2007, 04:58
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.

m4rk
26.05.2007, 16:59
in c4 you can just make
attacker.karma = ( attacker.karma + 500 ); (or - / *... whatever you like)