Jump to content

How do you setup a server with friendly fire?


LeonardMT

Recommended Posts

Add to your command line URL:
?Mutator=UTGame.UTMutator_FriendlyFire

This will give you some decent friendly fire by default.
And if you want to change the amount, you'll have to compile your own mutator.

Here's the original UTMutator_FriendlyFire.uc:

Spoiler

// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
class UTMutator_FriendlyFire extends UTMutator;

var float FriendlyFireScale;

function bool MutatorIsAllowed()
{
    return UTTeamGame(WorldInfo.Game) != None && Super.MutatorIsAllowed();
}

function InitMutator(string Options, out string ErrorMessage)
{
    UTTeamGame(WorldInfo.Game).FriendlyFireScale = FriendlyFireScale;
    super.InitMutator(Options, ErrorMessage);
}

defaultproperties
{
    FriendlyFireScale=0.5
    GroupNames[0]="FRIENDLYFIRE"
}

 

Edited by Suspiria
  • Like 1
Link to comment
Share on other sites

  • Totem Arts Staff
7 hours ago, LeonardMT said:

Thanks! But vehicles don't give off friendly fire and the voice lines for friendly fire don't appear to work, also how does the FriendlyFireScale scale?

The game isn't coded for friendly fire. And to change it, you'd have to recompile the mutator. 0.5 = 50% dmg.

Link to comment
Share on other sites

4 minutes ago, NodSaibot said:

From old UT? I don't know. If there's stuff for friendly fire, it might be from BD. RenX has never had friendly fire from my knowledge.

In the UDK I found voice lines for the Nod engineer and Mobius (there's probably more but the UDK is huge) their file names and lines indicated that it was for friendly fire.

Link to comment
Share on other sites

  • Totem Arts Staff
2 minutes ago, LeonardMT said:

In the UDK I found voice lines for the Nod engineer and Mobius (there's probably more but the UDK is huge) their file names and lines indicated that it was for friendly fire.

Well the character sounds in-game are not setup for friendly fire.

Link to comment
Share on other sites

1 minute ago, NodSaibot said:

Well the character sounds in-game are not setup for friendly fire.

That's slightly disappointing. What would be involved in rewriting the friendly fire mutator to have vehicles (and their weapons) voice lines, buildings, (and possibly airstrikes [bit hard to test on bots] unclear if they give off friendly fire) to properly work?

Also on the note of writing mutators where is the code regarding the tusk missile I would to have its ammo count be 12 on legendary veterancy.

Link to comment
Share on other sites

  • Totem Arts Staff
12 minutes ago, LeonardMT said:

That's slightly disappointing. What would be involved in rewriting the friendly fire mutator to have vehicles (and their weapons) voice lines, buildings, (and possibly airstrikes [bit hard to test on bots] unclear if they give off friendly fire) to properly work?

Also on the note of writing mutators where is the code regarding the tusk missile I would to have its ammo count be 12 on legendary veterancy.

You'd have to replace the mammoth with a new mammoth, but the mammoth weapon is Rx_Vehicle_MammothWeapon
 

Quote

    Vet_SecondaryClipSizeModifier(0)=0 //Normal +X
    Vet_SecondaryClipSizeModifier(1)=0 //Veteran
    Vet_SecondaryClipSizeModifier(2)=0 //Elite
    Vet_SecondaryClipSizeModifier(3)=2 //Heroic



would be the bonus missiles

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...