Jump to content

Rx_Mutator_FriendlyFire_Reduce 0.1.0

   (0 reviews)

1 Screenshot

About This File

*  This mutator will reduce the FriendlyFire option, which is on by default.
*  Change the value of "FriendlyFireScale" to increase or decrease the damage friends take.


 

Version 1.0.0

Compatible with Renegade X v5.281

Mutator :

Rx_Mutator_FriendlyFire_Reduce.u (Download)

Source :

Spoiler

 

Rx_Mutator_FriendlyFire_Reduce.uc (Download)

Spoiler


/* 
 * Rx_Mutator_FriendlyFire_Reduce
 *
 * */
class Rx_Mutator_FriendlyFire_Reduce 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=5.00000
   GroupNames(0)=FRIENDLYFIRE
/*
    Begin Object Class=SpriteComponent Name=Sprite ObjName=Sprite   Archetype=SpriteComponent'UTGame.Default__UTMutatorSprite'
    ObjectArchetype=SpriteComponent'UTGame.Default__UTMutatorSprite'
   End Object
*/
   Components(0)=Sprite
   Name=Default__UTMutator_FriendlyFire
   ObjectArchetype=UTMutator'UTGame.Default__UTMutator'
}

 

 

 

  • Like 1

User Feedback

Join the conversation

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

Guest
×
×
  • Create New...