UE1:NBSPServerActor (Class): Difference between revisions
m Created page with '== Purpose == This class is used as a custom server Actor. == Variables == * None. == Discussion == == Possible improvements == == Complete source code == <uscript>//=====...' |
|||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
== Purpose == | == Purpose == | ||
This class is used as | This class is used as an alternative way to load NBSP. | ||
== Variables == | == Variables == | ||
Line 11: | Line 11: | ||
== Possible improvements == | == Possible improvements == | ||
== | == Commented source code == | ||
<uscript>//============================================================================= | <uscript>//============================================================================= | ||
Line 21: | Line 21: | ||
function PostBeginPlay() | function PostBeginPlay() | ||
{ | { | ||
local NBSP a; | local NBSP a; // Used for spawning | ||
Super.PostBeginPlay(); | Super.PostBeginPlay(); // Pass PostBeginPlay() to Actor super class | ||
// Make sure it wasn't added as a mutator | // Make sure it wasn't added as a mutator | ||
Line 29: | Line 29: | ||
return; | return; | ||
a = Level.Spawn(Class'NBSP'); | a = Level.Spawn(Class'NBSP'); // Spawn NBSP class | ||
a.NextMutator = Level.Game.BaseMutator; | a.NextMutator = Level.Game.BaseMutator; // Set NextMutator of NBSP instance to the current BaseMutator | ||
Level.Game.BaseMutator = a; | Level.Game.BaseMutator = a; // Make the NBSP instance the base mutator | ||
// Fix the MaxTimeMargin for Epic | // Fix the MaxTimeMargin for Epic | ||
Line 43: | Line 43: | ||
}</uscript> | }</uscript> | ||
[[Category:NBSP | == Footer == | ||
[[Category:NBSP Classes]] |
Latest revision as of 18:18, 5 April 2009
Purpose
This class is used as an alternative way to load NBSP.
Variables
- None.
Discussion
Possible improvements
Commented source code
<uscript>//============================================================================= // 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;
}</uscript>