Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames

Onslaught.DamTypeRoadkill


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
00047
00048
00049
00050
00051
class DamTypeRoadkill extends VehicleDamageType
    abstract;

var int MessageSwitchBase, NumMessages;

static function string DeathMessage(PlayerReplicationInfo Killer, PlayerReplicationInfo Victim)
{
    if (default.VehicleClass != None)
        return Default.DeathString @ default.VehicleClass.default.VehiclePositionString $ ".";
    else
        return Default.DeathString $ ".";
}

static function ScoreKill(Controller Killer, Controller Killed)
{
    local TeamPlayerReplicationInfo TPRI;

    if (Killer == Killed)
        return;

    TPRI = TeamPlayerReplicationInfo(Killer.PlayerReplicationInfo);
    if (TPRI != None)
    {
        TPRI.ranovercount++;
        if (TPRI.ranovercount == 10 && UnrealPlayer(Killer) != None)
        {
            UnrealPlayer(Killer).ClientDelayedAnnouncementNamed('RoadRampage', 15);
            return;
        }
    }

    if (PlayerController(Killer) != None)
        PlayerController(Killer).ReceiveLocalizedMessage(Default.MessageClass, Rand(Default.NumMessages) + Default.MessageSwitchBase);
}

defaultproperties
{
     NumMessages=4
     DeathString="%k ran over %o"
     FemaleSuicide="%o ran over herself."
     MaleSuicide="%o ran over himself."
     bLocationalHit=Falsch
     bKUseTearOffMomentum=Wahr
     bNeverSevers=Wahr
     bExtraMomentumZ=Falsch
     bVehicleHit=Wahr
     GibModifier=2.000000
     GibPerterbation=0.500000
     MessageClass=Class'Onslaught.ONSVehicleKillMessage'
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: Fr 30.3.2007 08:43:52.000 - Creation time: Mo 16.4.2007 11:20:46.140 - Created with UnCodeX