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

de.TBNotify


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
// TBNotify.
// Steve Sinclair, Digital Extremes, Jan 4, 2000 (Sept 5,2000)

class TBNotify expands SpawnNotify;

//Called automatically anytime the class you specified in default properites
// is spawned (also called if a subclass of that class is spawned).
//Great way to catch things to modify or replace them - just make sure to use
// if statements to avoid infinite recursion if you replace something by
// spawning a new subclass.

simulated event Actor SpawnNotification( Actor A )
{
    local Mutator tempActor;    
    if ( HUD(A).HUDMutator == none ) 
    {
        //If there aren't any HUDMutators attached to the HUD, attach
        // your mutator.
        HUD(A).HUDMutator = spawn(class'TBMutator',A);
    }
    else
    {
        //If there is a HUDMutator attached to the HUD already, call
        // AddMutator on that hud, passing it a newly spawned mutator
        // of your own. Note that the AddMutator function will
        // automatically seek the end of the mutator chain. (If the
        // one you try to add yourself to has a NextMutator, the
        // function call is passed to that mutator.)
        HUD(A).HUDMutator.AddMutator(spawn(class'TBMutator',A));
    }
    
    //Have to return the original actor (the HUD). If we had
    // completely replaced it we would return the replacement.
    return A;
}

defaultproperties
{
     ActorClass=Class'Engine.HUD'
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: So 4.5.2008 11:16:20.000 - Creation time: Fr 7.6.2013 13:16:01.966 - Created with UnCodeX