Easter Eggs

Discussions about UT99
Post Reply
User avatar
PrinceOfFunky
Godlike
Posts: 1200
Joined: Mon Aug 31, 2015 10:31 pm

Easter Eggs

Post by PrinceOfFunky »

I've found these easter eggs in SimpleCommandlet.uc (666, wookie, skywalker):

Code: Select all

class SimpleCommandlet expands Commandlet;

var int intparm;

function int TestFunction()
{
	return 666;
}

function int Main( string Parms )
{
	local int temp;
	local float floattemp;
	local string textstring;
	local string otherstring;

	log("Simple commandlet says hi.");
	log("Testing function calling.");
	temp = TestFunction();
	log("Function call returned" @ temp);
	log("Testing cast to int.");
	floattemp = 3.0;
	temp = int(floattemp);
	log("Temp is cast from "$floattemp$" to "$temp);
	log("Testing min()");
	temp = Min(32, TestFunction());
	log("Temp is min(32, 666): "$Temp);
	textstring = "wookie";
	log("3 is a "$Left(textstring, 3));
	otherstring = "skywalker";
	otherstring = Mid( otherstring, InStr( otherstring, "a" ) );
	log("otherstring:" @ otherstring);
}
Do you know any others?
"Your stuff is known to be buggy and unfinished/not properly tested"
Post Reply