Simple mutator to more or less provide an example. I wanted to give the option to earn bandages by killing people but it looks like the ScoreKill function doesn't appear to work.
To install (listen server):
unzip to:
To test (listen server):
Open console with ~
Type the following:
To install (dedicated server):
unzip to:
To test (dedicated server):
restart the server if its already running
When selecting a map, add "?mutator=NoBandages.NoBandages" to the "Additional URL Variables" field
Note: server will become unranked if its ranked
Credit goes to Ducky for being first to figure out how to get this stuff running on a dedicated server
Code:
class NoBandages extends Mutator;
// variable declarations go here
// hooks go here
function PostBeginPlay()
{
Super.PostBeginPlay(); // Run the super class function (Mutator.PostBeginPlay).
}
function ModifyPlayer(Pawn Other)
{
local ROPawn MyPawn;
MyPawn = ROPawn(Other);
MyPawn.NumBandages = 0;
super.ModifyPlayer(Other);
}
defaultproperties
{
GroupName="NoBandages"
FriendlyName="No Bandages"
Description="Removes bandages"
}
unzip to:
Code:
My Games\RedOrchestra2\ROGame\Published\CookedPC\Script
Open console with ~
Type the following:
Code:
Open te-fallenfighters?minplayers=14?maxplayers=14?mutator=NoBandages.NoBandages
unzip to:
Code:
ROGame\CookedPCServer
restart the server if its already running
When selecting a map, add "?mutator=NoBandages.NoBandages" to the "Additional URL Variables" field
Note: server will become unranked if its ranked
Credit goes to Ducky for being first to figure out how to get this stuff running on a dedicated server
Attachments
Last edited: