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

UT2004RPG.RPGLinkAttachment


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
class RPGLinkAttachment extends LinkAttachment;

simulated function UpdateLinkColor()
{
    if (Instigator != None && Instigator.Weapon != None)
    {
        if (LinkGun(Instigator.Weapon) != None)
            LinkGun(Instigator.Weapon).UpdateLinkColor(LinkColor);
        else if (RPGWeapon(Instigator.Weapon) != None && LinkGun(RPGWeapon(Instigator.Weapon).ModifiedWeapon) != None)
            LinkGun(RPGWeapon(Instigator.Weapon).ModifiedWeapon).UpdateLinkColor(LinkColor);
    }

    if (MuzFlash != None)
    {
        switch (LinkColor)
        {
            case LC_Gold:
                MuzFlash.Skins[0] = FinalBlend'XEffectMat.LinkMuzProjYellowFB';
                break;
            case LC_Green:
            default:
                MuzFlash.Skins[0] = FinalBlend'XEffectMat.LinkMuzProjGreenFB';
                break;
        }
    }
}

defaultproperties
{
}

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:50.218 - Created with UnCodeX