//============================================================================= // JumpMod // // This mutator allows a server to configure the abilities for players to jump // around as well as how much boost they receive with each jump. // // Contact : bob.chatman@gmail.com // Website : www.gneu.org // License : Content is available under Creative Commons Attribution-ShareAlike // 3.0 License. //============================================================================= Class UTMutator_SpeedMod extends UTMutator Config( SpeedMod ); // Two configurable values var config int iGameSpeed; function InitMutator(string Options, out string ErrorMessage) { iGameSpeed = ValidateSpeed(iGameSpeed); WorldInfo.Game.SetGameSpeed(iGameSpeed / 100.0f); Super.InitMutator(Options, ErrorMessage); } exec function UpdateSpeed(int speed) { iGameSpeed = ValidateSpeed(speed); `log("Updating Game Speed to :" @ iGameSpeed,, 'SpeedMod'); WorldInfo.Game.SetGameSpeed(iGameSpeed / 100.0f); SaveConfig(); } function int ValidateSpeed(int speed) { if (speed < 25 || speed > 400) speed = 100; return speed; } defaultproperties { iGameSpeed=80 GroupNames(0)="GAMESPEED" }