Jump to content

[Mod] Rx_Mutator_FriendlyFire_Reduce


Ukill

Recommended Posts

Rx_Mutator_FriendlyFire_Reduce


*  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
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...