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 19:18, 5 April 2009 by Azura (Talk | contribs) (moved NBSPServerActor (Class) to UE1:NBSPServerActor (Class))

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

Purpose[edit]

This class is used as an alternative way to load NBSP.

Variables[edit]

  • None.

Discussion[edit]

Possible improvements[edit]

Commented source code[edit]

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

Footer[edit]