Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |
00001 00002 00003 00004 00005 00006 00007 00008 00009 00010 00011 00012 00013 00014 00015 00016 00017 00018 00019 00020 00021 00022 00023 00024 00025 00026 00027 00028 00029 00030 00031 00032 00033 00034 00035 00036 00037 00038 00039 00040 00041 00042 00043 00044 00045 00046 |
//============================================================================= // DamTypeMercuryDirectHit // Copyright 2003-2011 by Wormbo <wormbo@online.de> // // Damage type for mercury missile hitting the head and blowing up. //============================================================================= class BetrayalDamTypeMercuryHeadHit extends BetrayalDamTypeMercuryDirectHit abstract; //============================================================================= // IncrementKills // // Play a headshot announcement and count the number of headshots //============================================================================= static function IncrementKills(Controller Killer) { local xPlayerReplicationInfo xPRI; if (PlayerController(Killer) != None) PlayerController(Killer).ReceiveLocalizedMessage(class'DamTypeSniperHeadShot'.default.KillerMessage); xPRI = xPlayerReplicationInfo(Killer.PlayerReplicationInfo); if (xPRI != None) { xPRI.HeadCount++; if (xPRI.HeadCount == 15 && UnrealPlayer(Killer) != None) UnrealPlayer(Killer).ClientDelayedAnnouncementNamed('HeadHunter', 15); } } //============================================================================= // Default properties //============================================================================= defaultproperties { DeathString = "%k drove a mercury missile into %o's head." FemaleSuicide = "%o somehow managed to take off her head with her own mercury missile." MaleSuicide = "%o somehow managed to take off his head with his own mercury missile." bSpecial = True bAlwaysSevers = True } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |