Ukill Posted January 29, 2017 Posted January 29, 2017 View File 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" } Submitter Ukill Submitted 01/29/2017 Category Modifications Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.