[Release] StartRole

Random150

Contributor
Veteran X
StartRole mutator will change which role the players start as. Simply install it as a mutator and run it. This is server side only mutator and clients doesnt require it.

Put the startrole.u in your Tribes3/Program/Bin folder. When loading the server call it using the following command. "?mutator=startrole.mutator?" Here is an example:
Code:
Beta_Dedicated_Server.exe MP-fort?game=gameclasses.modectf?mutator=startrole.mutator?maxplayers=64?AdminName=admin?AdminPassword=gtwrox -server -INI=GTW.ini -server log=GTW_Server.log

You have the freedom of deciding which role [and armor] the palyer starts with by editing the main .ini file. This is usually TV_CD_DVD.ini. Add the following section to the bottom of the file:
Code:
[StartRole.Mutator] 
NewCombatRole=EquipmentClasses.CombatRoleLight

You have the one of three choices:
Code:
EquipmentClasses.CombatRoleMedium
EquipmentClasses.CombatRoleLight
EquipmentClasses.CombatRoleHeavy

Source code is included naturaly.

You can download it here:
startrole_0.1.bh
startrole_0.1.lzh
startrole_0.1.tar
startrole_0.1.zip
 
Here is the source for those who just want to see how easy it was to do:

Code:
class Mutator extends Gameplay.Mutator;

var class<Gameplay.CombatRole> NewCombatRole;

function PostBeginPlay()
{
	local Gameplay.MultiPlayerStart Start;

	foreach AllActors( class'Gameplay.MultiPlayerStart', Start )
	if(Start != None && Start.combatRole != NewCombatRole;)
	{
		Start.combatRole = NewCombatRole;
	}
}

defaultproperties
{
    GroupName		= "startrole"
    FriendlyName	= "Start Role Override"
    Description		= "Change the default start role"

    //NewCombatRole 	= class'EquipmentClasses.CombatRoleMedium'
    NewCombatRole 	= class'EquipmentClasses.CombatRoleLight'
    //NewCombatRole 	= class'EquipmentClasses.CombatRoleHeavy'
}
 
Now we can get all of those maps in the VM map pack spawning back in medium and allow server admins to mutate the MP start class as it should have been done originally!

Random 150, Could you look into a mutator for the ARENA gametype that will alloow server admins to choose how many rounds ARENA is played? The other modification that's desperately needed is to be able to limit a players ability to visit the invo only twice during 1 round in arena.

There is a REAL NEED for this.

Please help!
 
Is this normal? I do have the ByteWebAdmin installed, Is there a way to tell the admin console about the mod, or does it really matter if it works?

And great job BTW... Just the kind of code we need.

Taken from my test server console:


Log: Scanning and building mutator list
WebAdmin: Unknown Mutator in use: startrole.Mutator
ServerAdmin: ByteWeb.ByteWebAdmin Initialized on Port ........
 
Back
Top