A Simple Bot

A VERY simple bot. Works with all versions of Rune. It’s actually just a scriptpawn that automatically restarts when it dies.

To use it on your server, put all the files into your game System folder. Then when you make a server, select the ASimpleBot mutator from the list. Also add ServerPackages=ASimpleBot under all the other ServerPackages in Rune.ini.

DOWNLOAD:
ASimpleBot.zip | ASimpleBotSrc.zip

CODE:

//=============================================================================
// ASimpleBot
//=============================================================================
Class ASimpleBot extends LokiGuard;

function InitPlayerReplicationInfo()
{
	if (PlayerReplicationInfo.PlayerName == "")
		PlayerReplicationInfo.PlayerName = "ASimpleBot";
}

state Dying
{

PostDeath:
	if( Level.Game.RestartPlayer(self))
    {
		Enemy = None;
		StowWeapon = None;
		ClientReStart();
    }
    else
		log("ASimpleBot failed to restart!");
}

DefaultProperties
{
	bIsPlayer=True
	Intelligence=BRAINS_HUMAN
	Health=100
	MaxHealth=100
	bCanJump=True
	bCanWalk=True
	bCanSwim=True
	bCanFly=True
	bCanOpenDoors=True
	bCanDoSpecial=True
	bAdvancedTactics=True
	bCanStrafe=True
	bCanGrabEdges=True
	Skill=2.000000
	StartStowWeapon=None
	StartShield=None
	StartWeapon=None
	BlockChance=1.000000
	FightOrDefend=0.500000
}
Advertisements

Posted on 2012/09/12, in Server Hosting and tagged , , , , , , , . Bookmark the permalink. Leave a comment.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: