Post Pacific

Post Pacific (https://postpacific.loc-online.com/index.php)
-   Темы без сохранившегося раздела (https://postpacific.loc-online.com/forumdisplay.php?f=10001)
-   -   setting karma (https://postpacific.loc-online.com/showthread.php?t=7618)

DeKoth 21.05.2007 20:33

setting karma
 
Does anyone know off hand if there is a function in AI to set karma on a player?

Sdw 22.05.2007 04:58

Code:

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)


All times are GMT. The time now is 15:26.