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

UT2004RPG.FriendlyMonsterKillMarker


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
//When a monster created by the Summoning Charm kills someone, this is placed on them and the death is prevented
//for a tick. This allows us to override the Killer with the monster's Master instead of the monster itself,
//which would otherwise be impossible for monsters with melee attacks.
class FriendlyMonsterKillMarker extends Inventory;

var Controller Killer;
var int Health;
var class<DamageType> DamageType;
var vector HitLocation;

function DropFrom(vector StartLocation)
{
    Destroy();
}

function Tick(float deltaTime)
{
    local Pawn P;

    P = Pawn(Owner);
    if (P != None)
    {
        P.LastHitBy = None; //we've already got our killer, don't want it to get overridden
        P.Health = Health;
        P.Died(Killer, DamageType, HitLocation);
    }

    Destroy();
}

defaultproperties
{
     RemoteRole=ROLE_None
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: Sat 15/7/2006 17:15:14.000 - Creation time: Wed 7/2/2007 19:16:39.640 - Created with UnCodeX