Zoom distance

  • Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

JDarkOne

New Member
Jun 18, 2001
34
0
0
43
jdarkone.cjb.net
I'm working on a map that has required me to alter the SniperRifle's code to extend the range of the weapon (which I have successfully done, btw :) ), now i want to extend the distance that the rifle can zoom in (or magnify, if you wish).

I've found the "state Zooming" in the rifle's script, but have no idea where to go from here.

Any help/guidance would be greatly appreciated.

-JDarkOne
 

Postal

I apear to have lost my pin.
Nov 14, 1999
1,388
0
0
WoD.BeyondUnreal.com
function AltFire( float Value )
{
if (Pawn(Owner).IsA('Bot'))
{
Fire(Value);
return;
}
switch (Pawn(Owner).FOVAngle)
{
case 15:
PlayerPawn(Owner).DesiredFOV = 90;
break;
case 45:
PlayerPawn(Owner).DesiredFOV = 15;
break;
case 90:
default:
PlayerPawn(Owner).DesiredFOV = 45;
break;
}
}
 

JDarkOne

New Member
Jun 18, 2001
34
0
0
43
jdarkone.cjb.net
thanks....

that's pretty cool, but i've decided to do something more along the lines of the EnhancedSniperRifle mod. it's working pretty nice, but i'm still working out the bugs.

thanks again...