Jump to content

Recommended Posts

Posted

Rx_Mutator_SlowTimeKills


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


 

Version 1.0.0

Compatible with Renegade X v5.282  

Mutator :

Rx_Mutator_SlowTimeKills.u (Download)

Source :

Spoiler

 

Rx_Mutator_SlowTimeKills.uc (Download)

Spoiler


/******************************************************************************
*  Modified by Ukill, this can contain parts of code written by Jessica\Yosh  *
*   This mutator will add the SlowTimeKill function to the Renegade X game    *
*******************************************************************************
* Rx_Mutator_SlowTimeKills                                                    *
******************************************************************************/

class Rx_Mutator_SlowTimeKills extends UTMutator;

var float SlowTime;
var float RampUpTime;
var float SlowSpeed;

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

function ScoreKill(Controller Killer, Controller Killed) {
	if ( PlayerController(Killer) != None ) 
	{
		WorldInfo.Game.SetGameSpeed(SlowSpeed); 
		SetTimer(SlowTime, false); 
	}
	
	if ( NextMutator != None ) 
	{
		NextMutator.ScoreKill(Killer,Killed); 
	}
}

function Timer() 
{ 
	GotoState('Rampup'); 
}

state Rampup {
	function Tick(float DeltaTime) {
		local float NewGameSpeed;
		NewGameSpeed = WorldInfo.Game.GameSpeed + DeltaTime/RampUpTime;
		if ( NewGameSpeed >= 1 ) 
		{ 
			WorldInfo.Game.SetGameSpeed(1.0); GotoState(''); 
		} 
		
		else 
		{ 
			WorldInfo.Game.SetGameSpeed(NewGameSpeed); 
		}
	}
}

defaultproperties 
{ 
	RampUpTime=0.1				// Delta Seconds is the time between each frame / ..................
	SlowTime=1.0				// SlowMotionKill Time
	SlowSpeed=0.125				// GameSpeed While SlowTimeKills
	GroupNames[0]="GAMESPEED"
}


 


 

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