Disable CFReptuation by default
Reputation currently doesn't have a very noticable in-game impact, but currently causes a pretty big performance hit when killing a lot of monsters.master^2
parent
8a10e01301
commit
9838c555ed
|
@ -10,8 +10,13 @@ def get_killer(hitter):
|
|||
def is_player(op):
|
||||
return op.Type == Crossfire.Type.PLAYER
|
||||
|
||||
killer = get_killer(Crossfire.WhoIsActivator())
|
||||
victim = Crossfire.WhoAmI()
|
||||
def on_kill():
|
||||
killer = get_killer(Crossfire.WhoIsActivator())
|
||||
victim = Crossfire.WhoAmI()
|
||||
|
||||
if is_player(killer):
|
||||
CFReputation.record_kill(victim.Race, victim.Map.Region.Name, killer.Name)
|
||||
if is_player(killer):
|
||||
CFReputation.record_kill(victim.Race, victim.Map.Region.Name, killer.Name)
|
||||
|
||||
# disabled by default, doesn't currently have a big in-game impact and has a
|
||||
# pretty significant performance hit
|
||||
#on_kill()
|
||||
|
|
Loading…
Reference in New Issue