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

Difference between revisions of "UE1:NBSPLog (Class)"

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
m (Created page with '== Purpose == This is the mutator part of NBSP. == Variables == * var NBSPLog logger - Reference to Logger class * var NBSPSettings settings * var NBSPReporter reporter - Refe...')
 
m (Variables)
Line 5: Line 5:
 
== Variables ==
 
== Variables ==
  
* var NBSPLog logger - Reference to Logger class
+
* var private bool xxhacktheplanet - Boolean
* var NBSPSettings settings
+
* var NBSP nbsp - Reference to NBSP ( [[NBSP (Class)]] ) mutator class
* var NBSPReporter reporter - Reference to Reporter class
+
* var NBSPWorker worker
+
* var NBSPPackages packages
+
* var NBSPMsgMutator fix
+
* var NBSPChecker nbsp[256]
+
* var NBSPPoll poll[256]
+
* var NBSPNotify ny
+
* var int nbspMagik - Used for generating magic number
+
* var PlayerInfo PI[256] - Struct containing various information on players
+
* var string paths, canvas, packs
+
* var private float zTCT
+
* var string PureVersion
+
* var config string h
+
* var Sound shs
+
* var config string AllowedClientVersions - List of allowed client versions
+
* var config bool UseNBSPLog;
+
* var config string LogDirectory - Directory where external log should be placed.
+
* var config bool LogSettings
+
* var config bool LogIdentd
+
* var config bool LogToExternal - Boolean to indicate if external log should be used.
+
* var config bool UTPureMode
+
* var config bool DebugMode - Used for toggling debug mode
+
  
 
== Discussion ==
 
== Discussion ==

Revision as of 04:51, 1 April 2009

Purpose

This is the mutator part of NBSP.

Variables

  • var private bool xxhacktheplanet - Boolean
  • var NBSP nbsp - Reference to NBSP ( NBSP (Class) ) mutator class

Discussion

Complete source code

//=============================================================================
// NBSPLog ==> NoBullShitPlus v1.09
//=============================================================================
 
class NBSPLog extends StatLogFile;
 
var private bool xxhacktheplanet;
var NBSP nbsp;
 
function StartLog()
{
	local string FileName;
 
	if (len(nbsp.LogDirectory) != 0)
		FileName = nbsp.LogDirectory$"NBSP."$Level.Month$"."$Level.Day$"."$Level.Year$"_"$Level.Hour$"."$Level.Minute$"."$Level.Second;
	else
		FileName = "../Logs/NBSP."$Level.Month$"."$Level.Day$"."$Level.Year$"_"$Level.Hour$"."$Level.Minute$"."$Level.Second;
 
	StatLogFile = FileName$".tmp";
	StatLogFinal = FileName$".log";
	OpenLog();
}
 
function Timer() {} // Don't log pings every 30 seconds
 
defaultproperties
{
	StatLogFile="./NBSP.log"
}