PDA

View Full Version : Zoom distance


JDarkOne
15th Oct 2001, 12:51 PM
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

mr.s-d
16th Oct 2001, 06:33 AM
Bad news, the code controlling the nice smooth zooming in effect is part of the PlayerPawn class.

JDarkOne
16th Oct 2001, 10:20 AM
well, it's no big deal. i've accomplished the largest part of what i wanted to do, so i guess i'll have to live with it (for now :) ).

Postal
16th Oct 2001, 01:45 PM
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
16th Oct 2001, 08:49 PM
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...