This is my code written from tutorial by Druken Master
ascholer@mediaone.net... You'll get the idea...
create mutator:
class scpHudScore extends Mutator;
var bool gbInitDone;
function PreBeginPlay()
{
if (gbInitDone) return;
gbInitDone = True;
spawn(class'scpHudScore.scpHudScoreNotify');
}
Create the spawn notify:
class scpHudScoreNotify extends SpawnNotify;
simulated event Actor SpawnNotification( Actor loActor )
{
if ( HUD(loActor).HUDMutator == none)
{
HUD(loActor).HUDMutator = spawn(class'scpHudScore.scpHudScoreHud',loActor);
}
else
{
HUD(loActor).HUDMutator.AddMutator(spawn(class'scpHudScore.scpHudScoreHud',loActor));
}
return loActor;
}
defaultproperties
{
ActorClass=class'Engine.HUD';
}
create the hud:
class scpHudScoreHud extends Mutator;
simulated function PostRender (canvas loCanvas)
{
loCanvas.SetPos(30,50);
loCanvas.DrawText("my text");
}