can anyone tell me why this doesnt work. i got a few of the lines from a "tutorial" which didnt really show how it was supposed to work. this is ment to be run from a Server. i want this to be done from a mod because i dont want ot make my own game ver.
class myMod extends Mutator;
var int XSize, YSize;
function PostRender(canvas Canvas)
{
Canvas.Reset();
Canvas.Font = Canvas.MedFont;
Canvas.DrawColor.r = 255;
Canvas.DrawColor.g = 255;
Canvas.DrawColor.b = 255;
Canvas.SetPos(10, 500);
Canvas.DrawText("This is a test");
//tutorial..
If (NextHUDMutator!=none)
NextHUDMutator.PostRender(canvas);
//tutorial..end
Super.PostRender(Canvas);
}
//tutorial..
Simulated Function Tick(float delta)
{
If (level.netmode==NM_DedicatedServer||bHUDMutator)
Disable('Tick');
Else
RegisterHUDMutator();
}
//tutorial end
defaultproperties
{
//tutorial..
bAlwaysRelevant=True
bNetTemporary=True
RemoteRole=Role_SimulatedProxy
//tutorial..end
}
class myMod extends Mutator;
var int XSize, YSize;
function PostRender(canvas Canvas)
{
Canvas.Reset();
Canvas.Font = Canvas.MedFont;
Canvas.DrawColor.r = 255;
Canvas.DrawColor.g = 255;
Canvas.DrawColor.b = 255;
Canvas.SetPos(10, 500);
Canvas.DrawText("This is a test");
//tutorial..
If (NextHUDMutator!=none)
NextHUDMutator.PostRender(canvas);
//tutorial..end
Super.PostRender(Canvas);
}
//tutorial..
Simulated Function Tick(float delta)
{
If (level.netmode==NM_DedicatedServer||bHUDMutator)
Disable('Tick');
Else
RegisterHUDMutator();
}
//tutorial end
defaultproperties
{
//tutorial..
bAlwaysRelevant=True
bNetTemporary=True
RemoteRole=Role_SimulatedProxy
//tutorial..end
}