Core.Object | +--Engine.Actor | +--Engine.Info | +--Engine.Mutator | +--Botpack.FatBoy
void
ScoreKill(Pawn Killer, Pawn Other)
00001 //============================================================================= 00002 // FatBoy 00003 // makes all players fat 00004 //============================================================================= 00005 00006 class FatBoy expands Mutator; 00007 00008 function ScoreKill(Pawn Killer, Pawn Other) 00009 { 00010 if ((Killer != Other) && (Other != None) && (Killer != None)) 00011 { 00012 // Normal kill. 00013 if (Killer.Fatness >= 240) 00014 Killer.Fatness = 255; 00015 else 00016 Killer.Fatness += 10; 00017 00018 Other.Fatness -= 10; 00019 if (Other.Fatness < 60) 00020 Other.Fatness = 60; 00021 } 00022 00023 if ( (Other != None) && ((Killer == None) || (Killer == Other)) ) 00024 { 00025 // Suicide. 00026 Other.Fatness -= 10; 00027 if (Other.Fatness < 60) 00028 Other.Fatness = 60; 00029 } 00030 00031 Super.ScoreKill(Killer, Other); 00032 } 00033 00034 defaultproperties 00035 { 00036 }