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

DruidsRPGcvs.DruidAdrenRegenInv


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
class DruidAdrenRegenInv extends Inventory
    config(UT2004RPG);

var config int RegenAmount;

function bool HasActiveArtifact()
{
    return class'ActiveArtifactInv'.static.hasActiveArtifact(Instigator);
}

function Timer()
{
    local Controller C;

    if (Instigator == None || Instigator.Health <= 0)
    {
        Destroy();
        return;
    }

    C = Instigator.Controller;
    if (C == None && Instigator.DrivenVehicle != None)
         C = Instigator.DrivenVehicle.Controller;

    if (C != None && !Instigator.InCurrentCombo() && !HasActiveArtifact())
    {
        C.AwardAdrenaline(RegenAmount);
    }
}

defaultproperties
{
    RemoteRole=ROLE_DumbProxy
    RegenAmount = 1;
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: Mon 10/7/2006 04:02:14.000 - Creation time: Wed 7/2/2007 19:16:37.453 - Created with UnCodeX