Worst-case scenario: the UEd Goblin wipes the map and burns down your house.

UE1:NBSPServerActor (Class)

From Unreal Wiki, The Unreal Engine Documentation Site
Revision as of 06:02, 1 April 2009 by Azura (Talk | contribs) (Created page with '== Purpose == This class is used as a custom server Actor. == Variables == * None. == Discussion == == Possible improvements == == Complete source code == <uscript>//=====...')

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Purpose

This class is used as a custom server Actor.

Variables

  • None.

Discussion

Possible improvements

Complete source code

//=============================================================================
// NBSPServerActor ==> NoBullShitPlus v1.09
//=============================================================================
 
class NBSPServerActor extends Actor;
 
function PostBeginPlay()
{
	local NBSP a;
 
	Super.PostBeginPlay();
 
	// Make sure it wasn't added as a mutator	
	foreach AllActors(class 'NBSP',a)
		return;
 
	a = Level.Spawn(Class'NBSP');
	a.NextMutator = Level.Game.BaseMutator;
	Level.Game.BaseMutator = a;
 
	// Fix the MaxTimeMargin for Epic
	class'playerpawn'.default.maxtimemargin = 1;
	class'playerpawn'.staticsaveconfig();
}
 
defaultproperties
{
    bHidden=True;
}