Code: Select all
12:33 AM 7/1/2013
Zoom Mutator by MrLoathsome. RC2 - Final.
This little mutator will let you zoom your view with any gun. (Or even without one....)
Install:
Place Zoom.u and Zoom.int in your UnrealTournament/System folder.
Select "Zoom Zoom Zoom" from your mutators list.
For servers, mutator name: Zoom.Zoom. This runs server-side.
No need for uz file on the redirect.
This does NOT need to be in ServerPackages.
Configuration:
You need to add a couple of lines in the [Engine.Input] section
of your User.ini file to make this work.
First find the first empty entry in the Aliases array.
Modify it so it looks like this:
Aliases[nn]=(Command="mutate ZoomZoom",Alias=Zoom)
(nn = whatever value was already there for that line....)
Then in the section under the Aliases you will need to
bind a key or button that you want to use for the zoom function.
For example:
Insert=Zoom | OnRelease mutate StopZoom
or
MiddleMouse=Zoom | OnRelease mutate StopZoom
Usage:
Press and hold the key/button you have configured to start zooming. Release it to stop at any point.
Tap it again to return to normal view. Switching weapons will also return you to normal view.
This will work in harmony with your usual sniper rifle scope(s).
Enjoy !
than they needed to be. Also a good example of releasing something prematurely.
RC2 now works exactly the way I wanted it to. And the compiled U file is smaller than the Readme.
Here is the full source for this mutator:
Code: Select all
// Zoom.uc --> Zoom Mutator - 07/1/13 by MrLoathsome.
class Zoom extends Mutator;
function Mutate(string MutateString, PlayerPawn Sender)
{
if (MutateString ~= "StopZoom")
Sender.StopZoom();
else if (MutateString ~= "ZoomZoom")
Sender.ToggleZoom();
Super.Mutate(MutateString, Sender);
}
defaultproperties
{
}
*Edit - 1 person downloaded a version of this that was missing a line. If you were the first to download this, download it again.....