Jump to content

[Mod] Rx_Mutator_NormalizeHealth


Ukill

Recommended Posts

Rx_Mutator_NormalizeHealth


*  This mutator will change the NormalizeHealth of the Renegade X game    *
*


 

Version 1.0.0

Compatible with Renegade X v5.282  

Mutator :

Rx_Mutator_NormalizeHealth.u (Download)

Source :

Spoiler

 

Rx_Mutator_NormalizeHealth.uc (Download)

Spoiler


/******************************************************************************
*  Modified by Ukill, this can contain parts of code written by Jessica\Yosh  *
*                   This mutator will Normalize Health                        *
*******************************************************************************
* Rx_Mutator_NormalizeHealth                                                  *
******************************************************************************/

class Rx_Mutator_NormalizeHealth extends UTMutator ;

function bool CheckReplacement(Actor Other) {
	if(Other.IsA('Rx_TeamInfo')) { Rx_Game(WorldInfo.Game).DefaultPawnClass = class'Rx_Mutator_NormalizeHealth_Pawn' ; } return true; }
 


 

Rx_Mutator_NormalizeHealth_Pawn.uc (Download)

Spoiler


/******************************************************************************
*  Modified by Ukill, this can contain parts of code written by Jessica\Yosh  *
*                   This mutator will Normalize Health                        *
*******************************************************************************
* Rx_Mutator_NormalizeHealth_Pawn                                             *
******************************************************************************/

class Rx_Mutator_NormalizeHealth_Pawn extends Rx_Pawn ;

simulated event PostInitAnimTree(SkeletalMeshComponent SkelComp) {
	Super.PostInitAnimTree(SkelComp) ;
	if (SkelComp == Mesh) { SetTimer(0.5, false, 'NormalizeHealth' ) ; 	}
}

simulated function bool NormalizeHealth () {
	healthmax = 200 ;
	health = 200 ; 
	return true; 
}
 


 

 

 


 

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